From 1d978917a003217a90d108a5a35a880a894e75dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 6 Mar 2023 13:36:25 -0500 Subject: [PATCH] radeonsi: remove duplicated gfx11 check in si_msaa_resolve_blit_via_CB The function really does that twice. You'll find the same code a few lines above this change. Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/drivers/radeonsi/si_blit.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_blit.c b/src/gallium/drivers/radeonsi/si_blit.c index 7bf90fd0957..91e97e2620b 100644 --- a/src/gallium/drivers/radeonsi/si_blit.c +++ b/src/gallium/drivers/radeonsi/si_blit.c @@ -1058,10 +1058,6 @@ bool si_msaa_resolve_blit_via_CB(struct pipe_context *ctx, const struct pipe_bli struct pipe_resource *tmp, templ; struct pipe_blit_info blit; - /* Gfx11 doesn't have CB_RESOLVE. */ - if (sctx->gfx_level >= GFX11) - return false; - /* Check basic requirements for hw resolve. */ if (!(info->src.resource->nr_samples > 1 && info->dst.resource->nr_samples <= 1 && !util_format_is_pure_integer(format) && !util_format_is_depth_or_stencil(format) &&