nir: fix assign_io_var_locations for vertex inputs
turnip uses assign_io_var_locations on vertex shader inputs and needs this fix.
Also fixes fragment inputs using the wrong "base" value (which was working only because FRAG_RESULT_DATA0 is less than VARYING_SLOT_VAR0)
Edited by Jonathan Marek