mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
a/vk: Add VK_EXT_debug_marker
This commit is contained in:
parent
4363f02a22
commit
b5a882480b
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# Copyright 2019-2022, Collabora, Ltd.
|
# Copyright 2019-2023, Collabora, Ltd.
|
||||||
# SPDX-License-Identifier: BSL-1.0
|
# SPDX-License-Identifier: BSL-1.0
|
||||||
"""Simple script to update vk_helpers.{c,h}."""
|
"""Simple script to update vk_helpers.{c,h}."""
|
||||||
|
|
||||||
|
@ -170,6 +170,12 @@ def get_device_cmds():
|
||||||
Cmd("vkRegisterDisplayEventEXT", requires=("VK_EXT_display_control",)),
|
Cmd("vkRegisterDisplayEventEXT", requires=("VK_EXT_display_control",)),
|
||||||
None,
|
None,
|
||||||
Cmd("vkGetImageDrmFormatModifierPropertiesEXT", requires=("VK_EXT_image_drm_format_modifier",)),
|
Cmd("vkGetImageDrmFormatModifierPropertiesEXT", requires=("VK_EXT_image_drm_format_modifier",)),
|
||||||
|
None,
|
||||||
|
Cmd("vkCmdDebugMarkerBeginEXT", requires=("VK_EXT_debug_marker",)),
|
||||||
|
Cmd("vkCmdDebugMarkerEndEXT", requires=("VK_EXT_debug_marker",)),
|
||||||
|
Cmd("vkCmdDebugMarkerInsertEXT", requires=("VK_EXT_debug_marker",)),
|
||||||
|
Cmd("vkDebugMarkerSetObjectNameEXT", requires=("VK_EXT_debug_marker",)),
|
||||||
|
Cmd("vkDebugMarkerSetObjectTagEXT", requires=("VK_EXT_debug_marker",)),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@ -269,6 +275,7 @@ DEVICE_EXTENSIONS_TO_CHECK = [
|
||||||
"VK_KHR_maintenance4",
|
"VK_KHR_maintenance4",
|
||||||
"VK_KHR_timeline_semaphore",
|
"VK_KHR_timeline_semaphore",
|
||||||
"VK_EXT_calibrated_timestamps",
|
"VK_EXT_calibrated_timestamps",
|
||||||
|
"VK_EXT_debug_marker",
|
||||||
"VK_EXT_display_control",
|
"VK_EXT_display_control",
|
||||||
"VK_EXT_external_memory_dma_buf",
|
"VK_EXT_external_memory_dma_buf",
|
||||||
"VK_EXT_global_priority",
|
"VK_EXT_global_priority",
|
||||||
|
|
|
@ -657,6 +657,7 @@ fill_in_has_device_extensions(struct vk_bundle *vk, struct u_string_list *ext_li
|
||||||
vk->has_KHR_maintenance4 = false;
|
vk->has_KHR_maintenance4 = false;
|
||||||
vk->has_KHR_timeline_semaphore = false;
|
vk->has_KHR_timeline_semaphore = false;
|
||||||
vk->has_EXT_calibrated_timestamps = false;
|
vk->has_EXT_calibrated_timestamps = false;
|
||||||
|
vk->has_EXT_debug_marker = false;
|
||||||
vk->has_EXT_display_control = false;
|
vk->has_EXT_display_control = false;
|
||||||
vk->has_EXT_external_memory_dma_buf = false;
|
vk->has_EXT_external_memory_dma_buf = false;
|
||||||
vk->has_EXT_global_priority = false;
|
vk->has_EXT_global_priority = false;
|
||||||
|
@ -747,6 +748,13 @@ fill_in_has_device_extensions(struct vk_bundle *vk, struct u_string_list *ext_li
|
||||||
}
|
}
|
||||||
#endif // defined(VK_EXT_calibrated_timestamps)
|
#endif // defined(VK_EXT_calibrated_timestamps)
|
||||||
|
|
||||||
|
#if defined(VK_EXT_debug_marker)
|
||||||
|
if (strcmp(ext, VK_EXT_DEBUG_MARKER_EXTENSION_NAME) == 0) {
|
||||||
|
vk->has_EXT_debug_marker = true;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
#endif // defined(VK_EXT_debug_marker)
|
||||||
|
|
||||||
#if defined(VK_EXT_display_control)
|
#if defined(VK_EXT_display_control)
|
||||||
if (strcmp(ext, VK_EXT_DISPLAY_CONTROL_EXTENSION_NAME) == 0) {
|
if (strcmp(ext, VK_EXT_DISPLAY_CONTROL_EXTENSION_NAME) == 0) {
|
||||||
vk->has_EXT_display_control = true;
|
vk->has_EXT_display_control = true;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Copyright 2019-2022, Collabora, Ltd.
|
// Copyright 2019-2023, Collabora, Ltd.
|
||||||
// SPDX-License-Identifier: BSL-1.0
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
/*!
|
/*!
|
||||||
* @file
|
* @file
|
||||||
|
@ -307,8 +307,17 @@ vk_get_device_functions(struct vk_bundle *vk)
|
||||||
|
|
||||||
#if defined(VK_EXT_image_drm_format_modifier)
|
#if defined(VK_EXT_image_drm_format_modifier)
|
||||||
vk->vkGetImageDrmFormatModifierPropertiesEXT = GET_DEV_PROC(vk, vkGetImageDrmFormatModifierPropertiesEXT);
|
vk->vkGetImageDrmFormatModifierPropertiesEXT = GET_DEV_PROC(vk, vkGetImageDrmFormatModifierPropertiesEXT);
|
||||||
|
|
||||||
#endif // defined(VK_EXT_image_drm_format_modifier)
|
#endif // defined(VK_EXT_image_drm_format_modifier)
|
||||||
|
|
||||||
|
#if defined(VK_EXT_debug_marker)
|
||||||
|
vk->vkCmdDebugMarkerBeginEXT = GET_DEV_PROC(vk, vkCmdDebugMarkerBeginEXT);
|
||||||
|
vk->vkCmdDebugMarkerEndEXT = GET_DEV_PROC(vk, vkCmdDebugMarkerEndEXT);
|
||||||
|
vk->vkCmdDebugMarkerInsertEXT = GET_DEV_PROC(vk, vkCmdDebugMarkerInsertEXT);
|
||||||
|
vk->vkDebugMarkerSetObjectNameEXT = GET_DEV_PROC(vk, vkDebugMarkerSetObjectNameEXT);
|
||||||
|
vk->vkDebugMarkerSetObjectTagEXT = GET_DEV_PROC(vk, vkDebugMarkerSetObjectTagEXT);
|
||||||
|
#endif // defined(VK_EXT_debug_marker)
|
||||||
|
|
||||||
// end of GENERATED device loader code - do not modify - used by scripts
|
// end of GENERATED device loader code - do not modify - used by scripts
|
||||||
// clang-format on
|
// clang-format on
|
||||||
return VK_SUCCESS;
|
return VK_SUCCESS;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Copyright 2019-2022, Collabora, Ltd.
|
// Copyright 2019-2023, Collabora, Ltd.
|
||||||
// SPDX-License-Identifier: BSL-1.0
|
// SPDX-License-Identifier: BSL-1.0
|
||||||
/*!
|
/*!
|
||||||
* @file
|
* @file
|
||||||
|
@ -130,6 +130,7 @@ struct vk_bundle
|
||||||
bool has_KHR_maintenance4;
|
bool has_KHR_maintenance4;
|
||||||
bool has_KHR_timeline_semaphore;
|
bool has_KHR_timeline_semaphore;
|
||||||
bool has_EXT_calibrated_timestamps;
|
bool has_EXT_calibrated_timestamps;
|
||||||
|
bool has_EXT_debug_marker;
|
||||||
bool has_EXT_display_control;
|
bool has_EXT_display_control;
|
||||||
bool has_EXT_external_memory_dma_buf;
|
bool has_EXT_external_memory_dma_buf;
|
||||||
bool has_EXT_global_priority;
|
bool has_EXT_global_priority;
|
||||||
|
@ -413,8 +414,17 @@ struct vk_bundle
|
||||||
|
|
||||||
#if defined(VK_EXT_image_drm_format_modifier)
|
#if defined(VK_EXT_image_drm_format_modifier)
|
||||||
PFN_vkGetImageDrmFormatModifierPropertiesEXT vkGetImageDrmFormatModifierPropertiesEXT;
|
PFN_vkGetImageDrmFormatModifierPropertiesEXT vkGetImageDrmFormatModifierPropertiesEXT;
|
||||||
|
|
||||||
#endif // defined(VK_EXT_image_drm_format_modifier)
|
#endif // defined(VK_EXT_image_drm_format_modifier)
|
||||||
|
|
||||||
|
#if defined(VK_EXT_debug_marker)
|
||||||
|
PFN_vkCmdDebugMarkerBeginEXT vkCmdDebugMarkerBeginEXT;
|
||||||
|
PFN_vkCmdDebugMarkerEndEXT vkCmdDebugMarkerEndEXT;
|
||||||
|
PFN_vkCmdDebugMarkerInsertEXT vkCmdDebugMarkerInsertEXT;
|
||||||
|
PFN_vkDebugMarkerSetObjectNameEXT vkDebugMarkerSetObjectNameEXT;
|
||||||
|
PFN_vkDebugMarkerSetObjectTagEXT vkDebugMarkerSetObjectTagEXT;
|
||||||
|
#endif // defined(VK_EXT_debug_marker)
|
||||||
|
|
||||||
// end of GENERATED device loader code - do not modify - used by scripts
|
// end of GENERATED device loader code - do not modify - used by scripts
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue