vkdevice: add the necessary but arbitrary queue priority
authorMatthew Waters <matthew@centricular.com>
Tue, 16 Feb 2016 05:18:21 +0000 (16:18 +1100)
committerMatthew Waters <matthew@centricular.com>
Tue, 16 Feb 2016 14:13:43 +0000 (01:13 +1100)
Silences an error in the validation layers.

ext/vulkan/vkdevice.c

index 9bf30f40d78511c1fd9cdea924b32520693f6085..a7d9d0445db429f66bb14b77d40b9e390dcd8132 100644 (file)
@@ -281,11 +281,13 @@ gst_vulkan_device_open (GstVulkanDevice * device, GError ** error)
   {
     VkDeviceQueueCreateInfo queue_info = { 0, };
     VkDeviceCreateInfo device_info = { 0, };
+    gfloat queue_priority = 0.5;
 
     queue_info.sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO;
     queue_info.pNext = NULL;
     queue_info.queueFamilyIndex = device->queue_family_id;
     queue_info.queueCount = device->n_queues;
+    queue_info.pQueuePriorities = &queue_priority;
 
     device_info.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO;
     device_info.pNext = NULL;