Commit 3bf6305
authored
[SER] Validate %dx.types.HitObject as legal type same as handle (#7390)
Validator did not recognize %dx.types.HitObject as an allowed type. This
lead to validation failures in -Od compiles where allocas, loads and
stores remain in the generated DXIL:
```
dxc.exe -T lib_6_9 -Od \tools\clang\test\CodeGenDXIL\hlsl\intrinsics\maybereorder.hlsl
error: validation errors
error: Declaration '%dx.types.HitObject = type { i8* }' uses a reserved prefix.
```
Closes #73871 parent 7522097 commit 3bf6305
2 files changed
Lines changed: 22 additions & 0 deletions
File tree
- lib/DxilValidation
- tools/clang/test/CodeGenDXIL/hlsl/intrinsics
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2599 | 2599 | | |
2600 | 2600 | | |
2601 | 2601 | | |
| 2602 | + | |
| 2603 | + | |
| 2604 | + | |
2602 | 2605 | | |
2603 | 2606 | | |
2604 | 2607 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
0 commit comments