anv: Re-arrange physical_device_init
authorJason Ekstrand <jason@jlekstrand.net>
Sat, 18 Jan 2020 05:48:12 +0000 (23:48 -0600)
committerMarge Bot <eric+marge@anholt.net>
Mon, 20 Jan 2020 22:08:52 +0000 (22:08 +0000)
commite963e151d83072e97ddb1cf7b729bc404f7737e8
treed5d2bf42b1f92a356992c45987c1efbeaf6d1dc5
parent3ecfba388a01d5ceb32fdd8122c5cf14e174aa3c
anv: Re-arrange physical_device_init

This commit simply moves fetching the device info and checking if ANV
supports the device a bit higher up.  This way we fail earlier and it'll
make error checking easier in the next commit.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3461>
src/intel/vulkan/anv_device.c