From 86ff5b7ddb60ee82b04eea143b9cc7efa3ff8183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 14 Jul 2021 08:27:40 -0400 Subject: [PATCH] radeonsi: don't expose no-attachment MSAA 16x on all 1 RB chips due to issues Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/drivers/radeonsi/si_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index bbac84819d7..95aa12eaf88 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -2257,7 +2257,7 @@ static bool si_is_format_supported(struct pipe_screen *screen, enum pipe_format /* Chips with 1 RB don't increment occlusion queries at 16x MSAA sample rate, * so don't expose 16 samples there. */ - const unsigned max_eqaa_samples = sscreen->info.max_render_backends == 1 ? 8 : 16; + const unsigned max_eqaa_samples = util_bitcount(sscreen->info.enabled_rb_mask) <= 1 ? 8 : 16; const unsigned max_samples = 8; /* MSAA support without framebuffer attachments. */