Skip to content

st/mesa: Update shader info of ffvp/ARB_vp after translation to NIR

We must update stp->Base.info after translation and before st_prepare_vertex_program is called, because inputs_read may become outdated after NIR optimization passes.

For ffvp/ARB_vp inputs_read is populated based on declared attributes without taking their usage into consideration. When creating shader variants we expect that their inputs_read would match the base ones for input mapping to work properly.

Fixes: 8a0dd0af
Closes: #2758 (closed)

Piglit tests: piglit!260 (merged)

Edited by Danylo Piliaiev

Merge request reports