Skip to content

nir/linking: semi-fix replace_varying_input_by_constant_load with mismatched io

Mike Blumenkrantz requested to merge zmike/mesa:nir-linker into main

What does this MR do and why?

nir/linking: semi-fix replace_varying_input_by_constant_load with mismatched io

if the producer outputs scalarized io, the consumer will try to rewrite this into const with oob swizzles

this rewrites things further to replace the const loads with vecs that won't break the shader

Merge request reports