From: Oliver McFadden Date: Mon, 25 Feb 2008 23:18:15 +0000 (+0000) Subject: r300: Corrected a cache flush bug in r300EmitCacheFlush. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=57f310b2c99ddd3d0cdf671647f8242f7cdd551a;p=mesa.git r300: Corrected a cache flush bug in r300EmitCacheFlush. Corrects commit 74ae5a875d6b3f1ffea2ac09c6ef0062d4980f15. --- diff --git a/src/mesa/drivers/dri/r300/r300_emit.c b/src/mesa/drivers/dri/r300/r300_emit.c index e4600f5c4c5..a135376398c 100644 --- a/src/mesa/drivers/dri/r300/r300_emit.c +++ b/src/mesa/drivers/dri/r300/r300_emit.c @@ -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); }