Commit 16c0d72
Fix TopologicalSort for Joint and Cooperative matrices (KhronosGroup#2143)
visit method of the sort relies on getNonLiteralOperands method of the
SPIRVType which is being inserted in the module. Without it dependent
types can be inserted in the module in incorrect order.
For example:
TypeCooperativeMatrixKHR %ID%
TypeStruct ... %ID%
is the correct order, but without the patch in some cases the translator
could generate the opposite order.
Signed-off-by: Sidorov, Dmitry <[email protected]>
(cherry picked from commit 436c497)1 parent e781a91 commit 16c0d72
File tree
3 files changed
+881
-0
lines changed- lib/SPIRV/libSPIRV
- test/extensions
- INTEL/SPV_INTEL_joint_matrix
- KHR/SPV_KHR_cooperative_matrix
3 files changed
+881
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1116 | 1116 | | |
1117 | 1117 | | |
1118 | 1118 | | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
1119 | 1123 | | |
1120 | 1124 | | |
1121 | 1125 | | |
| |||
1144 | 1148 | | |
1145 | 1149 | | |
1146 | 1150 | | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
1147 | 1155 | | |
1148 | 1156 | | |
1149 | 1157 | | |
| |||
0 commit comments