radeonsi: enable NGG culling by default on Navi1x PRO cards
authorMarek Olšák <marek.olsak@amd.com>
Fri, 16 Oct 2020 09:17:30 +0000 (05:17 -0400)
committerMarge Bot <eric+marge@anholt.net>
Sat, 17 Oct 2020 01:58:19 +0000 (01:58 +0000)
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7172>

src/gallium/drivers/radeonsi/si_state_shaders.c

index 393e0f7..b22a9d5 100644 (file)
@@ -2799,7 +2799,9 @@ static void *si_create_shader_selector(struct pipe_context *ctx,
             sel->ngg_cull_vert_threshold = 0; /* always enabled */
          else if (sscreen->options.shader_culling ||
                   (sscreen->info.chip_class == GFX10_3 &&
-                   sscreen->info.has_dedicated_vram))
+                   sscreen->info.has_dedicated_vram) ||
+                  (sscreen->info.chip_class == GFX10 &&
+                   sscreen->info.is_pro_graphics))
             sel->ngg_cull_vert_threshold = 1500; /* vertex count must be more than this */
       } else if (sel->info.stage == MESA_SHADER_TESS_EVAL) {
          if (sscreen->debug_flags & DBG(ALWAYS_NGG_CULLING_ALL) ||