From: Damien Grassart Date: Sun, 25 Dec 2016 00:00:58 +0000 (+0100) Subject: anv: return count of queue families written X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=75252826e82ffa9c091ebe5bcf303c9d7569c3a3;p=mesa.git 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 Reviewed-by: Chad Versace Cc: mesa-stable@lists.freedesktop.org --- diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 9245e5c878b..037ef827e15 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -656,6 +656,8 @@ void anv_GetPhysicalDeviceQueueFamilyProperties( .timestampValidBits = 36, /* XXX: Real value here */ .minImageTransferGranularity = (VkExtent3D) { 1, 1, 1 }, }; + + *pCount = 1; } void anv_GetPhysicalDeviceMemoryProperties(