Skip to content

Conversation

@gfxstrand
Copy link
Contributor

No description provided.

@CLAassistant
Copy link

CLAassistant commented Jul 23, 2025

CLA assistant check
All committers have signed the CLA.

@gfxstrand gfxstrand force-pushed the decorate-id-order branch from 6d85151 to 72ec3f6 Compare July 23, 2025 20:30
@gfxstrand gfxstrand force-pushed the decorate-id-order branch from 72ec3f6 to 42d1bf8 Compare July 25, 2025 15:59
@alan-baker alan-baker enabled auto-merge (squash) July 25, 2025 20:20
@alan-baker
Copy link
Contributor

Formatting needs fixed. Separately it appears that DXC is generating invalid SPIR-V for AMDX work graph code. That doesn't need fixed before this is merged, but FYI @s-perron.

auto-merge was automatically disabled July 28, 2025 13:27

Head branch was pushed to by a user without write access

@gfxstrand gfxstrand force-pushed the decorate-id-order branch from 42d1bf8 to 7dd001e Compare July 28, 2025 13:27
@s-perron
Copy link
Collaborator

Thanks Alan. I'll look into the DXC smoke test.

@alan-baker alan-baker merged commit a6e2406 into KhronosGroup:main Jul 28, 2025
25 of 26 checks passed
s-perron added a commit to s-perron/DirectXShaderCompiler that referenced this pull request Jul 28, 2025
The value that decorates another value, but be declared before the value
it decorates. See KhronosGroup/SPIRV-Tools#6227.
s-perron added a commit to s-perron/DirectXShaderCompiler that referenced this pull request Jul 29, 2025
The value that decorates another value, but be declared before the value
it decorates. See KhronosGroup/SPIRV-Tools#6227.
s-perron added a commit to microsoft/DirectXShaderCompiler that referenced this pull request Jul 29, 2025
The value that decorates another value must be declared before the value
it decorates. See KhronosGroup/SPIRV-Tools#6227.
svenvh pushed a commit to KhronosGroup/SPIRV-LLVM-Translator that referenced this pull request Aug 8, 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.
jsji pushed a commit to intel/llvm that referenced this pull request Sep 6, 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.

Original commit:
KhronosGroup/SPIRV-LLVM-Translator@fc5873ee760c333
github-actions bot pushed a commit to KhronosGroup/SPIRV-LLVM-Translator 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.
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.

5 participants