From 79d860a6493f1bb20e7a88a5858de9cde35f711b Mon Sep 17 00:00:00 2001 From: Mauricio Maurer Date: Mon, 9 Dec 2024 09:24:04 -0800 Subject: [PATCH] igl | vulkan | Use hardcoded debug name if one hasn't been provided Reviewed By: ChristianK275, corporateshark Differential Revision: D66923835 fbshipit-source-id: 56ef4a83bdb82d2c4005be504064a85211517652 --- src/igl/vulkan/VulkanContext.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/igl/vulkan/VulkanContext.cpp b/src/igl/vulkan/VulkanContext.cpp index 6750db1c31..91b078dbfb 100644 --- a/src/igl/vulkan/VulkanContext.cpp +++ b/src/igl/vulkan/VulkanContext.cpp @@ -794,7 +794,11 @@ igl::Result VulkanContext::initContext(const HWDeviceDesc& desc, device, deviceQueues_.computeQueueFamilyIndex, 0, &deviceQueues_.computeQueue); device_ = std::make_unique( - vf_, device, IGL_FORMAT("Device: VulkanContext::device_ {}", debugName).c_str()); + vf_, + device, + IGL_FORMAT("Device: VulkanContext::device_ {}", + debugName ? debugName : "igl/vulkan/VulkanContext.cpp") + .c_str()); immediate_ = std::make_unique(vf_, device,