mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
st/mesa: Re-assign vs in locations after updating nir info for ffvp/ARB_vp
After call to nir_shader_gather_info - inputs_read may have changed so
st_nir_assign_vs_in_locations should be called for shader to remain in
sync with vbo state.
Fixes piglit tests:
gl-1.0-fpexceptions
gl-1.1-color-material-unused-normal-array
arb_vertex_program-unused-attributes
regression on several gallium drivers.
Fixes: d684fb37bf
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4645>
This commit is contained in:
parent
ae169f38ce
commit
829013d0ca
1 changed files with 1 additions and 0 deletions
|
|
@ -535,6 +535,7 @@ st_translate_vertex_program(struct st_context *st,
|
|||
*/
|
||||
nir_shader_gather_info(stp->Base.nir,
|
||||
nir_shader_get_entrypoint(stp->Base.nir));
|
||||
st_nir_assign_vs_in_locations(stp->Base.nir);
|
||||
stp->Base.info = stp->Base.nir->info;
|
||||
|
||||
/* For st_draw_feedback, we need to generate TGSI too if draw doesn't
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue