st/nir: Fix assigning PointCoord location with !PIPE_CAP_TEXCOORD
authorConnor Abbott <cwabbott0@gmail.com>
Thu, 23 Apr 2020 14:08:21 +0000 (16:08 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sat, 25 Apr 2020 15:52:05 +0000 (15:52 +0000)
commit662e9c180176e906406c65871b4c090702ed4c99
tree3c360fcc4891ff0d8f26d94001f4e9b394d7651a
parenta64d2661340a659bdd0b729090b3aa6c135e8b4c
st/nir: Fix assigning PointCoord location with !PIPE_CAP_TEXCOORD

This was trying to emulate the effect of mapping GL -> TGSI -> NIR,
but failed to handle VARYING_SLOT_PNTC which led to a kludgy workaround
in freedreno.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4732>
src/mesa/state_tracker/st_glsl_to_nir.cpp