From a7bdba82ceb52f4825d047bf69870b2ee4309332 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 11 Dec 2015 01:02:46 +0100 Subject: [PATCH] Handle queue priorities properly if adding a new queue type --- renderdoc/driver/vulkan/wrappers/vk_device_funcs.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/renderdoc/driver/vulkan/wrappers/vk_device_funcs.cpp b/renderdoc/driver/vulkan/wrappers/vk_device_funcs.cpp index c5c24d1bb..af07ac8fe 100644 --- a/renderdoc/driver/vulkan/wrappers/vk_device_funcs.cpp +++ b/renderdoc/driver/vulkan/wrappers/vk_device_funcs.cpp @@ -452,6 +452,9 @@ bool WrappedVulkan::Serialise_vkCreateDevice( uint32_t qFamilyIdx = 0; VkQueueFlags search = (VK_QUEUE_GRAPHICS_BIT); + // for queue priorities, if we need it + float one = 1.0f; + // if we need to change the requested queues, it will point to this VkDeviceQueueCreateInfo *modQueues = NULL; @@ -498,6 +501,7 @@ bool WrappedVulkan::Serialise_vkCreateDevice( modQueues[createInfo.queueCreateInfoCount].queueFamilyIndex = qFamilyIdx; modQueues[createInfo.queueCreateInfoCount].queueCount = 1; + modQueues[createInfo.queueCreateInfoCount].pQueuePriorities = &one; createInfo.pQueueCreateInfos = modQueues; createInfo.queueCreateInfoCount++; @@ -606,6 +610,9 @@ VkResult WrappedVulkan::vkCreateDevice( uint32_t qFamilyIdx = 0; VkQueueFlags search = (VK_QUEUE_GRAPHICS_BIT); + // for queue priorities, if we need it + float one = 1.0f; + // if we need to change the requested queues, it will point to this VkDeviceQueueCreateInfo *modQueues = NULL; @@ -652,6 +659,7 @@ VkResult WrappedVulkan::vkCreateDevice( modQueues[createInfo.queueCreateInfoCount].queueFamilyIndex = qFamilyIdx; modQueues[createInfo.queueCreateInfoCount].queueCount = 1; + modQueues[createInfo.queueCreateInfoCount].pQueuePriorities = &one; createInfo.pQueueCreateInfos = modQueues; createInfo.queueCreateInfoCount++;