From 77f56d8a891a0794d724aebcf664ef3c543e27d1 Mon Sep 17 00:00:00 2001 From: Aaron Loucks Date: Sat, 1 Jun 2019 02:57:22 +0000 Subject: [PATCH] Add transfer bit to all queue families Per the gfx_hal::queue::QueueType docs, all variants should include transfer operations. Notably, `General` now contains all three queue types. --- libportability-gfx/src/impls.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libportability-gfx/src/impls.rs b/libportability-gfx/src/impls.rs index 788ae35..40cf8b7 100644 --- a/libportability-gfx/src/impls.rs +++ b/libportability-gfx/src/impls.rs @@ -183,9 +183,12 @@ pub extern "C" fn gfxGetPhysicalDeviceQueueFamilyProperties( hal::QueueType::General => { VkQueueFlagBits::VK_QUEUE_GRAPHICS_BIT as u32 | VkQueueFlagBits::VK_QUEUE_COMPUTE_BIT as u32 + | VkQueueFlagBits::VK_QUEUE_TRANSFER_BIT as u32 } - hal::QueueType::Graphics => VkQueueFlagBits::VK_QUEUE_GRAPHICS_BIT as u32, - hal::QueueType::Compute => VkQueueFlagBits::VK_QUEUE_COMPUTE_BIT as u32, + hal::QueueType::Graphics => VkQueueFlagBits::VK_QUEUE_GRAPHICS_BIT as u32 + | VkQueueFlagBits::VK_QUEUE_TRANSFER_BIT as u32, + hal::QueueType::Compute => VkQueueFlagBits::VK_QUEUE_COMPUTE_BIT as u32 + | VkQueueFlagBits::VK_QUEUE_TRANSFER_BIT as u32, hal::QueueType::Transfer => VkQueueFlagBits::VK_QUEUE_TRANSFER_BIT as u32, }, queueCount: family.max_queues() as _,