nir: fix assign_io_var_locations for vertex inputs
authorJonathan Marek <jonathan@marek.ca>
Sun, 15 Dec 2019 23:50:29 +0000 (18:50 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 19 Dec 2019 21:26:52 +0000 (21:26 +0000)
commit06ae0674fd64215793878c4933065e1692d0e285
tree00529fc34ce72478c0b79326f7db06753a5f4f20
parente9a32af3bfb359d6ba484d01d6875ed4dfbc94ee
nir: fix assign_io_var_locations for vertex inputs

Also fixes fragment inputs using the wrong "base" value (which was working
only because FRAG_RESULT_DATA0 is less than VARYING_SLOT_VAR0)

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Eric Anholt <eric@anholt.net>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3108>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3108>
src/compiler/nir/nir_linking_helpers.c