radv: reset the image's predicate after a color decompression pass
[mesa.git] / src / amd / vulkan / radv_meta_fast_clear.c
index 8ba0a932c0efa9c67bbeb520277127450b676709..136557080d95a288c6576cc8b598d84937957426 100644 (file)
@@ -671,6 +671,11 @@ radv_emit_color_decompress(struct radv_cmd_buffer *cmd_buffer,
        if (radv_image_has_dcc(image)) {
                cmd_buffer->state.predicating = false;
                radv_emit_set_predication_state_from_image(cmd_buffer, image, false);
+
+               /* Clear the image's fast-clear eliminate predicate because
+                * FMASK and DCC also imply a fast-clear eliminate.
+                */
+               radv_set_dcc_need_cmask_elim_pred(cmd_buffer, image, false);
        }
        radv_meta_restore(&saved_state, cmd_buffer);
 }