anv: Better handle return codes from anv_physical_device_init
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 2 Nov 2016 00:51:56 +0000 (17:51 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 2 Nov 2016 16:26:41 +0000 (09:26 -0700)
commita5f8ff6ca18c38a7c4b5b37a4d5b14ca01e71b1e
treeec11ed69df58be5d3f4c65de53b3ae1304b24bbb
parentdaeb21e47845795d0320811db1e202540fba356b
anv: Better handle return codes from anv_physical_device_init

The case where we just want the loop to continue is INCOMPATIBLE_DRIVER
because that simply means that whatever FD we opened isn't a supported
Intel chip.  Other error codes such as OUT_OF_HOST_MEMORY are actual errors
and we should be returning early in that case.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_device.c