Search
lxdream.org :: lxdream/test/testta.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/testta.c
changeset 193:31151fcc3cb7
prev190:f7653df5e832
next212:8b77a7e6b6f0
author nkeynes
date Fri Aug 04 01:38:30 2006 +0000 (15 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/test/testta.c Wed Aug 02 04:13:15 2006 +0000
1.2 +++ b/test/testta.c Fri Aug 04 01:38:30 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: testta.c,v 1.2 2006-08-02 04:13:15 nkeynes Exp $
1.6 + * $Id: testta.c,v 1.3 2006-08-04 01:38:30 nkeynes Exp $
1.7 *
1.8 * Tile Accelerator test cases
1.9 *
1.10 @@ -175,11 +175,11 @@
1.11 if( plist != NULL ) {
1.12 unsigned int plist_posn, plist_end;
1.13 if( config->ta_cfg & 0x00100000 ) { /* Descending */
1.14 - plist_posn = pvr_get_plist_posn() + tile_sizes[0];
1.15 + plist_posn = pvr_get_plist_posn(); //+ tile_sizes[0];
1.16 plist_end = config->plist_start;
1.17 } else {
1.18 plist_posn = config->plist_start;
1.19 - plist_end = pvr_get_plist_posn();
1.20 + plist_end = pvr_get_plist_posn() + tile_sizes[0];
1.21 }
1.22 char *plist_data = (char *)(PVR_VRAM_BASE + plist_posn);
1.23 if( test_block_compare( plist, plist_data, plist_end-plist_posn ) != 0 ) {
1.24 @@ -188,6 +188,14 @@
1.25 plist_end - plist_posn );
1.26 haveFailure = 1;
1.27 }
1.28 + char block[tile_sizes[0]];
1.29 + memset( block, MEM_FILL, tile_sizes[0] );
1.30 + if( memcmp( block, plist_data - tile_sizes[0], tile_sizes[0] ) != 0 ) {
1.31 + fprintf( stderr, "Test %s: Failed (Plist buffer)", test_case->test_name );
1.32 + fwrite_diff32( stderr, block, tile_sizes[0], plist_data - tile_sizes[0],
1.33 + tile_sizes[0]);
1.34 + haveFailure = 1;
1.35 + }
1.36 }
1.37
1.38 /* Vertex buffer */
1.39 @@ -211,6 +219,16 @@
1.40 }
1.41 }
1.42 }
1.43 +
1.44 + if( error == NULL ) {
1.45 + if( asic_check(EVENT_TA_ERROR) || asic_check(EVENT_PVR_PRIM_ALLOC_FAIL) ||
1.46 + asic_check(EVENT_PVR_MATRIX_ALLOC_FAIL) || asic_check(EVENT_PVR_BAD_INPUT) ) {
1.47 + fprintf( stderr, "Test %s: Failed (unexpected error events)\n", test_case->test_name );
1.48 + asic_dump( stderr );
1.49 + haveFailure = 1;
1.50 + }
1.51 + }
1.52 +
1.53 if( haveFailure )
1.54 return -1;
1.55
.