nir: Add a face_sysval argument to nir_lower_two_sided_color
authorIcecream95 <ixn@keemail.me>
Tue, 14 Jul 2020 10:17:34 +0000 (22:17 +1200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 17 Jul 2020 14:50:26 +0000 (14:50 +0000)
commit314ba5e17450c8c14c2191bcd5675a9eaaac69d8
treed4023daafd47bb5cc8d749a7236bf12477b5efb8
parent2a6db94b05cadb9bcd7a3b28f9fe60c7905fb21e
nir: Add a face_sysval argument to nir_lower_two_sided_color

This is needed for handling drivers that use an input for loading the
face, for example Panfrost with Midgard GPUs.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Rob Clark <robdclark@chromium.org>
Tested-by: Urja Rannikko <urjaman@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5915>
src/broadcom/compiler/vir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_two_sided_color.c
src/freedreno/ir3/ir3_nir.c
src/gallium/drivers/vc4/vc4_program.c
src/mesa/state_tracker/st_program.c