Просмотр исходного кода

Fix patch constant function prop setting for DxilLinker

Tex Riddell 7 лет назад
Родитель
Сommit
28c04e456b
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      lib/HLSL/DxilLinker.cpp

+ 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);