mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-24 07:26:34 +00:00
Remap pipeline ID to live ID before calling driver
This commit is contained in:
@@ -518,7 +518,7 @@ std::string D3D12Replay::DisassembleShader(ResourceId pipeline, const ShaderRefl
|
||||
}
|
||||
|
||||
WrappedID3D12PipelineState *pipe =
|
||||
m_pDevice->GetResourceManager()->GetLiveAs<WrappedID3D12PipelineState>(pipeline);
|
||||
m_pDevice->GetResourceManager()->GetCurrentAs<WrappedID3D12PipelineState>(pipeline);
|
||||
|
||||
UINT size = 0;
|
||||
pipe->GetPrivateData(WKPDID_CommentStringW, &size, NULL);
|
||||
|
||||
@@ -472,7 +472,7 @@ void VulkanReplay::CachePipelineExecutables(ResourceId pipeline)
|
||||
|
||||
rdcarray<PipelineExecutables> &data = it.first->second;
|
||||
|
||||
VkPipeline pipe = m_pDriver->GetResourceManager()->GetLiveHandle<VkPipeline>(pipeline);
|
||||
VkPipeline pipe = m_pDriver->GetResourceManager()->GetCurrentHandle<VkPipeline>(pipeline);
|
||||
|
||||
VkPipelineInfoKHR pipeInfo = {
|
||||
VK_STRUCTURE_TYPE_PIPELINE_INFO_KHR, NULL, Unwrap(pipe),
|
||||
@@ -566,7 +566,7 @@ std::string VulkanReplay::DisassembleShader(ResourceId pipeline, const ShaderRef
|
||||
"; Shader must be disassembled with a specific pipeline.";
|
||||
}
|
||||
|
||||
VkPipeline pipe = m_pDriver->GetResourceManager()->GetLiveHandle<VkPipeline>(pipeline);
|
||||
VkPipeline pipe = m_pDriver->GetResourceManager()->GetCurrentHandle<VkPipeline>(pipeline);
|
||||
|
||||
VkShaderStageFlagBits stageBit =
|
||||
VkShaderStageFlagBits(1 << it->second.GetReflection(refl->entryPoint, pipeline).stageIndex);
|
||||
|
||||
@@ -293,7 +293,7 @@ rdcstr ReplayController::DisassembleShader(ResourceId pipeline, const ShaderRefl
|
||||
if(t == target)
|
||||
return GCNISA::Disassemble(refl->encoding, refl->stage, refl->rawBytes, target);
|
||||
|
||||
return m_pDevice->DisassembleShader(pipeline, refl, target);
|
||||
return m_pDevice->DisassembleShader(m_pDevice->GetLiveID(pipeline), refl, target);
|
||||
}
|
||||
|
||||
FrameDescription ReplayController::GetFrameInfo()
|
||||
|
||||
Reference in New Issue
Block a user