vulkan: Implement DebugMarkerSetObjectNameEXT

DebugMarkerSetObjectNameEXT is just a less powerful version of
SetDebugUtilsObjectNameEXT. Fixes the objectType cast warning as well.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27975>
This commit is contained in:
Konstantin Seurer
2024-03-05 10:15:08 +01:00
committed by Marge Bot
parent d039764410
commit f3fe1f2f18
4 changed files with 44 additions and 32 deletions
-13
View File
@@ -76,19 +76,6 @@ VkResult anv_rmv_InvalidateMappedMemoryRanges(
return VK_SUCCESS;
}
VkResult anv_rmv_DebugMarkerSetObjectNameEXT(
VkDevice device,
const VkDebugMarkerObjectNameInfoEXT* pNameInfo)
{
assert(pNameInfo->sType == VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_NAME_INFO_EXT);
VkDebugUtilsObjectNameInfoEXT name_info;
name_info.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_OBJECT_NAME_INFO_EXT;
name_info.objectType = pNameInfo->objectType;
name_info.objectHandle = pNameInfo->object;
name_info.pObjectName = pNameInfo->pObjectName;
return anv_rmv_SetDebugUtilsObjectNameEXT(device, &name_info);
}
VkResult anv_rmv_SetDebugUtilsObjectNameEXT(
VkDevice _device,
const VkDebugUtilsObjectNameInfoEXT* pNameInfo)