radv: re-initialize DCC metadata after decompressing using compute
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 20 Jun 2019 07:17:33 +0000 (09:17 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 20 Jun 2019 09:03:52 +0000 (11:03 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_meta_fast_clear.c

index 0e6c7ba72ffca6c58a30135de74b32dccf4374fd..71cf90c611ecb2e0ad49b4ec9f5ed7e0ce006205 100644 (file)
@@ -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