if (sctx->family == CHIP_STONEY)
continue;
+ /* Disable fast clear if tex is encrypted */
+ if (tex->buffer.flags & RADEON_FLAG_ENCRYPTED)
+ continue;
+
/* ensure CMASK is enabled */
si_alloc_separate_cmask(sctx->screen, tex);
if (!tex->cmask_buffer)
struct si_context *sctx = (struct si_context *)ctx;
struct si_texture *sdst = (struct si_texture *)dst->texture;
- if (dst->texture->nr_samples <= 1 && !sdst->surface.dcc_offset) {
+ if (dst->texture->nr_samples <= 1 && !vi_dcc_enabled(sdst, dst->u.tex.level)) {
si_compute_clear_render_target(ctx, dst, color, dstx, dsty, width, height,
render_condition_enabled);
return;