Skip to content

spirv: Eliminate dead input/output variables after translation.

Kenneth Graunke requested to merge kwg/mesa:spirv-fix into master

spirv_to_nir can generate input/output variables which are illegal for the current shader stage, which would cause nir_validate_shader to balk. After my recent commit to start decorating arrays as compact, started hitting validation errors due to outputs in a TCS (not intended for the TCS at all) not being per-vertex arrays.

Thanks to Jason Ekstrand for suggesting this approach.

Bugzilla: Fixes: ef99f4c8 compiler: Mark clip/cull distance arrays as compact before lowering.

Merge request reports