egl/sl: split out swrast probe into separate function
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 19 Feb 2019 14:08:06 +0000 (14:08 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 28 Feb 2019 12:02:19 +0000 (12:02 +0000)
commit893421f3159ac6d82bb56b3feccf79dd71eb250e
tree70abc81dd8d847b050da65ebf3a90ffad28fad1a
parentb43b55d4619489e603780adf3c92a36dadcc362b
egl/sl: split out swrast probe into separate function

Make the code a bit easier to read.

As a bonus point this makes it obvious that we forgot to call
_eglAddDevice() for the device - do so.

v2:
 - s/dpy/disp/ (Eric)
 - free(driver_name) on dri2_load_driver_swrast() failure (Eric)

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Mathias Fröhlich <Mathias.Froehlich@web.de> (v1)
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
src/egl/drivers/dri2/platform_surfaceless.c