From a720083a7e25c42d00750a2ed98c22d5defffe19 Mon Sep 17 00:00:00 2001 From: OatmealDome Date: Sun, 30 Jan 2022 21:52:10 -0500 Subject: [PATCH] Revert "Vulkan: Check for vkSetDebugUtilsObjectNameEXT before using it" This reverts commit 2ab66390f8a461b074cb3cf6073b8f9d60875436. --- Source/Core/VideoBackends/Vulkan/VKShader.cpp | 4 ++-- Source/Core/VideoBackends/Vulkan/VKTexture.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/VideoBackends/Vulkan/VKShader.cpp b/Source/Core/VideoBackends/Vulkan/VKShader.cpp index 650ac85120..3d5beae387 100644 --- a/Source/Core/VideoBackends/Vulkan/VKShader.cpp +++ b/Source/Core/VideoBackends/Vulkan/VKShader.cpp @@ -17,7 +17,7 @@ VKShader::VKShader(ShaderStage stage, std::vector spv, VkShaderModule mod, : AbstractShader(stage), m_spv(std::move(spv)), m_module(mod), m_compute_pipeline(VK_NULL_HANDLE), m_name(name) { - if (!m_name.empty() && vkSetDebugUtilsObjectNameEXT) + if (!m_name.empty()) { VkDebugUtilsObjectNameInfoEXT name_info = {}; name_info.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT; @@ -32,7 +32,7 @@ VKShader::VKShader(std::vector spv, VkPipeline compute_pipeline, std::strin : AbstractShader(ShaderStage::Compute), m_spv(std::move(spv)), m_module(VK_NULL_HANDLE), m_compute_pipeline(compute_pipeline), m_name(name) { - if (!m_name.empty() && vkSetDebugUtilsObjectNameEXT) + if (!m_name.empty()) { VkDebugUtilsObjectNameInfoEXT name_info = {}; name_info.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT; diff --git a/Source/Core/VideoBackends/Vulkan/VKTexture.cpp b/Source/Core/VideoBackends/Vulkan/VKTexture.cpp index b47a5d6362..98128c85f6 100644 --- a/Source/Core/VideoBackends/Vulkan/VKTexture.cpp +++ b/Source/Core/VideoBackends/Vulkan/VKTexture.cpp @@ -29,7 +29,7 @@ VKTexture::VKTexture(const TextureConfig& tex_config, VkDeviceMemory device_memo : AbstractTexture(tex_config), m_device_memory(device_memory), m_image(image), m_layout(layout), m_compute_layout(compute_layout), m_name(name) { - if (!m_name.empty() && vkSetDebugUtilsObjectNameEXT) + if (!m_name.empty()) { VkDebugUtilsObjectNameInfoEXT name_info = {}; name_info.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT;