st/mesa: fix lowered IO - don't call st_nir_assign_vs_in_locations twice
authorMarek Olšák <marek.olsak@amd.com>
Tue, 1 Sep 2020 16:19:32 +0000 (12:19 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 2 Sep 2020 20:05:05 +0000 (20:05 +0000)
commit95415a54c007a909f0fb9d1b2567beecbd73d403
treeb01c6f847b944e5f06dafde30cc930f5d5739c95
parent8c43edf9f917a801a18940bb570a295b7eed7f90
st/mesa: fix lowered IO - don't call st_nir_assign_vs_in_locations twice

If IO is lowered, the second call is a no-op, which breaks:
   spec@!opengl 1.1@gl-1.1-color-material-unused-normal-array

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6540>
src/mesa/state_tracker/st_program.c