radeonsi: move the GS copy shader into shader variants
authorMarek Olšák <marek.olsak@amd.com>
Mon, 20 Dec 2021 02:04:56 +0000 (21:04 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 5 Jan 2022 12:46:31 +0000 (12:46 +0000)
commitd4a1766a5a932a0fc69c4f9e1eaf1923966dcbe5
treec2ed62bea57931e3c4d30c4ef199a2449b79887f
parent1caa94f2a5f156aed22f66942757a37056e74f28
radeonsi: move the GS copy shader into shader variants

This will allow further optimizations for shader variants that change
GS outputs (affecting the copy shader), and this is mainly about sharing
optimizations with NGG instead of having a totally separate codepath for
legacy GS.

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