소스 검색

Fix patch constant function prop setting for DxilLinker

Tex Riddell 7 년 전
부모
커밋
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);