From 75252826e82ffa9c091ebe5bcf303c9d7569c3a3 Mon Sep 17 00:00:00 2001 From: Damien Grassart Date: Sun, 25 Dec 2016 01:00:58 +0100 Subject: 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 --- src/intel/vulkan/anv_device.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/intel/vulkan') 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( -- cgit v1.2.3