mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 12:00:41 +02:00
radv: Enable NGG culling by default on GFX10.
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 <timur.kristof@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31971>
This commit is contained in:
parent
6bf19b2d70
commit
766617e8da
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue