diff --git a/docs/envvars.rst b/docs/envvars.rst index d4e6f6b235b..f032c1ba2c7 100644 --- a/docs/envvars.rst +++ b/docs/envvars.rst @@ -1663,7 +1663,7 @@ RadeonSI driver environment variables ``nongg`` Disable NGG and use the legacy pipeline. ``nggc`` - Always use NGG culling even when it can hurt. + Always use NGG culling even on GPUs where it is disabled by default. ``nonggc`` Disable NGG culling. ``switch_on_eop`` diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index 16ef6fea85d..19c03191a68 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -669,6 +669,8 @@ radv_consider_culling(const struct radv_physical_device *pdev, struct nir_shader if (pdev->info.gfx_level >= GFX10_3 && pdev->info.has_dedicated_vram) max_ps_params = 12; /* GFX10.3 and newer discrete GPUs. */ + else if (pdev->info.gfx_level == GFX10 && pdev->info.has_dedicated_vram) + max_ps_params = 12; /* TODO: consider other heuristics here, such as PS execution time */ if (util_bitcount64(ps_inputs_read) > max_ps_params)