Mesa (main): radeonsi: don't use NGG culling on 1 RB chips

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 24 03:17:06 UTC 2021


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

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Sun Jun 20 01:42:18 2021 -0400

radeonsi: don't use NGG culling on 1 RB chips

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

---

 src/gallium/drivers/radeonsi/si_pipe.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index 7a82b04f959..300305552a9 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -1241,6 +1241,7 @@ static struct pipe_screen *radeonsi_screen_create_impl(struct radeon_winsys *ws,
                       (sscreen->info.family != CHIP_NAVI14 ||
                        sscreen->info.is_pro_graphics);
    sscreen->use_ngg_culling = sscreen->use_ngg &&
+                              sscreen->info.max_render_backends >= 2 &&
                               !((sscreen->debug_flags & DBG(NO_NGG_CULLING)) ||
                                 LLVM_VERSION_MAJOR <= 11 /* hangs on 11, see #4874 */);
    sscreen->use_ngg_streamout = false;



More information about the mesa-commit mailing list