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
This commit is contained in:
Damien Grassart 2016-12-25 01:00:58 +01:00 committed by Chad Versace
parent e2d69d5e2d
commit 75252826e8

View file

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