radeonsi: remove gl_BackColor VS outputs on demand if color_two_side is disabled
authorMarek Olšák <marek.olsak@amd.com>
Mon, 8 May 2023 00:33:07 +0000 (20:33 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 6 Jun 2023 18:01:35 +0000 (18:01 +0000)
commitb72a1883e22c82c91ef794a6b8d5c8ce78028d44
treeedc2d3cf0935cc0508ac367873e225c63ed9b424
parenta1d938d31881020ca6f00077c4e91f193cfca250
radeonsi: remove gl_BackColor VS outputs on demand if color_two_side is disabled

We just need to set the ps_inputs_read_or_disabled mask correctly.

The VS outputs_written mask should set BFCn instead of COLn, which is why
this removes the is_varying parameter that forced COLn to be set for BFCn.

Reviewed-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22833>
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_shader.h
src/gallium/drivers/radeonsi/si_shader_info.c
src/gallium/drivers/radeonsi/si_shader_llvm_tess.c
src/gallium/drivers/radeonsi/si_state_shaders.cpp