Add defines for the values written to R300_RB3D_ZCACHE_CTLSTAT.
authorOliver McFadden <z3ro.geek@gmail.com>
Tue, 13 Mar 2007 06:24:56 +0000 (06:24 +0000)
committerOliver McFadden <z3ro.geek@gmail.com>
Tue, 13 Mar 2007 06:24:56 +0000 (06:24 +0000)
Note that just like the values written to R300_RB3D_DSTCACHE_CTLSTAT these
values are really unknown; ideally more reverse engineering should be done to
determine what these values mean and when they should be set.

src/mesa/drivers/dri/r300/r300_ioctl.c
src/mesa/drivers/dri/r300/r300_reg.h
src/mesa/drivers/dri/r300/r300_render.c

index bb16cd13d40411826019ece000ca9f2909cf193d..f0741f978d4b97968ddc56eaee68d428f80834d9 100644 (file)
@@ -166,7 +166,7 @@ static void r300ClearBuffer(r300ContextPtr r300, int flags, int buffer)
          
 
        reg_start(R300_RB3D_ZCACHE_CTLSTAT,0);
-       e32(0x00000003);
+       e32(R300_RB3D_ZCACHE_CTLSTAT_03);
        cp_wait(rmesa, R300_WAIT_3D | R300_WAIT_3D_CLEAN);
 }
 
index aa6d81a063a479ecddffb571ee27589ee3967674..f9accadf61ce6e4b2f9529eb5512c36bb216913f 100644 (file)
@@ -1397,6 +1397,8 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
 /* gap */
 
 #define R300_RB3D_ZCACHE_CTLSTAT            0x4F18 /* GUESS */
+#       define R300_RB3D_ZCACHE_CTLSTAT_01  0x1
+#       define R300_RB3D_ZCACHE_CTLSTAT_03  0x3
 
 /* gap */
 
index 87d370e30384c4357ce8f1f05184287b132dc5d0..659ec3ff54c01703db3ceed79c13d62ce1853140 100644 (file)
@@ -347,7 +347,7 @@ GLboolean r300_run_vb_render(GLcontext *ctx,
        e32(R300_RB3D_DSTCACHE_0A);
 
        reg_start(R300_RB3D_ZCACHE_CTLSTAT,0);
-       e32(0x00000003);
+       e32(R300_RB3D_ZCACHE_CTLSTAT_03);
        
        r300EmitState(rmesa);
        
@@ -363,7 +363,7 @@ GLboolean r300_run_vb_render(GLcontext *ctx,
        e32(R300_RB3D_DSTCACHE_0A /*R300_RB3D_DSTCACHE_02*/);
 
        reg_start(R300_RB3D_ZCACHE_CTLSTAT,0);
-       e32(0x00000003/*0x1*/);
+       e32(R300_RB3D_ZCACHE_CTLSTAT_03 /*R300_RB3D_ZCACHE_CTLSTAT_01*/);
 
 #ifdef USER_BUFFERS
        r300UseArrays(ctx);