anv/device: Return VK_SUCCESS after setting pCount in QueueFamilyProperties
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 10 Oct 2015 16:31:03 +0000 (09:31 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 10 Oct 2015 22:25:08 +0000 (15:25 -0700)
src/vulkan/anv_device.c

index c56704ea9f12f787fb8dce0ca924d0c644125bec..89cd184a98e965cacc78625ff3fcfd312d177b79 100644 (file)
@@ -464,6 +464,7 @@ VkResult anv_GetPhysicalDeviceQueueFamilyProperties(
 {
    if (pQueueFamilyProperties == NULL) {
       *pCount = 1;
+      return VK_SUCCESS;
    }
 
    assert(*pCount >= 1);