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 <timur.kristof@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12859>
This commit is contained in:
Timur Kristóf 2021-09-14 19:08:33 +02:00 committed by Marge Bot
parent 7ae5a93b7f
commit df653977bd

View file

@ -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