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:
@@ -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
|
||||
|
Reference in New Issue
Block a user