Lines Matching refs:visual
113 Visual* getXVisual (void) { return m_visual; }
122 ::Visual* m_visual;
148 GlxWindow (GlxVisual& visual, const RenderConfig& cfg);
286 m_visual = visualInfo->visual;
362 GlxWindow::GlxWindow (GlxVisual& visual, const RenderConfig& cfg)
363 : m_x11Display (visual.getGlxDisplay())
365 visual.getXVisual())
366 , m_GLXDrawable (visual.createWindow(m_x11Window.getXID()))
422 static bool configMatches (GlxVisual& visual, const RenderConfig& renderCfg)
425 return visual.getAttrib(GLX_FBCONFIG_ID) == renderCfg.id;
431 requested != visual.getAttrib(it->glxAttribute))
438 if ((visual.getAttrib(GLX_DRAWABLE_TYPE) & bits) == 0)
441 // It shouldn't be possible to have GLX_WINDOW_BIT set without a visual,
444 visual.getXVisual() == DE_NULL)
478 static deUint64 configRank (GlxVisual& visual)
481 if (visual.getAttrib(GLX_DOUBLEBUFFER) == False ||
482 (visual.getAttrib(GLX_RENDER_TYPE) & GLX_RGBA_BIT) == 0)
486 int caveat = visual.getAttrib(GLX_CONFIG_CAVEAT);
487 int redSize = visual.getAttrib(GLX_RED_SIZE);
488 int greenSize = visual.getAttrib(GLX_GREEN_SIZE);
489 int blueSize = visual.getAttrib(GLX_BLUE_SIZE);
490 int alphaSize = visual.getAttrib(GLX_ALPHA_SIZE);
491 int depthSize = visual.getAttrib(GLX_DEPTH_SIZE);
492 int stencilSize = visual.getAttrib(GLX_STENCIL_SIZE);
499 rank.add(1, visual.getAttrib(GLX_TRANSPARENT_TYPE) == GLX_NONE);
502 rank.add(1, visual.getAttrib(GLX_STEREO) == False);
505 rank.add(1, visual.getAttrib(GLX_LEVEL) == 0);
529 rank.sub(5, visual.getAttrib(GLX_SAMPLES));
532 int visualType = visual.getAttrib(GLX_X_VISUAL_TYPE);
550 GlxVisual visual(display, fbConfigs[i]);
552 if (!configMatches(visual, cfg))
555 deUint64 cfgRank = configRank(visual);
571 GlxDrawable* createDrawable (GlxVisual& visual, const RenderConfig& config)
577 if (visual.getXVisual() == DE_NULL)
578 // No visual, cannot create X window
590 return new GlxWindow(visual, config);