diff options
author | Chad Versace <[email protected]> | 2014-01-28 16:45:07 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2014-03-17 15:36:04 -0700 |
commit | bc8b07a65722ad25aa52aa4918b51e236a13b09e (patch) | |
tree | c40f640d070470a0fb021912a8d325255021b869 /src/egl/drivers/dri2/egl_dri2.h | |
parent | 0a0c881a13afc99c7a88bf16117850350ccb85df (diff) |
egl/dri2: Dispatch eglCreatePixmapSurface by display, not driver
Add dri2_egl_display_vtbl::create_pbuffer_surface, set it for each
platform, and let egl_dri2 dispatch eglCreatePixmapSurface to that.
This prepares for the EGL platform extensions.
Reviewed-by: Ian Romanick <[email protected]>
Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/egl/drivers/dri2/egl_dri2.h')
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h index 22c8cf58e75..7ab0ef44922 100644 --- a/src/egl/drivers/dri2/egl_dri2.h +++ b/src/egl/drivers/dri2/egl_dri2.h @@ -92,6 +92,11 @@ struct dri2_egl_display_vtbl { EGLNativeWindowType window, const EGLint *attrib_list); + _EGLSurface* (*create_pixmap_surface)(_EGLDriver *drv, _EGLDisplay *dpy, + _EGLConfig *config, + EGLNativePixmapType pixmap, + const EGLint *attrib_list); + EGLBoolean (*swap_interval)(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surf, EGLint interval); |