ac: add has_dcc_constant_encode to ac_gpu_info
[mesa.git] / src / gallium / drivers / radeonsi / si_clear.c
index a83f65c6f1be5cb5cbcca9e834816b82413f7c1c..34a39a0edae7f8e0df086a72d571d4482c9ea4c5 100644 (file)
@@ -559,7 +559,7 @@ static void si_do_fast_color_clear(struct si_context *sctx,
                /* Chips with DCC constant encoding don't need to set the clear
                 * color registers for DCC clear values 0 and 1.
                 */
-               if (sctx->screen->has_dcc_constant_encode && !eliminate_needed)
+               if (sctx->screen->info.has_dcc_constant_encode && !eliminate_needed)
                        continue;
 
                if (si_set_clear_color(tex, fb->cbufs[i]->format, color)) {