anv: Don't teardown uninitialized anv_physical_device
authorChad Versace <chad.versace@intel.com>
Wed, 21 Oct 2015 18:36:39 +0000 (11:36 -0700)
committerChad Versace <chad.versace@intel.com>
Wed, 21 Oct 2015 18:55:37 +0000 (11:55 -0700)
commit0ab926dfbf56ad6482b875d980ae95c533b765f9
tree7dc067257e2982ec2644af7d5aa8b1cefc5bfe45
parentc8572d0f9c36c2485893e5f734ba094b8e9cdf74
anv: Don't teardown uninitialized anv_physical_device

If the user called vkDestroyDevice but never called
vkEnumeratePhysicalDevices, then the driver tried to ralloc_free() an
unitialized anv_physical_device.

Fixes test 'dEQP-VK.api.device_init.create_instance_name_version'.
src/vulkan/anv_device.c