anv: Return correct result in EnumeratePhysicalDevices
authorNicolas Koch <nioko1337@gmail.com>
Thu, 6 Oct 2016 19:21:32 +0000 (21:21 +0200)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 12 Oct 2016 05:58:27 +0000 (22:58 -0700)
commitfd27d5fd92b0ea42854edc59768e2e04709e179a
tree9392cc932af33bcf8eb7c1fd46692bba3c7fda8d
parent2871d4d687710fb006dce11afa20a21f3f331180
anv: Return correct result in EnumeratePhysicalDevices

If pPhysicalDevices is too small for all physical devices,
the driver must return VK_INCOMPLETE.
Since only a single physical device is supported, this is only the case
when pPhysicalDeviceCount == 0 && pPhysicalDevices != NULL.

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