2
0
Эх сурвалжийг харах

Fix patch constant function prop setting for DxilLinker

Tex Riddell 7 жил өмнө
parent
commit
28c04e456b

+ 1 - 2
lib/HLSL/DxilLinker.cpp

@@ -602,8 +602,7 @@ DxilLinkJob::Link(std::pair<DxilFunctionLinkInfo *, DxilLib *> &entryLinkPair,
     Function *patchConstantFunc = props.ShaderProps.HS.patchConstantFunc;
     Function *newPatchConstantFunc =
         m_newFunctions[patchConstantFunc->getName()];
-    DM.SetPatchConstantFunctionForHS(entryFunc, nullptr);
-    DM.SetPatchConstantFunctionForHS(NewEntryFunc, newPatchConstantFunc);
+    props.ShaderProps.HS.patchConstantFunc = newPatchConstantFunc;
 
     if (newPatchConstantFunc->hasFnAttribute(llvm::Attribute::AlwaysInline))
       newPatchConstantFunc->removeFnAttr(llvm::Attribute::AlwaysInline);