[llvm] [DirectX] Add stub PSV0 section (PR #96712)
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 26 10:09:45 PDT 2024
================
@@ -133,6 +136,34 @@ void DXContainerGlobals::addSignature(Module &M,
Globals.emplace_back(buildSignature(M, OutputSig, "dx.osg1", "OSG1"));
}
+void DXContainerGlobals::addPipelineStateValidationInfo(
+ Module &M, SmallVector<GlobalValue *> &Globals) {
+ SmallString<256> Data;
+ raw_svector_ostream OS(Data);
+ PSVRuntimeInfo PSV;
+ Triple TT(M.getTargetTriple());
+ PSV.BaseData.MinimumWaveLaneCount = 0;
+ PSV.BaseData.MaximumWaveLaneCount = std::numeric_limits<uint32_t>::max();
+ PSV.BaseData.ShaderStage =
+ static_cast<uint8_t>(TT.getEnvironment() - Triple::Pixel);
+
+ // Hardcoded values here to unblock loading the shader into D3D.
+ //
+ // Lots more stuff to do here!
+ //
+ // See issue https://github.com/llvm/llvm-project/issues/96674.
----------------
bogner wrote:
It'd probably good to have "TODO:" somewhere in this comment like we have elsewhere
https://github.com/llvm/llvm-project/pull/96712
More information about the llvm-commits
mailing list