summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_meta_fast_clear.c
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2017-03-05 17:17:06 +0100
committerBas Nieuwenhuizen <[email protected]>2017-03-09 02:35:28 +0100
commit7d6e1a341af6d29110fbc83aa139fedade2851d1 (patch)
tree6f861aa3d84b3f454e997b9347ec659fc7ae2129 /src/amd/vulkan/radv_meta_fast_clear.c
parent870032978512576f5ac882b2c88c7657c9f741f4 (diff)
radv: Don't flush the CB before doing a fast clear eliminate.
The only way we write CMASK/DCC compressed textures through shaders is fast clears and CMASK/DCC inits, which have their own flushes. Hence the CB cache is always up to date. 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.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_meta_fast_clear.c b/src/amd/vulkan/radv_meta_fast_clear.c
index 8009b287c4d..eedd3e15b94 100644
--- a/src/amd/vulkan/radv_meta_fast_clear.c
+++ b/src/amd/vulkan/radv_meta_fast_clear.c
@@ -372,8 +372,6 @@ emit_fast_clear_flush(struct radv_cmd_buffer *cmd_buffer,
},
};
- cmd_buffer->state.flush_bits |= (RADV_CMD_FLAG_FLUSH_AND_INV_CB |
- RADV_CMD_FLAG_FLUSH_AND_INV_CB_META);
radv_cmd_buffer_upload_data(cmd_buffer, sizeof(vertex_data), 16, vertex_data, &offset);
struct radv_buffer vertex_buffer = {
.device = device,