Skip to content

st/mesa: Treat vertex inputs absent in inputMapping as zero in mesa_to_tgsi

After updating inputs being read based on optimized NIR they may go out of sync with inputs in mesa IR, which is, if draw doesn't have llvm, translated to TGSI and used together with NIR if draw doesn't have llvm.

It's much easier to treat them as zero because there is no pass to entirely get rid of them and they don't contribute to shader's output.

Fixes: d684fb37
Closes: #2815 (closed)

Merge request reports