Commit fc5873e
authored
fixes a new validation failure in a UniformId test (#3301)
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.1 parent 2feb3e3 commit fc5873e
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
0 commit comments