Re: [Mesa-dev] [PATCH 3/3] anv: bail out if anv_wsi_init() fails

2016-05-29 Thread Jason Ekstrand
On May 29, 2016 9:41 AM, "Emil Velikov" wrote: > > From: Emil Velikov > > Otherwise we'll end up setting up a device with no winsys integration. Seems reasonable. Running headless isn't a problem but winsys failing to initialize basically only happens on out-of-memory so we should fail in that c

[Mesa-dev] [PATCH 3/3] anv: bail out if anv_wsi_init() fails

2016-05-29 Thread Emil Velikov
From: Emil Velikov Otherwise we'll end up setting up a device with no winsys integration. Signed-off-by: Emil Velikov --- Hard-coding the rendernode name in anv_physical_device_init() is a bad idea really. We could/should be using drmGetDevices() to get info on all the devices (master/render/et