radeonsi: move the no-AA small prim precision cull constant into an SGPR
authorMarek Olšák <marek.olsak@amd.com>
Thu, 28 Jul 2022 21:18:04 +0000 (17:18 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 3 Aug 2022 00:57:16 +0000 (00:57 +0000)
commitfa46f3d40e7784f3d637eedd0efa7ff7e827bdf1
tree659cc9f7e1d5bdf6af64dd6c25146dc44b628f2b
parent788dce46a3c8ebea782da9d37b94bab744c21c28
radeonsi: move the no-AA small prim precision cull constant into an SGPR

This reduces the scalar load from vec4 to vec2.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17864>
src/gallium/drivers/radeonsi/gfx10_shader_ngg.c
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_shader.h
src/gallium/drivers/radeonsi/si_state_viewport.c