summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDamien Grassart <[email protected]>2016-12-25 01:00:58 +0100
committerChad Versace <[email protected]>2016-12-27 10:15:47 -0800
commit75252826e82ffa9c091ebe5bcf303c9d7569c3a3 (patch)
tree898db88546a8eb0132de727e67262ef2c2abab27 /src
parente2d69d5e2da0208b7e66c342fbe5323161df2e51 (diff)
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 <[email protected]> Reviewed-by: Chad Versace <[email protected]> Cc: [email protected]
Diffstat (limited to 'src')
-rw-r--r--src/intel/vulkan/anv_device.c2
1 files changed, 2 insertions, 0 deletions
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(