aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_meta_fast_clear.c
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2017-03-05 15:52:28 +0100
committerBas Nieuwenhuizen <[email protected]>2017-03-09 02:35:23 +0100
commit870032978512576f5ac882b2c88c7657c9f741f4 (patch)
tree3a798cd26c14a4b8e1223441fe6a7fd30ab8579e /src/amd/vulkan/radv_meta_fast_clear.c
parent9251f8b35ef081db65cb8c2018d7f8f4bc3c1be3 (diff)
radv: Don't emit cache flushes on subpass switch.
I think we should only flush right before an action (draw/dispatch etc.), as otherwise it is too easy to issue redundant flushes. Signed-off-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_meta_fast_clear.c')
-rw-r--r--src/amd/vulkan/radv_meta_fast_clear.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_meta_fast_clear.c b/src/amd/vulkan/radv_meta_fast_clear.c
index ffaa9a3d5e8..8009b287c4d 100644
--- a/src/amd/vulkan/radv_meta_fast_clear.c
+++ b/src/amd/vulkan/radv_meta_fast_clear.c
@@ -405,7 +405,6 @@ emit_fast_clear_flush(struct radv_cmd_buffer *cmd_buffer,
radv_CmdDraw(cmd_buffer_h, 3, 1, 0, 0);
cmd_buffer->state.flush_bits |= (RADV_CMD_FLAG_FLUSH_AND_INV_CB |
RADV_CMD_FLAG_FLUSH_AND_INV_CB_META);
- si_emit_cache_flush(cmd_buffer);
}
/**