Mesa (master): anv: return count of queue families written

Chad Versace chadversary at kemper.freedesktop.org
Tue Dec 27 18:19:10 UTC 2016


Module: Mesa
Branch: master
Commit: 75252826e82ffa9c091ebe5bcf303c9d7569c3a3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=75252826e82ffa9c091ebe5bcf303c9d7569c3a3

Author: Damien Grassart <damien at 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 <damien at grassart.com>
Reviewed-by: Chad Versace <chadversary at chromium.org>
Cc: mesa-stable at 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(




More information about the mesa-commit mailing list