The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

a/vk: Add VK_EXT_debug_utils

+64
+14
scripts/generate_vk_helpers.py
··· 171 171 None, 172 172 Cmd("vkGetImageDrmFormatModifierPropertiesEXT", requires=("VK_EXT_image_drm_format_modifier",)), 173 173 None, 174 + Cmd("vkCmdBeginDebugUtilsLabelEXT", requires=("VK_EXT_debug_utils",)), 175 + Cmd("vkCmdEndDebugUtilsLabelEXT", requires=("VK_EXT_debug_utils",)), 176 + Cmd("vkCmdInsertDebugUtilsLabelEXT", requires=("VK_EXT_debug_utils",)), 177 + Cmd("vkQueueBeginDebugUtilsLabelEXT", requires=("VK_EXT_debug_utils",)), 178 + Cmd("vkQueueEndDebugUtilsLabelEXT", requires=("VK_EXT_debug_utils",)), 179 + Cmd("vkQueueInsertDebugUtilsLabelEXT", requires=("VK_EXT_debug_utils",)), 180 + Cmd("vkSetDebugUtilsObjectNameEXT", requires=("VK_EXT_debug_utils",)), 181 + Cmd("vkSetDebugUtilsObjectTagEXT", requires=("VK_EXT_debug_utils",)), 182 + None, 174 183 Cmd("vkCmdDebugMarkerBeginEXT", requires=("VK_EXT_debug_marker",)), 175 184 Cmd("vkCmdDebugMarkerEndEXT", requires=("VK_EXT_debug_marker",)), 176 185 Cmd("vkCmdDebugMarkerInsertEXT", requires=("VK_EXT_debug_marker",)), ··· 254 263 Cmd("vkCreateWin32SurfaceKHR", requires=("VK_USE_PLATFORM_WIN32_KHR",)), 255 264 None, 256 265 Cmd("vkGetPhysicalDeviceSurfaceCapabilities2EXT", requires=("VK_EXT_display_surface_counter",)), 266 + None, 267 + Cmd("vkCreateDebugUtilsMessengerEXT", requires=("VK_EXT_debug_utils",)), 268 + Cmd("vkSubmitDebugUtilsMessageEXT", requires=("VK_EXT_debug_utils",)), 269 + Cmd("vkDestroyDebugUtilsMessengerEXT", requires=("VK_EXT_debug_utils",)), 257 270 ] 258 271 259 272 ··· 261 274 INSTANCE_EXTENSIONS_TO_CHECK = [ 262 275 "VK_EXT_display_surface_counter", 263 276 "VK_EXT_swapchain_colorspace", 277 + "VK_EXT_debug_utils", 264 278 ] 265 279 # Sorted KHR, EXT, Vendor, interally alphabetically 266 280 DEVICE_EXTENSIONS_TO_CHECK = [
+8
src/xrt/auxiliary/vk/vk_bundle_init.c
··· 189 189 // Reset before filling out. 190 190 vk->has_EXT_display_surface_counter = false; 191 191 vk->has_EXT_swapchain_colorspace = false; 192 + vk->has_EXT_debug_utils = false; 192 193 193 194 const char *const *exts = u_string_list_get_data(ext_list); 194 195 uint32_t ext_count = u_string_list_get_size(ext_list); ··· 209 210 continue; 210 211 } 211 212 #endif // defined(VK_EXT_swapchain_colorspace) 213 + 214 + #if defined(VK_EXT_debug_utils) 215 + if (strcmp(ext, VK_EXT_DEBUG_UTILS_EXTENSION_NAME) == 0) { 216 + vk->has_EXT_debug_utils = true; 217 + continue; 218 + } 219 + #endif // defined(VK_EXT_debug_utils) 212 220 } 213 221 // end of GENERATED instance extension code - do not modify - used by scripts 214 222 }
+19
src/xrt/auxiliary/vk/vk_function_loaders.c
··· 134 134 135 135 #if defined(VK_EXT_display_surface_counter) 136 136 vk->vkGetPhysicalDeviceSurfaceCapabilities2EXT = GET_INS_PROC(vk, vkGetPhysicalDeviceSurfaceCapabilities2EXT); 137 + 137 138 #endif // defined(VK_EXT_display_surface_counter) 139 + 140 + #if defined(VK_EXT_debug_utils) 141 + vk->vkCreateDebugUtilsMessengerEXT = GET_INS_PROC(vk, vkCreateDebugUtilsMessengerEXT); 142 + vk->vkSubmitDebugUtilsMessageEXT = GET_INS_PROC(vk, vkSubmitDebugUtilsMessageEXT); 143 + vk->vkDestroyDebugUtilsMessengerEXT = GET_INS_PROC(vk, vkDestroyDebugUtilsMessengerEXT); 144 + #endif // defined(VK_EXT_debug_utils) 138 145 139 146 // end of GENERATED instance loader code - do not modify - used by scripts 140 147 ··· 309 316 vk->vkGetImageDrmFormatModifierPropertiesEXT = GET_DEV_PROC(vk, vkGetImageDrmFormatModifierPropertiesEXT); 310 317 311 318 #endif // defined(VK_EXT_image_drm_format_modifier) 319 + 320 + #if defined(VK_EXT_debug_utils) 321 + vk->vkCmdBeginDebugUtilsLabelEXT = GET_DEV_PROC(vk, vkCmdBeginDebugUtilsLabelEXT); 322 + vk->vkCmdEndDebugUtilsLabelEXT = GET_DEV_PROC(vk, vkCmdEndDebugUtilsLabelEXT); 323 + vk->vkCmdInsertDebugUtilsLabelEXT = GET_DEV_PROC(vk, vkCmdInsertDebugUtilsLabelEXT); 324 + vk->vkQueueBeginDebugUtilsLabelEXT = GET_DEV_PROC(vk, vkQueueBeginDebugUtilsLabelEXT); 325 + vk->vkQueueEndDebugUtilsLabelEXT = GET_DEV_PROC(vk, vkQueueEndDebugUtilsLabelEXT); 326 + vk->vkQueueInsertDebugUtilsLabelEXT = GET_DEV_PROC(vk, vkQueueInsertDebugUtilsLabelEXT); 327 + vk->vkSetDebugUtilsObjectNameEXT = GET_DEV_PROC(vk, vkSetDebugUtilsObjectNameEXT); 328 + vk->vkSetDebugUtilsObjectTagEXT = GET_DEV_PROC(vk, vkSetDebugUtilsObjectTagEXT); 329 + 330 + #endif // defined(VK_EXT_debug_utils) 312 331 313 332 #if defined(VK_EXT_debug_marker) 314 333 vk->vkCmdDebugMarkerBeginEXT = GET_DEV_PROC(vk, vkCmdDebugMarkerBeginEXT);
+20
src/xrt/auxiliary/vk/vk_helpers.h
··· 116 116 // beginning of GENERATED instance extension code - do not modify - used by scripts 117 117 bool has_EXT_display_surface_counter; 118 118 bool has_EXT_swapchain_colorspace; 119 + bool has_EXT_debug_utils; 119 120 // end of GENERATED instance extension code - do not modify - used by scripts 120 121 121 122 // beginning of GENERATED device extension code - do not modify - used by scripts ··· 250 251 251 252 #if defined(VK_EXT_display_surface_counter) 252 253 PFN_vkGetPhysicalDeviceSurfaceCapabilities2EXT vkGetPhysicalDeviceSurfaceCapabilities2EXT; 254 + 253 255 #endif // defined(VK_EXT_display_surface_counter) 256 + 257 + #if defined(VK_EXT_debug_utils) 258 + PFN_vkCreateDebugUtilsMessengerEXT vkCreateDebugUtilsMessengerEXT; 259 + PFN_vkSubmitDebugUtilsMessageEXT vkSubmitDebugUtilsMessageEXT; 260 + PFN_vkDestroyDebugUtilsMessengerEXT vkDestroyDebugUtilsMessengerEXT; 261 + #endif // defined(VK_EXT_debug_utils) 254 262 255 263 // end of GENERATED instance loader code - do not modify - used by scripts 256 264 ··· 416 424 PFN_vkGetImageDrmFormatModifierPropertiesEXT vkGetImageDrmFormatModifierPropertiesEXT; 417 425 418 426 #endif // defined(VK_EXT_image_drm_format_modifier) 427 + 428 + #if defined(VK_EXT_debug_utils) 429 + PFN_vkCmdBeginDebugUtilsLabelEXT vkCmdBeginDebugUtilsLabelEXT; 430 + PFN_vkCmdEndDebugUtilsLabelEXT vkCmdEndDebugUtilsLabelEXT; 431 + PFN_vkCmdInsertDebugUtilsLabelEXT vkCmdInsertDebugUtilsLabelEXT; 432 + PFN_vkQueueBeginDebugUtilsLabelEXT vkQueueBeginDebugUtilsLabelEXT; 433 + PFN_vkQueueEndDebugUtilsLabelEXT vkQueueEndDebugUtilsLabelEXT; 434 + PFN_vkQueueInsertDebugUtilsLabelEXT vkQueueInsertDebugUtilsLabelEXT; 435 + PFN_vkSetDebugUtilsObjectNameEXT vkSetDebugUtilsObjectNameEXT; 436 + PFN_vkSetDebugUtilsObjectTagEXT vkSetDebugUtilsObjectTagEXT; 437 + 438 + #endif // defined(VK_EXT_debug_utils) 419 439 420 440 #if defined(VK_EXT_debug_marker) 421 441 PFN_vkCmdDebugMarkerBeginEXT vkCmdDebugMarkerBeginEXT;
+3
src/xrt/compositor/main/comp_compositor.c
··· 468 468 #ifdef VK_EXT_display_surface_counter 469 469 VK_EXT_DISPLAY_SURFACE_COUNTER_EXTENSION_NAME, 470 470 #endif 471 + #if defined VK_EXT_debug_utils && !defined NDEBUG 472 + VK_EXT_DEBUG_UTILS_EXTENSION_NAME, 473 + #endif 471 474 }; 472 475 473 476 // Note: Keep synchronized with comp_vk_glue - we should have everything they