Lines Matching refs:conf

57 _eglInitConfig(_EGLConfig *conf, _EGLDisplay *dpy, EGLint id)  in _eglInitConfig()  argument
59 memset(conf, 0, sizeof(*conf)); in _eglInitConfig()
61 conf->Display = dpy; in _eglInitConfig()
64 conf->ConfigID = id; in _eglInitConfig()
65 conf->ConfigCaveat = EGL_NONE; in _eglInitConfig()
66 conf->TransparentType = EGL_NONE; in _eglInitConfig()
67 conf->NativeVisualType = EGL_NONE; in _eglInitConfig()
68 conf->ColorBufferType = EGL_RGB_BUFFER; in _eglInitConfig()
79 _eglLinkConfig(_EGLConfig *conf) in _eglLinkConfig() argument
81 _EGLDisplay *dpy = conf->Display; in _eglLinkConfig()
84 assert(dpy && conf->ConfigID > 0); in _eglLinkConfig()
92 _eglAppendArray(dpy->Configs, (void *) conf); in _eglLinkConfig()
94 return (EGLConfig) conf; in _eglLinkConfig()
105 _EGLConfig *conf; in _eglLookupConfig() local
110 conf = (_EGLConfig *) _eglFindArray(dpy->Configs, (void *) config); in _eglLookupConfig()
111 if (conf) in _eglLookupConfig()
112 assert(conf->Display == dpy); in _eglLookupConfig()
114 return conf; in _eglLookupConfig()
259 _eglValidateConfig(const _EGLConfig *conf, EGLBoolean for_matching) in _eglValidateConfig() argument
269 val = _eglGetConfigKey(conf, attr); in _eglValidateConfig()
325 if (conf->Display->Extensions.MESA_screen_surface) in _eglValidateConfig()
377 switch (conf->ColorBufferType) { in _eglValidateConfig()
379 if (conf->LuminanceSize) in _eglValidateConfig()
381 if (conf->RedSize + conf->GreenSize + in _eglValidateConfig()
382 conf->BlueSize + conf->AlphaSize != conf->BufferSize) in _eglValidateConfig()
386 if (conf->RedSize || conf->GreenSize || conf->BlueSize) in _eglValidateConfig()
388 if (conf->LuminanceSize + conf->AlphaSize != conf->BufferSize) in _eglValidateConfig()
397 if (!conf->SampleBuffers && conf->Samples) in _eglValidateConfig()
404 if (!(conf->SurfaceType & EGL_WINDOW_BIT)) { in _eglValidateConfig()
405 if (conf->NativeVisualID != 0 || conf->NativeVisualType != EGL_NONE) in _eglValidateConfig()
408 if (!(conf->SurfaceType & EGL_PBUFFER_BIT)) { in _eglValidateConfig()
409 if (conf->BindToTextureRGB || conf->BindToTextureRGBA) in _eglValidateConfig()
430 _eglMatchConfig(const _EGLConfig *conf, const _EGLConfig *criteria) in _eglMatchConfig() argument
445 val = _eglGetConfigKey(conf, attr); in _eglMatchConfig()
484 _eglIsConfigAttribValid(_EGLConfig *conf, EGLint attr) in _eglIsConfigAttribValid() argument
491 return conf->Display->Extensions.NOK_texture_from_pixmap; in _eglIsConfigAttribValid()
504 _eglParseConfigAttribList(_EGLConfig *conf, _EGLDisplay *dpy, in _eglParseConfigAttribList() argument
509 _eglInitConfig(conf, dpy, EGL_DONT_CARE); in _eglParseConfigAttribList()
515 _eglSetConfigKey(conf, attr, val); in _eglParseConfigAttribList()
523 if (!_eglIsConfigAttribValid(conf, attr)) in _eglParseConfigAttribList()
526 _eglSetConfigKey(conf, attr, val); in _eglParseConfigAttribList()
529 if (!_eglValidateConfig(conf, EGL_TRUE)) in _eglParseConfigAttribList()
533 if (conf->Level == EGL_DONT_CARE || in _eglParseConfigAttribList()
534 conf->MatchNativePixmap == EGL_DONT_CARE) in _eglParseConfigAttribList()
538 if (conf->ConfigID != EGL_DONT_CARE) { in _eglParseConfigAttribList()
542 _eglSetConfigKey(conf, attr, EGL_DONT_CARE); in _eglParseConfigAttribList()
546 if (!(conf->SurfaceType & EGL_WINDOW_BIT)) in _eglParseConfigAttribList()
547 conf->NativeVisualType = EGL_DONT_CARE; in _eglParseConfigAttribList()
549 if (conf->TransparentType == EGL_NONE) { in _eglParseConfigAttribList()
550 conf->TransparentRedValue = EGL_DONT_CARE; in _eglParseConfigAttribList()
551 conf->TransparentGreenValue = EGL_DONT_CARE; in _eglParseConfigAttribList()
552 conf->TransparentBlueValue = EGL_DONT_CARE; in _eglParseConfigAttribList()
757 _eglFallbackMatch(const _EGLConfig *conf, void *priv_data) in _eglFallbackMatch() argument
759 return _eglMatchConfig(conf, (const _EGLConfig *) priv_data); in _eglFallbackMatch()
795 _eglGetConfigAttrib(_EGLDriver *drv, _EGLDisplay *dpy, _EGLConfig *conf, in _eglGetConfigAttrib() argument
798 if (!_eglIsConfigAttribValid(conf, attribute)) in _eglGetConfigAttrib()
813 *value = _eglGetConfigKey(conf, attribute); in _eglGetConfigAttrib()
821 _EGLConfig *conf = (_EGLConfig *) elem; in _eglFlattenConfig() local
823 *handle = _eglGetConfigHandle(conf); in _eglFlattenConfig()