Commit 8ac4c4f
authored
spirv-val: Combine Image Coordinate checks (#6494)
This originally came out of
https://gitlab.khronos.org/spirv/SPIR-V/-/issues/905 where we found a
driver that crashed passing it 16-bit floats as the coordinate
I tried to combine the logic and went through each type ... I am not
sure why/if there is a difference between Vulkan/OpenCL with respect to
allowing Float vs Int (but found 1 that we have active tests for
https://gitlab.khronos.org/spirv/SPIR-V/-/issues/908) ... the other is
`OpImageRead`/`OpImageWrite`, those were being validated incorrectly
according to the spec1 parent 58224f5 commit 8ac4c4f
File tree
5 files changed
+276
-205
lines changed- source
- opt
- val
- test
- opt
- val
5 files changed
+276
-205
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
325 | 326 | | |
326 | 327 | | |
327 | 328 | | |
328 | | - | |
| 329 | + | |
329 | 330 | | |
330 | 331 | | |
331 | 332 | | |
| |||
338 | 339 | | |
339 | 340 | | |
340 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
341 | 355 | | |
342 | 356 | | |
343 | 357 | | |
| |||
591 | 605 | | |
592 | 606 | | |
593 | 607 | | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
594 | 632 | | |
595 | 633 | | |
596 | 634 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
148 | 151 | | |
149 | 152 | | |
150 | 153 | | |
| |||
0 commit comments