diff options
author | Oliver McFadden <[email protected]> | 2008-02-25 23:18:15 +0000 |
---|---|---|
committer | Oliver McFadden <[email protected]> | 2008-02-25 23:18:15 +0000 |
commit | 57f310b2c99ddd3d0cdf671647f8242f7cdd551a (patch) | |
tree | cd74477c493d9bfbeb33acfb32eb32b17e932f10 /src/mesa | |
parent | 40a3b16183186f6dabff6ace84b0078780cf5e61 (diff) |
r300: Corrected a cache flush bug in r300EmitCacheFlush.
Corrects commit 74ae5a875d6b3f1ffea2ac09c6ef0062d4980f15.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_emit.c | 10 |
1 files changed, 5 insertions, 5 deletions
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); } |