On 23 August 2016 at 02:11, Jason Ekstrand <ja...@jlekstrand.net> wrote: > 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 > --- > src/intel/vulkan/anv_device.c | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) > > diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c > index f31f366..940a14e 100644 > --- a/src/intel/vulkan/anv_device.c > +++ b/src/intel/vulkan/anv_device.c > @@ -62,8 +62,7 @@ anv_physical_device_init(struct anv_physical_device *device, > > fd = open(path, O_RDWR | O_CLOEXEC); > if (fd < 0) > - return vk_errorf(VK_ERROR_INITIALIZATION_FAILED, > - "failed to open %s: %m", path); > + return vk_error(VK_ERROR_INCOMPATIBLE_DRIVER); > Mildly related: You mentioned before that you prefer no not link against libdrm. What is the reasoning behind that - opencoding some of it's functionality in here is not likely to pan out well.
Thanks Emil _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev