anv: return count of queue families written
authorDamien Grassart <damien@grassart.com>
Sun, 25 Dec 2016 00:00:58 +0000 (01:00 +0100)
committerChad Versace <chadversary@chromium.org>
Tue, 27 Dec 2016 18:15:47 +0000 (10:15 -0800)
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
src/intel/vulkan/anv_device.c

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