Module: Mesa
Branch: main
Commit: df653977bd7e6ec25224d39ff69d213f6e579d89
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=df653977bd7e6ec25224d39ff69d213f6e579d89

Author: Timur Kristóf <[email protected]>
Date:   Tue Sep 14 19:08:33 2021 +0200

radv: Reduce NGG culling small draw threshold to 128.

Many modern games use draw calls with only a few vertices.

Signed-off-by: Timur Kristóf <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12859>

---

 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

Reply via email to