diff options
| author | Yong He <yonghe@outlook.com> | 2024-02-20 12:24:00 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-20 12:24:00 -0800 |
| commit | 4d20fd329956ac89408b1628a8291fea01bc9a6d (patch) | |
| tree | 8e62d9c1ec05142fd25d0b31073fdb56d44691b0 /source/slang/slang-ir-specialize-matrix-layout.cpp | |
| parent | 8e9b61e3bac69dbb37a1451b62302e688a017ced (diff) | |
Refactor compiler option representations. (#3598)
* Refactor compiler option representation.
* Fix binary compatibility.
* Add a test for specifying compiler options at link time.
* Fix binary compatibility.
* Fix binary compatibility.
* Fix backward compatibility on matrix layout.
* Fix.
* Fix.
* Fix.
* Fix gfx.
* Fix gfx.
* Fix dynamic dispatch.
* Polish.
Diffstat (limited to 'source/slang/slang-ir-specialize-matrix-layout.cpp')
| -rw-r--r-- | source/slang/slang-ir-specialize-matrix-layout.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-ir-specialize-matrix-layout.cpp b/source/slang/slang-ir-specialize-matrix-layout.cpp index 5ce61f4cf..8f6ca1b12 100644 --- a/source/slang/slang-ir-specialize-matrix-layout.cpp +++ b/source/slang/slang-ir-specialize-matrix-layout.cpp @@ -24,12 +24,12 @@ namespace Slang } } - void specializeMatrixLayout(TargetRequest* target, IRModule* module) + void specializeMatrixLayout(TargetProgram* target, IRModule* module) { List<IRMatrixType*> typeWorkList; visitParent(typeWorkList, module->getModuleInst()); - IRIntegerValue defaultLayout = target->getDefaultMatrixLayoutMode(); + IRIntegerValue defaultLayout = target->getOptionSet().getMatrixLayoutMode(); if (defaultLayout == SLANG_MATRIX_LAYOUT_MODE_UNKNOWN) defaultLayout = SLANG_MATRIX_LAYOUT_ROW_MAJOR; |
