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
Add rich validation error messages with source spans
Improve spirv-val error messages by looking up source locations from
SrcLocDecoration annotations:
- Add validation_err.rs module to parse validation errors and look up
source spans from the SPIR-V module's custom SrcLocDecoration
- Strip SrcLocDecoration and ZombieDecoration before validation (these
are invalid on functions) but keep the original module for span lookup
- Add --preserve-debug-decorations flag to optionally keep decorations
- Add SrcLocDecoration to entry point interface variables so validation
errors for conflicting locations show the relevant source spans
- Keep decorations in linker output (they're stripped after validation)
For location conflict errors, the error message now shows:
- The specific variable causing the conflict with its source location
- The conflicting variable with its source location
- A help message explaining why the conflict occurs (e.g., Mat4 uses 4 locations)
0 commit comments