summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_state_draw.c
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2016-04-17 15:34:24 +0200
committerMarek Olšák <marek.olsak@amd.com>2016-04-18 19:51:25 +0200
commit3faecdd4e13a773e188d7b1c7647e61ee0aa50bb (patch)
tree23578398f939d1f7b2e20714a1b4d63a049aa92b /src/gallium/drivers/radeonsi/si_state_draw.c
parent28c2573b4f1b311145b3f21a1794adb3dcd5f61a (diff)
downloadexternal_mesa3d-3faecdd4e13a773e188d7b1c7647e61ee0aa50bb.zip
external_mesa3d-3faecdd4e13a773e188d7b1c7647e61ee0aa50bb.tar.gz
external_mesa3d-3faecdd4e13a773e188d7b1c7647e61ee0aa50bb.tar.bz2
radeonsi: remove TODO and correct a comment in si_emit_cache_flush
Yes, that flag is really needed. Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state_draw.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_state_draw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c
index 40cad50..8f4eba4 100644
--- a/src/gallium/drivers/radeonsi/si_state_draw.c
+++ b/src/gallium/drivers/radeonsi/si_state_draw.c
@@ -615,7 +615,7 @@ void si_emit_cache_flush(struct si_context *si_ctx, struct r600_atom *atom)
* doesn't seem to work reliably. Since the bug doesn't affect
* correctness (it only does more work than necessary) and
* the performance impact is likely negligible, there is no plan
- * to fix it.
+ * to add a workaround for it.
*/
if (sctx->flags & SI_CONTEXT_INV_ICACHE)
@@ -628,7 +628,6 @@ void si_emit_cache_flush(struct si_context *si_ctx, struct r600_atom *atom)
if (sctx->flags & SI_CONTEXT_INV_GLOBAL_L2) {
cp_coher_cntl |= S_0085F0_TC_ACTION_ENA(1);
- /* TODO: this might not be needed. */
if (sctx->chip_class >= VI)
cp_coher_cntl |= S_0301F0_TC_WB_ACTION_ENA(1);
}