egl: move alloc & init out of _eglBuiltInDriver{DRI2,Haiku}
authorEric Engestrom <eric@engestrom.ch>
Mon, 25 Sep 2017 21:35:24 +0000 (22:35 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Wed, 31 Oct 2018 11:01:54 +0000 (11:01 +0000)
commitcb0980e69aa921af7086e5d00a547735bc3229e2
treec9ee9e11bddd37dd98c90699609c29c3f5f53383
parent21d9b78289fadc09c0dc5cf82eef9e798a99b196
egl: move alloc & init out of _eglBuiltInDriver{DRI2,Haiku}

This is a revert of Marek's 84f3afc2e122cb418573 revert, with a missing
line added back. I failed a rebase and dropped that crucial line, and
didn't do a runtime test after my rebase, and as a result broke EGL for
everyone.
This commit has been tested by Intel's CI and I re-read it once more, so
it should be good this time.
--

Note: dropping the EGL_BAD_ALLOC in egl_haiku because it's
overwritten by the EGL_NOT_INITIALIZED in eglInitialize().

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/haiku/egl_haiku.cpp
src/egl/main/README.txt
src/egl/main/egldriver.c
src/egl/main/egldriver.h