anv: 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 <damien@grassart.com>
Reviewed-by: Chad Versace <chadversary@chromium.org>
Cc: mesa-stable@lists.freedesktop.org
(cherry picked from commit 75252826e8)
This commit is contained in:
Damien Grassart 2016-12-25 01:00:58 +01:00 committed by Emil Velikov
parent dcf5c05499
commit 23ecfe8f09

View file

@ -626,6 +626,8 @@ void anv_GetPhysicalDeviceQueueFamilyProperties(
.timestampValidBits = 36, /* XXX: Real value here */
.minImageTransferGranularity = (VkExtent3D) { 1, 1, 1 },
};
*pCount = 1;
}
void anv_GetPhysicalDeviceMemoryProperties(