ir3: Fixup dual-source blending slot
authorConnor Abbott <cwabbott0@gmail.com>
Thu, 14 May 2020 14:11:58 +0000 (16:11 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 14 May 2020 18:15:31 +0000 (18:15 +0000)
commit2a9d12d5133639946b624a1ad367ea3f9543a8fe
tree5b5fdd8db3fbb5d746ad202a4d1dd875ced19c84
parent0e0580550e1b4846d3ad7ff738f57063b05089c9
ir3: Fixup dual-source blending slot

The hardware expects that where MRT0 and MRT1 would normally go are the
dual sources for MRT0, whereas GLSL has an extra "index" parameter that
indicates which source it is. Remap it when handling FS outputs.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5039>
src/freedreno/ir3/ir3_compiler_nir.c