vulkan: add some debugging about the supported extensions
This commit is contained in:
parent
72e956fe5e
commit
0ee8fe193e
@ -210,6 +210,7 @@ gst_vulkan_device_open (GstVulkanDevice * device, GError ** error)
|
||||
if (gst_vulkan_error_to_g_error (err, error,
|
||||
"vkEnumerateDeviceExtensionProperties") < 0)
|
||||
goto error;
|
||||
GST_DEBUG_OBJECT (device, "Found %u extensions", device_extension_count);
|
||||
|
||||
have_swapchain_ext = 0;
|
||||
enabled_extension_count = 0;
|
||||
@ -224,6 +225,8 @@ gst_vulkan_device_open (GstVulkanDevice * device, GError ** error)
|
||||
}
|
||||
|
||||
for (uint32_t i = 0; i < device_extension_count; i++) {
|
||||
GST_TRACE_OBJECT (device, "checking device extension %s",
|
||||
device_extensions[i].extensionName);
|
||||
if (!strcmp (VK_KHR_SWAPCHAIN_EXTENSION_NAME,
|
||||
device_extensions[i].extensionName)) {
|
||||
have_swapchain_ext = TRUE;
|
||||
|
@ -192,6 +192,7 @@ gst_vulkan_instance_open (GstVulkanInstance * instance, GError ** error)
|
||||
g_free (instance_layers);
|
||||
goto error;
|
||||
}
|
||||
GST_DEBUG_OBJECT (instance, "Found %u extensions", instance_extension_count);
|
||||
|
||||
memset (extension_names, 0, sizeof (extension_names));
|
||||
instance_extensions =
|
||||
@ -223,6 +224,9 @@ gst_vulkan_instance_open (GstVulkanInstance * instance, GError ** error)
|
||||
|
||||
/* TODO: allow outside selection */
|
||||
for (uint32_t i = 0; i < instance_extension_count; i++) {
|
||||
GST_TRACE_OBJECT (instance, "checking instance extension %s",
|
||||
instance_extensions[i].extensionName);
|
||||
|
||||
if (!g_strcmp0 (VK_KHR_SURFACE_EXTENSION_NAME,
|
||||
instance_extensions[i].extensionName)) {
|
||||
swapchain_ext_found = TRUE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user