Mesa (main): radeonsi: disable ngg culling on llvm < 12

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 23 09:00:53 UTC 2021


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

Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date:   Mon Jun 14 17:52:00 2021 +0200

radeonsi: disable ngg culling on llvm < 12

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4874
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
CC: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11362>

---

 src/gallium/drivers/radeonsi/si_pipe.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index 9eae6b18efb..15680db443f 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -1236,7 +1236,9 @@ static struct pipe_screen *radeonsi_screen_create_impl(struct radeon_winsys *ws,
                       sscreen->info.chip_class >= GFX10 &&
                       (sscreen->info.family != CHIP_NAVI14 ||
                        sscreen->info.is_pro_graphics);
-   sscreen->use_ngg_culling = sscreen->use_ngg && !(sscreen->debug_flags & DBG(NO_NGG_CULLING));
+   sscreen->use_ngg_culling = sscreen->use_ngg &&
+                              !((sscreen->debug_flags & DBG(NO_NGG_CULLING)) ||
+                                LLVM_VERSION_MAJOR <= 11 /* hangs on 11, see #4874 */);
    sscreen->use_ngg_streamout = false;
 
    /* Only set this for the cases that are known to work, which are:



More information about the mesa-commit mailing list