r300: Corrected a cache flush bug in r300EmitCacheFlush.
authorOliver McFadden <z3ro.geek@gmail.com>
Mon, 25 Feb 2008 23:18:15 +0000 (23:18 +0000)
committerOliver McFadden <z3ro.geek@gmail.com>
Mon, 25 Feb 2008 23:18:15 +0000 (23:18 +0000)
Corrects commit 74ae5a875d6b3f1ffea2ac09c6ef0062d4980f15.

src/mesa/drivers/dri/r300/r300_emit.c

index e4600f5c4c54691565caa8689aa5040ec9e4a30d..a135376398c77988f45d7a7603008c4fe97d8ca5 100644 (file)
@@ -536,16 +536,16 @@ void r300ReleaseArrays(GLcontext * ctx)
 
 void r300EmitCacheFlush(r300ContextPtr rmesa)
 {
-        int cmd_reserved = 0;
+       int cmd_reserved = 0;
        int cmd_written = 0;
 
        drm_radeon_cmd_header_t *cmd = NULL;
 
        reg_start(R300_RB3D_DSTCACHE_CTLSTAT, 0);
-       e32(RB3D_DSTCACHE_CTLSTAT_DC_FREE_FREE_3D_TAGS | RB3D_DSTCACHE_CTLSTAT_DC_FLUSH_FLUSH_DIRTY_3D);
+       e32(RB3D_DSTCACHE_CTLSTAT_DC_FREE_FREE_3D_TAGS |
+           RB3D_DSTCACHE_CTLSTAT_DC_FLUSH_FLUSH_DIRTY_3D);
 
        reg_start(ZB_ZCACHE_CTLSTAT, 0);
-       e32(ZB_ZCACHE_CTLSTAT_ZC_FREE_FREE);
-
-
+       e32(ZB_ZCACHE_CTLSTAT_ZC_FLUSH_FLUSH_AND_FREE |
+           ZB_ZCACHE_CTLSTAT_ZC_FREE_FREE);
 }