From: Brian Paul Date: Fri, 20 Jun 2008 16:20:25 +0000 (-0600) Subject: egl: implment EGL_LARGEST_PBUFFER query X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fbd6e86b8f3c9bdeae7581d8d852b4df66e4b42c;p=mesa.git egl: implment EGL_LARGEST_PBUFFER query --- diff --git a/src/egl/main/egldriver.h b/src/egl/main/egldriver.h index 7827ca3ae3d..4066c6ec1df 100644 --- a/src/egl/main/egldriver.h +++ b/src/egl/main/egldriver.h @@ -39,6 +39,8 @@ struct _egl_driver _EGLAPI API; /**< EGL API dispatch table */ _EGLExtensions Extensions; + + int LargestPbuffer; }; diff --git a/src/egl/main/eglsurface.c b/src/egl/main/eglsurface.c index 796d62f2b94..3777049ca6d 100644 --- a/src/egl/main/eglsurface.c +++ b/src/egl/main/eglsurface.c @@ -8,6 +8,7 @@ #include #include "eglcontext.h" #include "eglconfig.h" +#include "egldriver.h" #include "eglglobals.h" #include "eglhash.h" #include "egllog.h" @@ -319,7 +320,9 @@ _eglQuerySurface(_EGLDriver *drv, EGLDisplay dpy, EGLSurface surf, case EGL_CONFIG_ID: *value = GET_CONFIG_ATTRIB(surface->Config, EGL_CONFIG_ID); return EGL_TRUE; - /*XXX case EGL_LARGEST_PBUFFER:*/ + case EGL_LARGEST_PBUFFER: + *value = drv->LargestPbuffer; + return EGL_TRUE; case EGL_SURFACE_TYPE: *value = surface->Type; return EGL_TRUE;