The Vulkan spec indicates that
vkGetPhysicalDeviceQueueFamilyProperties() should overwrite
pQueueFamilyPropertyCount with the number of structures actually
written to pQueueFamilyProperties.
Signed-off-by: Damien Grassart <damien@grassart.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
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) {
idx++;
}
}
+ *pCount = idx;
}
void radv_GetPhysicalDeviceMemoryProperties(