Guess another unknown register used for R300 pacification.
authorOliver McFadden <z3ro.geek@gmail.com>
Tue, 13 Mar 2007 00:48:17 +0000 (00:48 +0000)
committerOliver McFadden <z3ro.geek@gmail.com>
Tue, 13 Mar 2007 00:48:17 +0000 (00:48 +0000)
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 6fa34ee482a85d8f98dd1a941bf3455bee15a453..41114a875dcfd8f03ea5eb746b657c9134dee929 100644 (file)
@@ -165,7 +165,7 @@ static void r300ClearBuffer(r300ContextPtr r300, int flags, int buffer)
        e32(0x0000000a);
          
 
-       reg_start(0x4f18,0);
+       reg_start(R300_RB3D_ZCACHE_CTLSTAT,0);
        e32(0x00000003);
        cp_wait(rmesa, R300_WAIT_3D | R300_WAIT_3D_CLEAN);
 }
index 7bc832c871c5333306ed18983d4b720a883cd96b..be357ab5c73aeecffa64020739c99ed00ddbadc4 100644 (file)
@@ -1395,6 +1395,10 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 /* gap */
 
+#define R300_RB3D_ZCACHE_CTLSTAT            0x4F18 /* GUESS */
+
+/* gap */
+
 #define R300_RB3D_DEPTHOFFSET               0x4F20
 #define R300_RB3D_DEPTHPITCH                0x4F24
 #       define R300_DEPTHPITCH_MASK              0x00001FF8 /* GUESS */
index 211c451f661a9430f646b54233e74ffed87137df..7a850b10010f66a550dc79294362be0b34bfb501 100644 (file)
@@ -346,7 +346,7 @@ GLboolean r300_run_vb_render(GLcontext *ctx,
        reg_start(R300_RB3D_DSTCACHE_CTLSTAT,0);
        e32(0x0000000a);
 
-       reg_start(0x4f18,0);
+       reg_start(R300_RB3D_ZCACHE_CTLSTAT,0);
        e32(0x00000003);
        
        r300EmitState(rmesa);
@@ -362,7 +362,7 @@ GLboolean r300_run_vb_render(GLcontext *ctx,
        reg_start(R300_RB3D_DSTCACHE_CTLSTAT,0);
        e32(0x0000000a/*0x2*/);
 
-       reg_start(0x4f18,0);
+       reg_start(R300_RB3D_ZCACHE_CTLSTAT,0);
        e32(0x00000003/*0x1*/);
 
 #ifdef USER_BUFFERS