Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
* The decompression is relatively cheap if the surface
* has been decompressed already.
*/
- if (!r600_texture_disable_dcc(&screen->b, tex))
+ if (r600_texture_disable_dcc(&screen->b, tex))
+ uses_dcc = false;
+ else
ctx->b.decompress_dcc(&ctx->b.b, tex);
}
images->compressed_colortex_mask &= ~(1 << slot);
}
- if (tex->dcc_offset &&
+ if (uses_dcc &&
p_atomic_read(&tex->framebuffers_bound))
ctx->need_check_render_feedback = true;