radeonsi: don't execute LDS stores for TCS outputs that are never read
[mesa.git] / src / gallium / drivers / radeonsi / si_clear.c
index e96903d24efef812d546082b9571642b8c4a77d9..ced753f023da5c4292953f3214f06a3d3fa13436 100644 (file)
@@ -689,7 +689,7 @@ static void si_clear_render_target(struct pipe_context *ctx, struct pipe_surface
    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;