Search
lxdream.org :: lxdream :: r307:a357a469f5ff
lxdream 0.9.1
released Jun 29
Download Now
changeset307:a357a469f5ff
parent306:818c11570593
child308:10a5b5475fb0
authornkeynes
dateSun Jan 21 05:24:27 2007 +0000 (13 years ago)
Add texture input data block
test/testrend.c
1.1 --- a/test/testrend.c Sun Jan 21 05:23:53 2007 +0000
1.2 +++ b/test/testrend.c Sun Jan 21 05:24:27 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: testrend.c,v 1.2 2006-08-19 01:51:16 nkeynes Exp $
1.6 + * $Id: testrend.c,v 1.3 2007-01-21 05:24:27 nkeynes Exp $
1.7 *
1.8 * Renderer test cases
1.9 *
1.10 @@ -51,6 +51,12 @@
1.11 fprintf( stderr, "Skipping test '%s' - no event list\n", test_case->test_name );
1.12 }
1.13
1.14 + test_data_block_t tex = get_test_data(test_case, "textures");
1.15 + if( tex != NULL ) {
1.16 + uint32_t addr = *(uint32_t *)tex->data;
1.17 + memcpy( (char *)(0xA5000000 + addr), tex->data+4, tex->length-4 );
1.18 + }
1.19 +
1.20 test_data_block_t config_data = get_test_data( test_case, "config" );
1.21 struct ta_config *config = &default_ta_config;
1.22 if( config_data != NULL ) {
.