summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2019-06-20 09:17:33 +0200
committerSamuel Pitoiset <[email protected]>2019-06-20 11:03:52 +0200
commitb92d87f7f0dc2dbd5b7a3d64a1a9a2863ab7262a (patch)
treef6c50bb4045bf27f18f0e8fd3e5fe71a9f30369c
parentdc6e3053a788b1e2cb63254ffb63a480adac3be7 (diff)
radv: re-initialize DCC metadata after decompressing using compute
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r--src/amd/vulkan/radv_meta_fast_clear.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/amd/vulkan/radv_meta_fast_clear.c b/src/amd/vulkan/radv_meta_fast_clear.c
index 0e6c7ba72ff..71cf90c611e 100644
--- a/src/amd/vulkan/radv_meta_fast_clear.c
+++ b/src/amd/vulkan/radv_meta_fast_clear.c
@@ -875,11 +875,9 @@ radv_decompress_dcc_compute(struct radv_cmd_buffer *cmd_buffer,
state->flush_bits |= RADV_CMD_FLAG_CS_PARTIAL_FLUSH |
RADV_CMD_FLAG_INV_VMEM_L1;
- state->flush_bits |= radv_clear_dcc(cmd_buffer, image, subresourceRange,
- 0xffffffff);
- state->flush_bits |= RADV_CMD_FLAG_FLUSH_AND_INV_CB |
- RADV_CMD_FLAG_FLUSH_AND_INV_CB_META;
+ /* Initialize the DCC metadata as "fully expanded". */
+ radv_initialize_dcc(cmd_buffer, image, subresourceRange, 0xffffffff);
}
void