Re: [Mesa-dev] [PATCH 03/10] egl: add EGL_MESA_device_software support

2018-08-29 Thread Emil Velikov
On 29 August 2018 at 12:47, Eric Engestrom wrote: >> +{ >> + _EGLDevice *dev; >> + >> + mtx_lock(_eglGlobal.Mutex); >> + dev = _eglGlobal.DeviceList; >> + /* The first device is always software */ >> + if (!dev) { >> + _eglGlobal.DeviceList = &software_device; >> + dev = _eglG

Re: [Mesa-dev] [PATCH 03/10] egl: add EGL_MESA_device_software support

2018-08-29 Thread Eric Engestrom
On Friday, 2018-08-03 13:44:19 +0100, Emil Velikov wrote: > From: Emil Velikov > > Add LookupDevices/FindDevice helpers, alongside their first user - > software device ;-) > > This adds support to both dri2 and haiku backends. > > Signed-off-by: Emil Velikov > --- > How can we split this up fo

[Mesa-dev] [PATCH 03/10] egl: add EGL_MESA_device_software support

2018-08-03 Thread Emil Velikov
From: Emil Velikov Add LookupDevices/FindDevice helpers, alongside their first user - software device ;-) This adds support to both dri2 and haiku backends. Signed-off-by: Emil Velikov --- How can we split this up for platforms that support SW and HW devices? FindDevice on a HW device will fai