Mesa (main): radeonsi: don't expose no-attachment MSAA 16x on all 1 RB chips due to issues

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jul 16 23:21:51 UTC 2021


Module: Mesa
Branch: main
Commit: 86ff5b7ddb60ee82b04eea143b9cc7efa3ff8183
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=86ff5b7ddb60ee82b04eea143b9cc7efa3ff8183

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Wed Jul 14 08:27:40 2021 -0400

radeonsi: don't expose no-attachment MSAA 16x on all 1 RB chips due to issues

Cc: mesa-stable at lists.freedesktop.org

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11900>

---

 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. */



More information about the mesa-commit mailing list