diff options
| author | Darren Wihandi <65404740+fairywreath@users.noreply.github.com> | 2025-02-28 13:11:26 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-28 10:11:26 -0800 |
| commit | 66984eb856454d0a372e3b30643823af18612067 (patch) | |
| tree | cf9283fc3cb15bd83ae476f00e7785658adaa77e /source/slang/slang-emit.cpp | |
| parent | e4b960024972420dfc96a758bfc35e8fcbf28273 (diff) | |
Add WaveGetLane* support for Metal and WGSL (#6371)
* support WaveGetLane* for WGSL and Metal
* update test and glsl support
* address review comments and fix metal test
* add missing pragma guard
* update test
* Revert "update test"
This reverts commit f2b97e91c29de154190710580c343bd0764aedbb.
* update failing glsl metal test and added new test
* make hlsl and glsl outputs similar
* update test
* disable tests for Metal and cleanup
* comment fix
* add expected failures
* correct expected failures list
* remove expected failure
* add tests to expected failure
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/slang/slang-emit.cpp')
| -rw-r--r-- | source/slang/slang-emit.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/slang/slang-emit.cpp b/source/slang/slang-emit.cpp index 847c5b55c..ddb4ea67a 100644 --- a/source/slang/slang-emit.cpp +++ b/source/slang/slang-emit.cpp @@ -100,7 +100,7 @@ #include "slang-ir-strip-default-construct.h" #include "slang-ir-strip-legalization-insts.h" #include "slang-ir-synthesize-active-mask.h" -#include "slang-ir-translate-glsl-global-var.h" +#include "slang-ir-translate-global-varying-var.h" #include "slang-ir-uniformity.h" #include "slang-ir-user-type-hint.h" #include "slang-ir-validate.h" @@ -318,7 +318,7 @@ struct RequiredLoweringPassSet bool bindingQuery; bool meshOutput; bool higherOrderFunc; - bool glslGlobalVar; + bool globalVaryingVar; bool glslSSBO; bool byteAddressBuffer; bool dynamicResource; @@ -422,7 +422,7 @@ void calcRequiredLoweringPassSet( case kIROp_GlobalInputDecoration: case kIROp_GlobalOutputDecoration: case kIROp_GetWorkGroupSize: - result.glslGlobalVar = true; + result.globalVaryingVar = true; break; case kIROp_BindExistentialSlotsDecoration: result.bindExistential = true; @@ -667,8 +667,8 @@ Result linkAndOptimizeIR( if (!isKhronosTarget(targetRequest) && requiredLoweringPassSet.glslSSBO) lowerGLSLShaderStorageBufferObjectsToStructuredBuffers(irModule, sink); - if (requiredLoweringPassSet.glslGlobalVar) - translateGLSLGlobalVar(codeGenContext, irModule); + if (requiredLoweringPassSet.globalVaryingVar) + translateGlobalVaryingVar(codeGenContext, irModule); if (requiredLoweringPassSet.resolveVaryingInputRef) resolveVaryingInputRef(irModule); |
