zink: enable tgsi texcoord pipe cap
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 17 Jun 2020 21:40:04 +0000 (17:40 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 14 Jul 2020 20:48:17 +0000 (20:48 +0000)
commit5e9cd64f70af7a8ec9a34590f9b6f6fb3066fae1
tree35f4ae8635e53bbf476316460c6ec392c18fc0ba
parent05362b075fdaff62189c9a8e2e01750f3466f07d
zink: enable tgsi texcoord pipe cap

this requires some modifications to the ntv slot remapping, as we definitely
don't want to reserve another 25% of the available slots for the (deprecated)
texcoord varyings

now we remap VARYING_SLOT_TEX[n] to the last available slots, which lets us avoid
needing to do permanent reservation, and we check to make sure that we haven't
seen the corresponding texcoord varying any time we emit a non-texcoord varying in
that slot

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5551>
src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
src/gallium/drivers/zink/zink_screen.c