Lines Matching defs:config
198 * \param config Application supplied \c GLXFBConfig.
210 struct glx_config *config;
214 for (config = priv->screens[i]->configs; config != NULL;
215 config = config->next) {
216 if (config == (struct glx_config *) fbconfig) {
217 return config;
227 * Verifies context's GLX_RENDER_TYPE value with config.
229 * \param config GLX FBConfig which will support the returned renderType.
235 validate_renderType_against_config(const struct glx_config *config,
239 if (!config)
244 return (config->renderType & GLX_RGBA_BIT) != 0;
246 return (config->renderType & GLX_COLOR_INDEX_BIT) != 0;
248 return (config->renderType & GLX_RGBA_FLOAT_BIT_ARB) != 0;
250 return (config->renderType & GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT) != 0;
259 struct glx_screen *psc, struct glx_config *config)
267 gc->config = config;
271 if (!config)
319 CreateContext(Display *dpy, int generic_id, struct glx_config *config,
329 psc = GetGLXScreenConfigs(dpy, config->screen);
346 gc = applegl_create_context(psc, config, shareList, renderType);
349 gc = psc->vtable->create_context(psc, config, shareList, renderType);
351 gc = indirect_create_context(psc, config, shareList, renderType);
367 req->screen = config->screen;
382 req->screen = config->screen;
403 req->screen = config->screen;
445 struct glx_config *config = NULL;
452 config = glx_config_find_visual(psc->visuals, vis->visualid);
454 if (config == NULL) {
459 /* Choose the context render type based on DRI config values. It is
460 * unusual to set this type from config, but we have no other choice, as
463 if (config->renderType & GLX_RGBA_FLOAT_BIT_ARB) {
465 } else if (config->renderType & GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT) {
467 } else if (config->renderType & GLX_RGBA_BIT) {
469 } else if (config->renderType & GLX_COLOR_INDEX_BIT) {
474 return CreateContext(dpy, vis->visualid, config, shareList, allowDirect,
698 const struct glx_config *config;
700 config = glx_config_find_visual(psc->visuals, vis->visualid);
702 if(apple_glx_pixmap_create(dpy, vis->screen, pixmap, config))
752 struct glx_config *config;
758 config = glx_config_find_visual(psc->visuals, vis->visualid);
759 pdraw = psc->driScreen->createDrawable(psc, pixmap, xid, GLX_PIXMAP_BIT, config);
899 struct glx_config *config;
904 config = glx_config_find_visual(psc->visuals, vis->visualid);
907 if (config != NULL) {
908 return glx_config_get(config, attribute, value_return);
915 ** If we can't find the config for this visual, this visual is not
929 init_fbconfig_for_chooser(struct glx_config * config,
932 memset(config, 0, sizeof(struct glx_config));
933 config->visualID = (XID) GLX_DONT_CARE;
934 config->visualType = GLX_DONT_CARE;
940 config->doubleBufferMode = GLX_DONT_CARE;
941 config->renderType = GLX_RGBA_BIT;
944 config->drawableType = GLX_WINDOW_BIT;
945 config->visualRating = GLX_DONT_CARE;
946 config->transparentPixel = GLX_NONE;
947 config->transparentRed = GLX_DONT_CARE;
948 config->transparentGreen = GLX_DONT_CARE;
949 config->transparentBlue = GLX_DONT_CARE;
950 config->transparentAlpha = GLX_DONT_CARE;
951 config->transparentIndex = GLX_DONT_CARE;
953 config->xRenderable = GLX_DONT_CARE;
954 config->fbconfigID = (GLXFBConfigID) (GLX_DONT_CARE);
956 config->swapMethod = GLX_DONT_CARE;
957 config->sRGBCapable = GLX_DONT_CARE;
995 * \param a Application specified config to test.
996 * \param b Server specified config to test against \c a.
1114 * \returns If \c a is a "better" config, according to the specification of
1257 struct glx_config *config;
1285 for (config = psc->visuals; config != NULL; config = config->next) {
1286 if (fbconfigs_compatible(&test_config, config)
1288 (fbconfig_compare (&config, &best_config) < 0))) {
1294 visualTemplate.visualid = config->visualID;
1301 best_config = config;
1541 *value = ctx->config ? ctx->config->visualID : None;
1547 *value = ctx->config ? ctx->config->fbconfigID : None;
1623 struct glx_config *config = (struct glx_config *) fbconfig;
1628 if (!config) {
1634 glXGetFBConfigs(dpy, config->screen, &list_size);
1637 if (config_list[i] == config)
1647 return CreateContext(dpy, config->fbconfigID, config, shareList,
1666 struct glx_config *config;
1677 for (config = priv->screens[screen]->configs; config != NULL;
1678 config = config->next) {
1679 if (config->fbconfigID != (int) GLX_DONT_CARE) {
1688 for (config = priv->screens[screen]->configs; config != NULL;
1689 config = config->next) {
1690 if (config->fbconfigID != (int) GLX_DONT_CARE) {
1691 config_list[i] = config;
1706 struct glx_config *config = ValidateGLXFBConfig(dpy, fbconfig);
1708 if (config == NULL)
1711 return glx_config_get(config, attribute, value);
1719 struct glx_config *config = (struct glx_config *) fbconfig;
1722 if (!config)
1728 visualTemplate.visualid = config->visualID;
1963 (Display * dpy, GLXFBConfigSGIX config, int attribute, int *value),
1964 (dpy, config, attribute, value), glXGetFBConfigAttrib)
1972 (Display * dpy, GLXFBConfigSGIX config),
1973 (dpy, config), glXGetVisualFromFBConfig)
1987 struct glx_config *config = (struct glx_config *) fbconfig;
1990 if ((dpy == NULL) || (config == NULL)) {
1994 if(apple_glx_pixmap_create(dpy, config->screen, pixmap, config))
1999 psc = GetGLXScreenConfigs(dpy, config->screen);
2016 req->screen = config->screen;
2017 req->fbconfig = config->fbconfigID;
2034 struct glx_config *config = (struct glx_config *) fbconfig;
2038 if ((dpy == NULL) || (config == NULL)) {
2042 psc = GetGLXScreenConfigs(dpy, config->screen);
2045 gc = CreateContext(dpy, config->fbconfigID, config, shareList,