radeonsi: simplify NGG culling enablement and add radeonsi_shader_culling option
authorMarek Olšák <marek.olsak@amd.com>
Fri, 25 Sep 2020 20:45:22 +0000 (16:45 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 1 Oct 2020 16:29:46 +0000 (16:29 +0000)
commit30c3b2c0b602a7e9f9d1246c2de61cf1ef38f4ae
tree222e8ad2a1fca1a27f7973def9b084702030ffbd
parentb02bef01c89872434d957c2a5cc9b30cbe32d92d
radeonsi: simplify NGG culling enablement and add radeonsi_shader_culling option

Add a vertex count threshold into si_shader_selector to simplify
the draw_vbo code.

The new option is supposed to be used in 00-mesa-defaults.conf and should be
tweaked for best performance unlike the AMD_DEBUG experimental options.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6948>
src/gallium/drivers/radeonsi/si_debug_options.h
src/gallium/drivers/radeonsi/si_pipe.c
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_shader.h
src/gallium/drivers/radeonsi/si_state_draw.c
src/gallium/drivers/radeonsi/si_state_shaders.c