mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
radeonsi: don't flag renderbuffer feedback loop if DCC has just been disabled
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
aa7fe70443
commit
2fd74a05bb
1 changed files with 4 additions and 2 deletions
|
|
@ -606,7 +606,9 @@ static void si_set_shader_image(struct si_context *ctx,
|
|||
* 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);
|
||||
}
|
||||
|
||||
|
|
@ -616,7 +618,7 @@ static void si_set_shader_image(struct si_context *ctx,
|
|||
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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue