diff options
author | Emil Velikov <[email protected]> | 2017-05-11 16:20:04 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-05-29 16:50:06 +0100 |
commit | 2c341f2bda49b1b53ffddc62eb2483cdf2803cc1 (patch) | |
tree | 23670ac2d1153bc56650ea3e3fb28e15f190e289 /src/egl/drivers/dri2/egl_dri2.h | |
parent | ee3b32696f347b457ac64dbbcaac9c582529be94 (diff) |
egl: refactor dri2_create_screen() into three separate functions
Split the create_screen into:
- create screen
- setup/bind extensions
- setup screen
This will allow us to reuse the latter two on egl/drm. Said platform
does create its own screen and attempts to reinvent the later two
functions itself.
Since the GBM ones tend to get out of sync quite often, and there is no
distinct reason why it does so we'll drop them with latter commits.
v2: disp -> dpy for the Android platform.
v3: use correct goto label (Rob)
Signed-off-by: Emil Velikov <[email protected]>
Tested-by: Rob Herring <[email protected]>
Diffstat (limited to 'src/egl/drivers/dri2/egl_dri2.h')
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h index c9c064b23fe..a71b4489cde 100644 --- a/src/egl/drivers/dri2/egl_dri2.h +++ b/src/egl/drivers/dri2/egl_dri2.h @@ -365,6 +365,9 @@ dri2_load_driver_dri3(_EGLDisplay *disp); EGLBoolean dri2_create_screen(_EGLDisplay *disp); +EGLBoolean +dri2_setup_extensions(_EGLDisplay *disp); + __DRIdrawable * dri2_surface_get_dri_drawable(_EGLSurface *surf); |