Search
lxdream.org :: lxdream/test/pvr.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename test/pvr.h
changeset 190:f7653df5e832
prev185:6755a04c447f
next213:da6b1904f67b
author nkeynes
date Wed Aug 02 04:13:15 2006 +0000 (15 years ago)
permissions -rw-r--r--
last change Add many more TA test cases (a couple of corner cases aren't 100% correct
yet, TBA)
Add new test "testregs" to check register masks (currently just PVR registers)
file annotate diff log raw
1.1 --- a/test/pvr.h Tue Jul 11 01:35:27 2006 +0000
1.2 +++ b/test/pvr.h Wed Aug 02 04:13:15 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: pvr.h,v 1.1 2006-07-11 01:35:23 nkeynes Exp $
1.6 + * $Id: pvr.h,v 1.2 2006-08-02 04:13:15 nkeynes Exp $
1.7 *
1.8 * PVR support code
1.9 *
1.10 @@ -133,11 +133,20 @@
1.11 #define TA_CMD_VERTEX 0xe0000000
1.12 #define TA_CMD_VERTEX_LAST 0xF0000000 /* end of strip */
1.13
1.14 +#define GRID_SIZE( hres, vres ) (((((vres+31) / 32)-1)<<16)|((((hres+31) / 32)-1)))
1.15
1.16 -void ta_init( unsigned int hres, unsigned int vres,
1.17 - unsigned int polybuf, unsigned int polybuflen,
1.18 - unsigned int tilebuf, unsigned int tilebuflen );
1.19 +struct ta_config {
1.20 + unsigned int ta_cfg;
1.21 + unsigned int grid_size;
1.22 + unsigned int obj_start;
1.23 + unsigned int obj_end;
1.24 + unsigned int tile_start;
1.25 + unsigned int tile_end;
1.26 + unsigned int plist_start;
1.27 +};
1.28
1.29 +void ta_init( struct ta_config *config );
1.30 void pvr_dump_objbuf( FILE *f );
1.31 void pvr_dump_tilebuf( FILE *f );
1.32 int pvr_get_objbuf_size();
1.33 +int pvr_get_plist_posn();
.