Skip to content

Conversation

@bashbaug
Copy link
Contributor

@bashbaug bashbaug commented Aug 7, 2025

A recent spirv-val change requires that OpDecorateId IDs are well-ordered, which means that the decoration operand ID cannot be the same as the decoration target ID. See: KhronosGroup/SPIRV-Tools#6227

This leads to the failure:

error: line 6: Parameter <ID> '2[%uint_0]' must appear earlier in the binary than the target
  OpDecorateId %uint_0 UniformId %uint_0

The fix is to use a different ID for the decoration operand and the decoration target.

A recent spirv-val change requires that OpDecorateId IDs are
well-ordered, which means that the decoration operand ID cannot
be the same as the decoration target ID.
@bashbaug bashbaug requested a review from svenvh August 7, 2025 22:36
@svenvh svenvh merged commit fc5873e into KhronosGroup:main Aug 8, 2025
8 checks passed
@anbe42
Copy link

anbe42 commented Dec 12, 2025

Please backport to llvm_release_210

@MrSidims
Copy link
Contributor

/backport llvm_release_210

@github-actions
Copy link

Attempting to create backport to llvm_release_210...

github-actions bot pushed a commit that referenced this pull request Dec 14, 2025
A recent spirv-val change requires that OpDecorateId IDs are
well-ordered, which means that the decoration operand ID cannot be the
same as the decoration target ID. See:
KhronosGroup/SPIRV-Tools#6227

This leads to the failure:

```
error: line 6: Parameter <ID> '2[%uint_0]' must appear earlier in the binary than the target
  OpDecorateId %uint_0 UniformId %uint_0
```

The fix is to use a different ID for the decoration operand and the
decoration target.
@github-actions
Copy link

Success. Backport PR created: #3470

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants