radeonsi: don't check DCC compatibility on chips where it's no-op

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26095>
This commit is contained in:
Marek Olšák
2023-10-24 07:57:45 -04:00
committed by Marge Bot
parent ba6595e41f
commit 34b68c9017

View File

@@ -2869,6 +2869,7 @@ static void si_set_framebuffer_state(struct pipe_context *ctx,
si_update_fb_dirtiness_after_rendering(sctx);
/* Disable DCC if the formats are incompatible. */
if (sctx->gfx_level >= GFX8 && sctx->gfx_level < GFX11) {
for (i = 0; i < state->nr_cbufs; i++) {
if (!state->cbufs[i])
continue;
@@ -2885,6 +2886,7 @@ static void si_set_framebuffer_state(struct pipe_context *ctx,
surf->dcc_incompatible = false;
}
}
/* Only flush TC when changing the framebuffer state, because
* the only client not using TC that can change textures is