Commit 70f15e6
[ET-VK] Fake u16vecn for devserver (#6704)
Pull Request resolved: #6675
## Context
Copy-pasted from the newly added `maybe_fake_u16vec3` function in the codegen script:
> There is a latency benefit to using u16vecn variables to store texture position variables instead of ivecn, likely due to reduced register pressure. However, SwiftShader does not support 16 bit integer types in shaders, so this is a crude way to fallback to using ivecn to store texture positions so that testing with SwiftShader is still possible.
ghstack-source-id: 252234981
@exported-using-ghexport
Differential Revision: [D65501674](https://our.internmc.facebook.com/intern/diff/D65501674/)
Co-authored-by: Stephen Jia <[email protected]>1 parent 8f82198 commit 70f15e6
File tree
3 files changed
+28
-1
lines changed- backends/vulkan
- runtime
- graph/ops/glsl
3 files changed
+28
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
| 543 | + | |
543 | 544 | | |
544 | 545 | | |
545 | 546 | | |
| |||
549 | 550 | | |
550 | 551 | | |
551 | 552 | | |
| 553 | + | |
552 | 554 | | |
553 | 555 | | |
554 | 556 | | |
| |||
705 | 707 | | |
706 | 708 | | |
707 | 709 | | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
708 | 726 | | |
709 | 727 | | |
710 | 728 | | |
| |||
716 | 734 | | |
717 | 735 | | |
718 | 736 | | |
| 737 | + | |
719 | 738 | | |
720 | 739 | | |
721 | 740 | | |
| |||
1029 | 1048 | | |
1030 | 1049 | | |
1031 | 1050 | | |
| 1051 | + | |
1032 | 1052 | | |
1033 | 1053 | | |
1034 | 1054 | | |
| |||
1056 | 1076 | | |
1057 | 1077 | | |
1058 | 1078 | | |
1059 | | - | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
1060 | 1084 | | |
1061 | 1085 | | |
1062 | 1086 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
0 commit comments