egl: let each platform decided how to handle LIBGL_ALWAYS_SOFTWARE
authorEric Engestrom <eric.engestrom@imgtec.com>
Wed, 20 Dec 2017 15:53:08 +0000 (15:53 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 27 Dec 2017 22:31:38 +0000 (22:31 +0000)
commit2f421651aca9c0a308c8a632d1847bbd0598e294
tree1ffba5467e987c05e8474a1783aa455e757b750e
parente491bffc5c8da9fa0f7c08f78a7701ed5705d163
egl: let each platform decided how to handle LIBGL_ALWAYS_SOFTWARE

My refactor in 47273d7312cb5b5b6b0b9 missed this early return; because
of it, setting UseFallback one layer above actually prevented the
software path from being used.

Remove this early return and let each platform's dri2_initialize_*()
decide what it can do with the LIBGL_ALWAYS_SOFTWARE restriction.

platform_{surfaceless,x11,wayland} were already handling it themselves.

Fixes: 47273d7312cb5b5b6b0b9 "egl: set UseFallback if LIBGL_ALWAYS_SOFTWARE is set"
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reported-by: Brendan King <Brendan.King@imgtec.com>
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/platform_android.c
src/egl/drivers/dri2/platform_drm.c