Corrected values written to R300_RB3D_DSTCACHE_CTLSTAT to either
authorOliver McFadden <z3ro.geek@gmail.com>
Tue, 13 Mar 2007 01:31:38 +0000 (01:31 +0000)
committerOliver McFadden <z3ro.geek@gmail.com>
Tue, 13 Mar 2007 01:31:38 +0000 (01:31 +0000)
R300_RB3D_DSTCACHE_02 or R300_RB3D_DSTCACHE_0A, rather than hexadecimal values.

src/mesa/drivers/dri/r300/r300_ioctl.c
src/mesa/drivers/dri/r300/r300_render.c
src/mesa/drivers/dri/r300/radeon_mm.c

index 41114a875dcfd8f03ea5eb746b657c9134dee929..bb16cd13d40411826019ece000ca9f2909cf193d 100644 (file)
@@ -162,7 +162,7 @@ static void r300ClearBuffer(r300ContextPtr r300, int flags, int buffer)
        cmd2[8].u = r300PackFloat32(ctx->Color.ClearColor[3]);
 
        reg_start(R300_RB3D_DSTCACHE_CTLSTAT,0);
-       e32(0x0000000a);
+       e32(R300_RB3D_DSTCACHE_0A);
          
 
        reg_start(R300_RB3D_ZCACHE_CTLSTAT,0);
index 7a850b10010f66a550dc79294362be0b34bfb501..87d370e30384c4357ce8f1f05184287b132dc5d0 100644 (file)
@@ -344,7 +344,7 @@ GLboolean r300_run_vb_render(GLcontext *ctx,
        r300UpdateShaderStates(rmesa);
        
        reg_start(R300_RB3D_DSTCACHE_CTLSTAT,0);
-       e32(0x0000000a);
+       e32(R300_RB3D_DSTCACHE_0A);
 
        reg_start(R300_RB3D_ZCACHE_CTLSTAT,0);
        e32(0x00000003);
@@ -360,7 +360,7 @@ GLboolean r300_run_vb_render(GLcontext *ctx,
        }
 
        reg_start(R300_RB3D_DSTCACHE_CTLSTAT,0);
-       e32(0x0000000a/*0x2*/);
+       e32(R300_RB3D_DSTCACHE_0A /*R300_RB3D_DSTCACHE_02*/);
 
        reg_start(R300_RB3D_ZCACHE_CTLSTAT,0);
        e32(0x00000003/*0x1*/);
index 32ed1f43939e2398671832fde0e8d1aeb8a32265..065f288e4ca06c0a2418c0868df0fb39f5ec070c 100644 (file)
@@ -284,7 +284,7 @@ static void emit_lin_cp(r300ContextPtr rmesa, unsigned long dst, unsigned long s
        }
        
        reg_start(R300_RB3D_DSTCACHE_CTLSTAT,0);
-       e32(0x0000000a);
+       e32(R300_RB3D_DSTCACHE_0A);
        
        reg_start(0x342c,0);
        e32(0x00000005);