Fix compute shader handling of implicitly-set unspecified root signature

* Previous commit 304e636 fixed this for most cases but was incorrect for
  compute PSOs.
This commit is contained in:
baldurk
2024-09-13 13:22:04 +01:00
parent 51baf8a6af
commit eed31e2a09
+2 -2
View File
@@ -842,8 +842,6 @@ bool WrappedID3D12Device::Serialise_CreateComputePipelineState(
WrappedID3D12Shader *entry = WrappedID3D12Shader::AddShader(wrapped->compute->CS, this);
entry->AddRef();
wrapped->FetchRootSig(GetShaderCache());
if(m_GlobalEXTUAV != ~0U)
entry->SetShaderExtSlot(m_GlobalEXTUAV, m_GlobalEXTUAVSpace);
@@ -856,6 +854,8 @@ bool WrappedID3D12Device::Serialise_CreateComputePipelineState(
wrapped->compute->CS.pShaderBytecode = entry;
wrapped->FetchRootSig(GetShaderCache());
if(Replay_Debug_SingleThreadedCompilation())
{
RDResult res = DeferredPipelineCompile(m_pDevice, OrigDescriptor, wrapped);