filename | test/testta.c |
changeset | 193:31151fcc3cb7 |
prev | 190:f7653df5e832 |
next | 212:8b77a7e6b6f0 |
author | nkeynes |
date | Sat Aug 05 00:18:21 2006 +0000 (17 years ago) |
permissions | -rw-r--r-- |
last change | Add error lines to tests with incomplete polys Split clip tests to separate data file Add tests for cmd bit 23 ("use list size field") |
file | annotate | diff | log | raw |
1.1 --- a/test/testta.c Wed Aug 02 04:13:15 2006 +00001.2 +++ b/test/testta.c Sat Aug 05 00:18:21 2006 +00001.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 cases1.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.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;
.