Home | History | Annotate | Download | only in main

Lines Matching refs:conf

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