Lines Matching refs:conf

59 _eglInitConfig(_EGLConfig *conf, _EGLDisplay *dpy, EGLint id)  in _eglInitConfig()  argument
61 memset(conf, 0, sizeof(*conf)); in _eglInitConfig()
63 conf->Display = dpy; in _eglInitConfig()
66 conf->ConfigID = id; in _eglInitConfig()
67 conf->ConfigCaveat = EGL_NONE; in _eglInitConfig()
68 conf->TransparentType = EGL_NONE; in _eglInitConfig()
69 conf->NativeVisualType = EGL_NONE; in _eglInitConfig()
70 conf->ColorBufferType = EGL_RGB_BUFFER; in _eglInitConfig()
71 conf->ComponentType = EGL_COLOR_COMPONENT_TYPE_FIXED_EXT; in _eglInitConfig()
82 _eglLinkConfig(_EGLConfig *conf) in _eglLinkConfig() argument
84 _EGLDisplay *dpy = conf->Display; in _eglLinkConfig()
88 assert(conf->ConfigID > 0); in _eglLinkConfig()
96 _eglAppendArray(dpy->Configs, (void *) conf); in _eglLinkConfig()
98 return (EGLConfig) conf; in _eglLinkConfig()
109 _EGLConfig *conf; in _eglLookupConfig() local
114 conf = (_EGLConfig *) _eglFindArray(dpy->Configs, (void *) config); in _eglLookupConfig()
115 if (conf) in _eglLookupConfig()
116 assert(conf->Display == dpy); in _eglLookupConfig()
118 return conf; in _eglLookupConfig()
273 _eglValidateConfig(const _EGLConfig *conf, EGLBoolean for_matching) in _eglValidateConfig() argument
283 val = _eglGetConfigKey(conf, attr); in _eglValidateConfig()
390 switch (conf->ColorBufferType) { in _eglValidateConfig()
392 if (conf->LuminanceSize) in _eglValidateConfig()
394 if (conf->RedSize + conf->GreenSize + in _eglValidateConfig()
395 conf->BlueSize + conf->AlphaSize != conf->BufferSize) in _eglValidateConfig()
399 if (conf->RedSize || conf->GreenSize || conf->BlueSize) in _eglValidateConfig()
401 if (conf->LuminanceSize + conf->AlphaSize != conf->BufferSize) in _eglValidateConfig()
410 if (!conf->SampleBuffers && conf->Samples) in _eglValidateConfig()
417 if (!(conf->SurfaceType & EGL_WINDOW_BIT)) { in _eglValidateConfig()
418 if (conf->NativeVisualID != 0 || conf->NativeVisualType != EGL_NONE) in _eglValidateConfig()
421 if (!(conf->SurfaceType & EGL_PBUFFER_BIT)) { in _eglValidateConfig()
422 if (conf->BindToTextureRGB || conf->BindToTextureRGBA) in _eglValidateConfig()
443 _eglMatchConfig(const _EGLConfig *conf, const _EGLConfig *criteria) in _eglMatchConfig() argument
458 val = _eglGetConfigKey(conf, attr); in _eglMatchConfig()
497 _eglIsConfigAttribValid(_EGLConfig *conf, EGLint attr) in _eglIsConfigAttribValid() argument
504 return conf->Display->Extensions.NOK_texture_from_pixmap; in _eglIsConfigAttribValid()
506 return conf->Display->Extensions.ANDROID_framebuffer_target; in _eglIsConfigAttribValid()
508 return conf->Display->Extensions.ANDROID_recordable; in _eglIsConfigAttribValid()
521 _eglParseConfigAttribList(_EGLConfig *conf, _EGLDisplay *dpy, in _eglParseConfigAttribList() argument
526 _eglInitConfig(conf, dpy, EGL_DONT_CARE); in _eglParseConfigAttribList()
532 _eglSetConfigKey(conf, attr, val); in _eglParseConfigAttribList()
540 if (!_eglIsConfigAttribValid(conf, attr)) in _eglParseConfigAttribList()
543 _eglSetConfigKey(conf, attr, val); in _eglParseConfigAttribList()
546 if (!_eglValidateConfig(conf, EGL_TRUE)) in _eglParseConfigAttribList()
550 if (conf->Level == EGL_DONT_CARE || in _eglParseConfigAttribList()
551 conf->MatchNativePixmap == EGL_DONT_CARE) in _eglParseConfigAttribList()
555 if (conf->ConfigID != EGL_DONT_CARE) { in _eglParseConfigAttribList()
559 _eglSetConfigKey(conf, attr, EGL_DONT_CARE); in _eglParseConfigAttribList()
563 if (!(conf->SurfaceType & EGL_WINDOW_BIT)) in _eglParseConfigAttribList()
564 conf->NativeVisualType = EGL_DONT_CARE; in _eglParseConfigAttribList()
566 if (conf->TransparentType == EGL_NONE) { in _eglParseConfigAttribList()
567 conf->TransparentRedValue = EGL_DONT_CARE; in _eglParseConfigAttribList()
568 conf->TransparentGreenValue = EGL_DONT_CARE; in _eglParseConfigAttribList()
569 conf->TransparentBlueValue = EGL_DONT_CARE; in _eglParseConfigAttribList()
774 _eglFallbackMatch(const _EGLConfig *conf, void *priv_data) in _eglFallbackMatch() argument
776 return _eglMatchConfig(conf, (const _EGLConfig *) priv_data); in _eglFallbackMatch()
812 _eglGetConfigAttrib(_EGLDriver *drv, _EGLDisplay *dpy, _EGLConfig *conf, in _eglGetConfigAttrib() argument
815 if (!_eglIsConfigAttribValid(conf, attribute)) in _eglGetConfigAttrib()
830 *value = _eglGetConfigKey(conf, attribute); in _eglGetConfigAttrib()
838 _EGLConfig *conf = (_EGLConfig *) elem; in _eglFlattenConfig() local
840 *handle = _eglGetConfigHandle(conf); in _eglFlattenConfig()