From: Brian Paul Date: Fri, 20 Jun 2008 16:20:25 +0000 (-0600) Subject: egl: implment EGL_LARGEST_PBUFFER query X-Git-Tag: 062012170305~17580^2~390^2~1160 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fbd6e86b8f3c9bdeae7581d8d852b4df66e4b42c;p=profile%2Fivi%2Fmesa.git egl: implment EGL_LARGEST_PBUFFER query --- diff --git a/src/egl/main/egldriver.h b/src/egl/main/egldriver.h index 7827ca3..4066c6e 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 796d62f..3777049 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;