anv: Handle vkGetPhysicalDeviceQueueFamilyProperties with count == 0
authorChad Versace <chadversary@chromium.org>
Tue, 27 Dec 2016 18:25:58 +0000 (10:25 -0800)
committerChad Versace <chadversary@chromium.org>
Tue, 27 Dec 2016 20:31:34 +0000 (12:31 -0800)
commitd6545f234593fb00d02fdc07f9b2a803d2b569f6
tree42029a58b8d04132289aa0799f37d098704f0096
parentb85c0b569fe133b71a767a068e8608868158134e
anv: Handle vkGetPhysicalDeviceQueueFamilyProperties with count == 0

The spec implicitly allows the incoming count to be 0. From the Vulkan
1.0.38 spec, Section 4.1 Physical Devices:

    If the value referenced by pQueueFamilyPropertyCount is not 0 [then
    do stuff].

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_device.c