v3dv: add support for VK_EXT_debug_report

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>
This commit is contained in:
Alejandro Piñeiro 2019-11-27 11:24:22 +01:00 committed by Marge Bot
parent e4af07be76
commit 2f383f9747
2 changed files with 23 additions and 1 deletions

View file

@ -239,3 +239,25 @@ v3dv_GetDeviceQueue(VkDevice _device,
{
/* FIXME: stub */
}
VkResult
v3dv_CreateDebugReportCallbackEXT(VkInstance _instance,
const VkDebugReportCallbackCreateInfoEXT* pCreateInfo,
const VkAllocationCallbacks* pAllocator,
VkDebugReportCallbackEXT* pCallback)
{
V3DV_FROM_HANDLE(v3dv_instance, instance, _instance);
return vk_create_debug_report_callback(&instance->debug_report_callbacks,
pCreateInfo, pAllocator, &instance->alloc,
pCallback);
}
void
v3dv_DestroyDebugReportCallbackEXT(VkInstance _instance,
VkDebugReportCallbackEXT _callback,
const VkAllocationCallbacks* pAllocator)
{
V3DV_FROM_HANDLE(v3dv_instance, instance, _instance);
vk_destroy_debug_report_callback(&instance->debug_report_callbacks,
_callback, pAllocator, &instance->alloc);
}

View file

@ -62,7 +62,7 @@ API_VERSIONS = [
MAX_API_VERSION = None # Computed later
EXTENSIONS = [
#FIXME: for now we don't support additional extensions beyond 1.0. Revisit later
Extension('VK_EXT_debug_report', 9, True),
]
# Sort the extension list the way we expect: KHR, then EXT, then vendors