diff options
author | Marek Olšák <marek.olsak@amd.com> | 2023-03-19 17:05:40 -0400 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-03-29 20:36:09 +0000 |
commit | 281126f1d65e0177e333f2be32d901981d8ca950 (patch) | |
tree | 1edee01aca8bd7c44d7994b6b282279462b02032 /src/gallium/drivers/radeonsi/si_state.c | |
parent | e0d449dd4015b8efd053ef58aa3eff730987f8b4 (diff) |
radeonsi/gfx11: reduce MSAA samples to 8 for no-attachment framebuffer
EQAA is unsupported
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22084>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index d03fe3b2afa..756c27ccbf1 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -2433,7 +2433,9 @@ 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 = util_bitcount64(sscreen->info.enabled_rb_mask) <= 1 ? 8 : 16; + const unsigned max_eqaa_samples = + (sscreen->info.gfx_level >= GFX11 || + util_bitcount64(sscreen->info.enabled_rb_mask) <= 1) ? 8 : 16; const unsigned max_samples = 8; /* MSAA support without framebuffer attachments. */ |