Home | History | Annotate | Download | only in dri2

Lines Matching refs:conf

101 dri2_match_config(const _EGLConfig *conf, const _EGLConfig *criteria)
103 if (_eglCompareConfigs(conf, criteria, NULL, EGL_FALSE) != 0)
106 if (!_eglMatchConfig(conf, criteria))
117 struct dri2_egl_config *conf;
229 conf = (struct dri2_egl_config *) matching_config;
231 if (double_buffer && !conf->dri_double_config)
232 conf->dri_double_config = dri_config;
233 else if (!double_buffer && !conf->dri_single_config)
234 conf->dri_single_config = dri_config;
240 conf = malloc(sizeof *conf);
241 if (conf == NULL)
244 memcpy(&conf->base, &base, sizeof base);
246 conf->dri_double_config = dri_config;
247 conf->dri_single_config = NULL;
249 conf->dri_single_config = dri_config;
250 conf->dri_double_config = NULL;
252 conf->base.SurfaceType = 0;
253 conf->base.ConfigID = config_id;
255 _eglLinkConfig(&conf->base);
266 conf->base.MinSwapInterval = 0;
267 conf->base.MaxSwapInterval = 1000; /* XXX arbitrary value */
271 conf->base.SurfaceType |= surface_type;
273 return conf;
710 dri2_create_context(_EGLDriver *drv, _EGLDisplay *disp, _EGLConfig *conf,
718 struct dri2_egl_config *dri2_config = dri2_egl_config(conf);
730 if (!_eglInitContext(&dri2_ctx->base, disp, conf, attrib_list))
762 if (conf != NULL) {
778 if (conf->SurfaceType & EGL_WINDOW_BIT)