diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2014-01-28 17:03:03 -0800 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2014-03-17 15:36:04 -0700 |
commit | bf20076bafcf0809529ae470fb12af5eae12b33d (patch) | |
tree | c7730732a315d942c79dd482053aedaabc3afca3 /src/egl/drivers/dri2/egl_dri2_fallbacks.h | |
parent | bc8b07a65722ad25aa52aa4918b51e236a13b09e (diff) | |
download | external_mesa3d-bf20076bafcf0809529ae470fb12af5eae12b33d.zip external_mesa3d-bf20076bafcf0809529ae470fb12af5eae12b33d.tar.gz external_mesa3d-bf20076bafcf0809529ae470fb12af5eae12b33d.tar.bz2 |
egl/dri2: Dispatch eglCreatePbufferSurface by display, not driver
Add dri2_egl_display_vtbl::create_pbuffer_surface, set it for each
platform, and let egl_dri2 dispatch eglCreatePbufferSurface to that.
This prepares for the EGL platform extensions.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'src/egl/drivers/dri2/egl_dri2_fallbacks.h')
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2_fallbacks.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2_fallbacks.h b/src/egl/drivers/dri2/egl_dri2_fallbacks.h index 80dd4ac..a416157 100644 --- a/src/egl/drivers/dri2/egl_dri2_fallbacks.h +++ b/src/egl/drivers/dri2/egl_dri2_fallbacks.h @@ -35,6 +35,14 @@ dri2_fallback_create_pixmap_surface(_EGLDriver *drv, _EGLDisplay *disp, return NULL; } +static inline _EGLSurface * +dri2_fallback_create_pbuffer_surface(_EGLDriver *drv, _EGLDisplay *disp, + _EGLConfig *conf, + const EGLint *attrib_list) +{ + return NULL; +} + static inline EGLBoolean dri2_fallback_swap_interval(_EGLDriver *drv, _EGLDisplay *dpy, _EGLSurface *surf, EGLint interval) |