You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix optimizer not updating module ID bound after optimization
The optimizer allocates new IDs for synthesized constants, phi nodes,
and materialized expressions but never updates the module header's
bound field. Since rspirv's assemble() uses the header bound as-is,
the output SPIR-V had a stale bound that was too small, causing
"id exceeds declared id bound" validation errors.
Update output.header.bound to next_id after optimization completes.
Add a regression test that verifies the bound covers all IDs.
0 commit comments