From 5d552b4f6cbfcb4bf14e3a0bdce01cc00eb61073 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 29 Nov 2022 08:41:14 +0100 Subject: [PATCH] radv: do not enable NGG culling on GFX11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit RadeonSI disables it as well. It's really unclear if it will help or not (eg. NGG culling never helped on GFX10). Cc: 22.3 mesa-stable Signed-off-by: Samuel Pitoiset Reviewed-by: Timur Kristóf Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index ab4e3bc3544..6daff28d402 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -897,8 +897,9 @@ radv_physical_device_try_create(struct radv_instance *instance, drmDevicePtr drm !(device->instance->debug_flags & RADV_DEBUG_NO_NGG)) || device->rad_info.gfx_level >= GFX11; + /* TODO: Investigate if NGG culling helps on GFX11. */ device->use_ngg_culling = device->use_ngg && device->rad_info.max_render_backends > 1 && - (device->rad_info.gfx_level >= GFX10_3 || + (device->rad_info.gfx_level == GFX10_3 || (device->instance->perftest_flags & RADV_PERFTEST_NGGC)) && !(device->instance->debug_flags & RADV_DEBUG_NO_NGGC);