From 766617e8dac93bfd535a967a0b552a1db0fff4e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timur=20Krist=C3=B3f?= Date: Tue, 5 Nov 2024 01:37:29 +0100 Subject: [PATCH] radv: Enable NGG culling by default on GFX10. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We never took the time to actually test this, but it works fine. Improves performance on Navi 10 in the following test cases: Baldur's Gate 3 Vulkan: up to 10% Witcher 3 D3D11: around 4% Granite primitive stress test: 107% FSR2 sample app: 57% Notes: NGG is still disabled on Navi 14. Not tested on Navi 12. Signed-off-by: Timur Kristóf Reviewed-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_physical_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_physical_device.c b/src/amd/vulkan/radv_physical_device.c index 5022ead6c9d..b2ae660f1ff 100644 --- a/src/amd/vulkan/radv_physical_device.c +++ b/src/amd/vulkan/radv_physical_device.c @@ -2134,7 +2134,8 @@ radv_physical_device_try_create(struct radv_instance *instance, drmDevicePtr drm /* TODO: Investigate if NGG culling helps on GFX11. */ pdev->use_ngg_culling = pdev->use_ngg && pdev->info.max_render_backends > 1 && - (pdev->info.gfx_level == GFX10_3 || (instance->perftest_flags & RADV_PERFTEST_NGGC)) && + (pdev->info.gfx_level == GFX10_3 || pdev->info.gfx_level == GFX10 || + (instance->perftest_flags & RADV_PERFTEST_NGGC)) && !(instance->debug_flags & RADV_DEBUG_NO_NGGC); pdev->use_ngg_streamout = pdev->info.gfx_level >= GFX11;