iris: Remap stream output indexes back to VARYING_SLOT_*.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 23 Jan 2019 07:28:39 +0000 (23:28 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:11 +0000 (10:26 -0800)
commit1db394f46be02b49f05af7d31bd3cf41975d03bc
tree9aa1a43e457d92507b29f987bae51489dba84608
parent5d3d75717878d7a93d6b122fcea297d88ebf629d
iris: Remap stream output indexes back to VARYING_SLOT_*.

Previously I had a hack in st/mesa to make it stop remapping
VARYING_SLOT_* into the naively compacted slots, which aren't
what we want.  But that wasn't very feasible, as we'd have to
update all drivers, or add capability bits, and it gets messy fast.

It turns out that I can map back to VARYING_SLOT_* in about 5 LOC,
so let's just do that.  It removes the need for hacks, and is easy.

This also fixes KHR-GL46.enhanced_layouts.xfb_capture_struct, which
apparently with my hack was still getting the wrong slot info.
src/gallium/drivers/iris/iris_program.c