anv: Throw INCOMPATIBLE_DRIVER for non-fatal initialization errors
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 23 Aug 2016 01:10:14 +0000 (18:10 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 23 Aug 2016 01:49:49 +0000 (18:49 -0700)
commit34ff4fbba658dbdfb2b0c852b07a0ee2db549d2e
treec44abdce4aa4b6479c99c2617039a39735561559
parent26187f3890cd92d6871ffb431763b27cacd8d4fe
anv: Throw INCOMPATIBLE_DRIVER for non-fatal initialization errors

The only reason we should throw INITIALIZATION_FAILED is if we have found
useable intel hardware but have failed to bring it up for some reason.
Otherwise, we should just throw INCOMPATIBLE_DRIVER which will turn into
successfully advertising 0 physical devices

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tested-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/intel/vulkan/anv_device.c