From 29f54befbd67ae7fa5df30a9c771d1acc35b210e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 21 Nov 2021 21:34:05 +0100 Subject: [PATCH] Comment improvement, restore accidental deletion --- Common/GPU/Vulkan/VulkanQueueRunner.cpp | 3 +++ Common/GPU/Vulkan/VulkanRenderManager.cpp | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Common/GPU/Vulkan/VulkanQueueRunner.cpp b/Common/GPU/Vulkan/VulkanQueueRunner.cpp index 3f75f6c6d0..6f344c86e8 100644 --- a/Common/GPU/Vulkan/VulkanQueueRunner.cpp +++ b/Common/GPU/Vulkan/VulkanQueueRunner.cpp @@ -841,6 +841,9 @@ void VulkanQueueRunner::LogRenderPass(const VKRStep &pass, bool verbose) { case VKRRenderCommand::REMOVED: INFO_LOG(G3D, " (Removed)"); break; + case VKRRenderCommand::BIND_PIPELINE: + INFO_LOG(G3D, " BindPipeline(%x)", (int)(intptr_t)cmd.pipeline.pipeline); + break; case VKRRenderCommand::BIND_GRAPHICS_PIPELINE: INFO_LOG(G3D, " BindGraphicsPipeline(%x)", (int)(intptr_t)cmd.graphics_pipeline.pipeline); break; diff --git a/Common/GPU/Vulkan/VulkanRenderManager.cpp b/Common/GPU/Vulkan/VulkanRenderManager.cpp index 952857354f..73798f29bf 100644 --- a/Common/GPU/Vulkan/VulkanRenderManager.cpp +++ b/Common/GPU/Vulkan/VulkanRenderManager.cpp @@ -33,8 +33,10 @@ bool VKRGraphicsPipeline::Create(VulkanContext *vulkan) { delete desc; desc = nullptr; if (result == VK_INCOMPLETE) { - // Bad return value seen on Adreno in Burnout :( Try to ignore? - // Create a placeholder to avoid creating over and over if something is broken. + // Bad (disallowed by spec) return value seen on Adreno in Burnout :( Try to ignore? + // Would really like to log more here, we could probably attach more info to desc. + // + // At least create a null placeholder to avoid creating over and over if something is broken. pipeline = VK_NULL_HANDLE; return true; } else if (result != VK_SUCCESS) { @@ -58,6 +60,7 @@ bool VKRComputePipeline::Create(VulkanContext *vulkan) { desc = nullptr; if (result != VK_SUCCESS) { pipeline = VK_NULL_HANDLE; + ERROR_LOG(G3D, "Failed creating compute pipeline! result='%s'", VulkanResultToString(result)); return false; } return true;