summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-09-27 19:26:59 -0700
committerGitHub <noreply@github.com>2024-09-27 19:26:59 -0700
commit5a84e520a808e28e0cc60f86981e4d8db81f8ad3 (patch)
tree745571c74c04f8ba258368a7b50b62b3908e82eb /source
parentafb1405bf7974d714cee10fcce0c61fe28cd075d (diff)
Fix hull shader spirv legalization bug. (#5180)
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-ir-glsl-legalize.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-ir-glsl-legalize.cpp b/source/slang/slang-ir-glsl-legalize.cpp
index d8c1aa91e..2d7e0c804 100644
--- a/source/slang/slang-ir-glsl-legalize.cpp
+++ b/source/slang/slang-ir-glsl-legalize.cpp
@@ -951,7 +951,7 @@ IRInst* getOrCreateBuiltinParamForHullShader(GLSLLegalizationContext* context, U
{
IRBuilder builder(context->entryPointFunc);
auto paramType = builder.getIntType();
- builder.setInsertInto(context->entryPointFunc->getFirstBlock()->getFirstOrdinaryInst());
+ builder.setInsertBefore(context->entryPointFunc->getFirstBlock()->getFirstOrdinaryInst());
outputControlPointIdParam = builder.emitParam(paramType);
IRStructTypeLayout::Builder typeBuilder(&builder);
auto typeLayout = typeBuilder.build();