Module: Mesa Branch: master Commit: 75252826e82ffa9c091ebe5bcf303c9d7569c3a3 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=75252826e82ffa9c091ebe5bcf303c9d7569c3a3
Author: Damien Grassart <dam...@grassart.com> Date: Sun Dec 25 01:00:58 2016 +0100 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 <dam...@grassart.com> Reviewed-by: Chad Versace <chadvers...@chromium.org> Cc: mesa-sta...@lists.freedesktop.org --- src/intel/vulkan/anv_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 9245e5c..037ef82 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( _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit