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_update_fce_metadata(cmd_buffer, image, false);
-
if (cmd_buffer->state.predication_type != -1) {
/* Restore previous conditional rendering user state. */
si_emit_set_predication_state(cmd_buffer,
cmd_buffer->state.predication_va);
}
}
+
+ if (radv_image_has_dcc(image)) {
+ /* Clear the image's fast-clear eliminate predicate because
+ * FMASK and DCC also imply a fast-clear eliminate.
+ */
+ radv_update_fce_metadata(cmd_buffer, image, false);
+ }
+
radv_meta_restore(&saved_state, cmd_buffer);
}