From df653977bd7e6ec25224d39ff69d213f6e579d89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timur=20Krist=C3=B3f?= Date: Tue, 14 Sep 2021 19:08:33 +0200 Subject: [PATCH] radv: Reduce NGG culling small draw threshold to 128. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Many modern games use draw calls with only a few vertices. Signed-off-by: Timur Kristóf Reviewed-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_cmd_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 8f4b30187a9..207188c742b 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -5727,7 +5727,7 @@ radv_skip_ngg_culling(bool has_tess, const unsigned vtx_cnt, * When tessellation is used, what matters is the number of tessellated * vertices, so let's always assume it's not a small draw. */ - return !has_tess && !indirect && vtx_cnt < 512; + return !has_tess && !indirect && vtx_cnt < 128; } ALWAYS_INLINE static uint32_t