v3dv: add support for VK_EXT_debug_report
authorAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 27 Nov 2019 10:24:22 +0000 (11:24 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:24 +0000 (21:21 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>

src/broadcom/vulkan/v3dv_device.c
src/broadcom/vulkan/v3dv_extensions.py

index 9eae961..3403808 100644 (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);
+}
index 8e41735..a1c8476 100644 (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