Skip to content

mesa/st: Fallback to name lookup when the variable have no Parameter

Caio Oliveira requested to merge cmarcelo/mesa:r/st-param-name-fallback into master

This brings back the fallback previously present in st_nir_lookup_parameter_index(): if there's no parameter associated with the variable, use a parameter from a variable with the same prefix.

We'll have to sort out something for SPIR-V, but in the meantime let's fix GLSL.

Fixes: b6384e57 ("mesa/st: Lookup parameters without using names")

Merge request reports