diff --git a/icd/api/vk_pipeline.cpp b/icd/api/vk_pipeline.cpp index 270967e5..b0e7f85d 100644 --- a/icd/api/vk_pipeline.cpp +++ b/icd/api/vk_pipeline.cpp @@ -371,10 +371,6 @@ VkResult Pipeline::GetShaderDisassembly( { const PipelineBinaryInfo* pPipelineBinary = GetBinary(); - // To extract the shader code, we can re-parse the saved ELF binary and lookup the shader's program - // instructions by examining the symbol table entry for that shader's entrypoint. - Util::Abi::PipelineAbiReader abiReader(pDevice->VkInstance()->Allocator(), pPipelineBinary->pBinary); - if (pPipelineBinary == nullptr) { // The pipelineBinary will be null if the pipeline wasn't created with @@ -384,6 +380,10 @@ VkResult Pipeline::GetShaderDisassembly( return VK_ERROR_UNKNOWN; } + // To extract the shader code, we can re-parse the saved ELF binary and lookup the shader's program + // instructions by examining the symbol table entry for that shader's entrypoint. + Util::Abi::PipelineAbiReader abiReader(pDevice->VkInstance()->Allocator(), pPipelineBinary->pBinary); + VkResult result = VK_SUCCESS; Pal::Result palResult = abiReader.Init();