Lines Matching refs:conf
59 _eglInitConfig(_EGLConfig *conf, _EGLDisplay *disp, EGLint id)
61 memset(conf, 0, sizeof(*conf));
63 conf->Display = disp;
66 conf->ConfigID = id;
67 conf->ConfigCaveat = EGL_NONE;
68 conf->TransparentType = EGL_NONE;
69 conf->NativeVisualType = EGL_NONE;
70 conf->ColorBufferType = EGL_RGB_BUFFER;
71 conf->ComponentType = EGL_COLOR_COMPONENT_TYPE_FIXED_EXT;
82 _eglLinkConfig(_EGLConfig *conf)
84 _EGLDisplay *disp = conf->Display;
88 assert(conf->ConfigID > 0);
96 _eglAppendArray(disp->Configs, (void *) conf);
98 return (EGLConfig) conf;
109 _EGLConfig *conf;
114 conf = (_EGLConfig *) _eglFindArray(disp->Configs, (void *) config);
115 if (conf)
116 assert(conf->Display == disp);
118 return conf;
273 _eglValidateConfig(const _EGLConfig *conf, EGLBoolean for_matching)
275 _EGLDisplay *disp = conf->Display;
284 val = _eglGetConfigKey(conf, attr);
393 switch (conf->ColorBufferType) {
395 if (conf->LuminanceSize)
397 if (conf->RedSize + conf->GreenSize +
398 conf->BlueSize + conf->AlphaSize != conf->BufferSize)
402 if (conf->RedSize || conf->GreenSize || conf->BlueSize)
404 if (conf->LuminanceSize + conf->AlphaSize != conf->BufferSize)
413 if (!conf->SampleBuffers && conf->Samples)
420 if (!(conf->SurfaceType & EGL_WINDOW_BIT)) {
421 if (conf->NativeVisualID != 0 || conf->NativeVisualType != EGL_NONE)
424 if (!(conf->SurfaceType & EGL_PBUFFER_BIT)) {
425 if (conf->BindToTextureRGB || conf->BindToTextureRGBA)
446 _eglMatchConfig(const _EGLConfig *conf, const _EGLConfig *criteria)
461 val = _eglGetConfigKey(conf, attr);
500 _eglIsConfigAttribValid(_EGLConfig *conf, EGLint attr)
507 return conf->Display->Extensions.NOK_texture_from_pixmap;
509 return conf->Display->Extensions.ANDROID_framebuffer_target;
511 return conf->Display->Extensions.ANDROID_recordable;
524 _eglParseConfigAttribList(_EGLConfig *conf, _EGLDisplay *disp,
529 _eglInitConfig(conf, disp, EGL_DONT_CARE);
535 _eglSetConfigKey(conf, attr, val);
543 if (!_eglIsConfigAttribValid(conf, attr))
546 _eglSetConfigKey(conf, attr, val);
549 if (!_eglValidateConfig(conf, EGL_TRUE))
553 if (conf->Level == EGL_DONT_CARE ||
554 conf->MatchNativePixmap == EGL_DONT_CARE)
558 if (conf->ConfigID != EGL_DONT_CARE) {
562 _eglSetConfigKey(conf, attr, EGL_DONT_CARE);
566 if (!(conf->SurfaceType & EGL_WINDOW_BIT))
567 conf->NativeVisualType = EGL_DONT_CARE;
569 if (conf->TransparentType == EGL_NONE) {
570 conf->TransparentRedValue = EGL_DONT_CARE;
571 conf->TransparentGreenValue = EGL_DONT_CARE;
572 conf->TransparentBlueValue = EGL_DONT_CARE;
774 _eglFallbackMatch(const _EGLConfig *conf, void *priv_data)
776 return _eglMatchConfig(conf, (const _EGLConfig *) priv_data);
818 _eglGetConfigAttrib(_EGLDisplay *disp, _EGLConfig *conf,
821 if (!_eglIsConfigAttribValid(conf, attribute))
836 *value = _eglGetConfigKey(conf, attribute);
844 _EGLConfig *conf = (_EGLConfig *) elem;
846 *handle = _eglGetConfigHandle(conf);