vk/device: Fix vkEnumeratePhysicalDevices()
authorChad Versace <chad.versace@intel.com>
Thu, 9 Jul 2015 22:51:06 +0000 (15:51 -0700)
committerChad Versace <chad.versace@intel.com>
Thu, 9 Jul 2015 22:53:21 +0000 (15:53 -0700)
commit5b75dffd040210aa6968e4543b15162869d0127d
tree21941243e083e40aa5e37462bd2f87561a77328f
parentfa915b661d4159014c0ed3c593505ddf57f27ee5
vk/device: Fix vkEnumeratePhysicalDevices()

The Vulkan spec says that pPhysicalDeviceCount is an out parameter if
pPhysicalDevices is NULL; otherwise it's an inout parameter.

Mesa incorrectly treated it unconditionally as an inout parameter, which
could have lead to reading unitialized data.
src/vulkan/device.c