diff options
author | Damien Grassart <[email protected]> | 2016-12-25 00:41:45 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2016-12-25 02:25:02 +0100 |
commit | 3a30b1a556b1ed7dc60befcec16343e80a3bd77e (patch) | |
tree | 031ddd773528582e11d2e7056623a2130cbc6735 /src | |
parent | 88b5acfa09d4efa2aea1fc9cc4f8169a48c40286 (diff) |
radv: return count of queue families written
The Vulkan spec indicates that
vkGetPhysicalDeviceQueueFamilyProperties() should overwrite
pQueueFamilyPropertyCount with the number of structures actually
written to pQueueFamilyProperties.
Signed-off-by: Damien Grassart <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/radv_device.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c index 47be5f743f5..dcbb01547e7 100644 --- a/src/amd/vulkan/radv_device.c +++ b/src/amd/vulkan/radv_device.c @@ -583,8 +583,10 @@ void radv_GetPhysicalDeviceQueueFamilyProperties( idx++; } - if (!all_queues) + if (!all_queues) { + *pCount = idx; return; + } if (pdevice->rad_info.compute_rings > 0 && pdevice->rad_info.chip_class >= CIK) { if (*pCount > idx) { @@ -597,6 +599,7 @@ void radv_GetPhysicalDeviceQueueFamilyProperties( idx++; } } + *pCount = idx; } void radv_GetPhysicalDeviceMemoryProperties( |