Search
lxdream.org :: lxdream/src/pvr2/pvr2.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/pvr2.c
changeset 193:31151fcc3cb7
prev191:df4441cf3128
next197:f65ff8c8320d
author nkeynes
date Fri Aug 04 01:38:30 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change Add more tile list limit tests
Implement tile list limits in the ta core.
Rename TA_TILEEND to TA_LISTEND
file annotate diff log raw
1.1 --- a/src/pvr2/pvr2.c Wed Aug 02 06:24:08 2006 +0000
1.2 +++ b/src/pvr2/pvr2.c Fri Aug 04 01:38:30 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: pvr2.c,v 1.29 2006-08-02 06:24:08 nkeynes Exp $
1.6 + * $Id: pvr2.c,v 1.30 2006-08-04 01:38:27 nkeynes Exp $
1.7 *
1.8 * PVR2 (Video) Core module implementation and MMIO registers.
1.9 *
1.10 @@ -96,13 +96,14 @@
1.11 static void pvr2_save_state( FILE *f )
1.12 {
1.13 fwrite( &pvr2_state, sizeof(pvr2_state), 1, f );
1.14 + pvr2_ta_save_state( f );
1.15 }
1.16
1.17 static int pvr2_load_state( FILE *f )
1.18 {
1.19 if( fread( &pvr2_state, sizeof(pvr2_state), 1, f ) != 1 )
1.20 return 1;
1.21 - return 0;
1.22 + return pvr2_ta_load_state(f);
1.23 }
1.24
1.25 static uint32_t pvr2_run_slice( uint32_t nanosecs )
1.26 @@ -296,7 +297,7 @@
1.27 MMIO_WRITE( PVR2, reg, val&0x00FFFFF9 );
1.28 break;
1.29 case TA_TILEBASE:
1.30 - case TA_TILEEND:
1.31 + case TA_LISTEND:
1.32 case TA_LISTBASE:
1.33 MMIO_WRITE( PVR2, reg, val&0x00FFFFE0 );
1.34 break;
.