Mesa (master): radeonsi: enable NGG on Navi14 PRO cards

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Oct 17 02:10:23 UTC 2020


Module: Mesa
Branch: master
Commit: 67a67ea29e7177393c3ba9f70c5b7207862065ab
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=67a67ea29e7177393c3ba9f70c5b7207862065ab

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Fri Oct 16 05:15:36 2020 -0400

radeonsi: enable NGG on Navi14 PRO cards

These are the only cards where it works.

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

---

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

diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index a8d5439f07d..cba5463c5d5 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -1188,7 +1188,8 @@ static struct pipe_screen *radeonsi_screen_create_impl(struct radeon_winsys *ws,
 
    sscreen->use_ngg = !(sscreen->debug_flags & DBG(NO_NGG)) &&
                       sscreen->info.chip_class >= GFX10 &&
-                      sscreen->info.family != CHIP_NAVI14 &&
+                      (sscreen->info.family != CHIP_NAVI14 ||
+                       sscreen->info.is_pro_graphics) &&
                       sscreen->info.has_dedicated_vram;
    sscreen->use_ngg_culling = sscreen->use_ngg && !(sscreen->debug_flags & DBG(NO_NGG_CULLING));
    sscreen->use_ngg_streamout = false;



More information about the mesa-commit mailing list