Lines Matching full:visual
58 if (fb->Visual.depthBits == 0) { in compute_depth_max()
65 else if (fb->Visual.depthBits < 32) { in compute_depth_max()
66 fb->_DepthMax = (1 << fb->Visual.depthBits) - 1; in compute_depth_max()
88 _mesa_create_framebuffer(const struct gl_config *visual) in _mesa_create_framebuffer() argument
91 assert(visual); in _mesa_create_framebuffer()
93 _mesa_initialize_window_framebuffer(fb, visual); in _mesa_create_framebuffer()
127 const struct gl_config *visual) in _mesa_initialize_window_framebuffer() argument
130 assert(visual); in _mesa_initialize_window_framebuffer()
138 /* save the visual */ in _mesa_initialize_window_framebuffer()
139 fb->Visual = *visual; in _mesa_initialize_window_framebuffer()
142 if (visual->doubleBufferMode) { in _mesa_initialize_window_framebuffer()
159 fb->_AllColorBuffersFixedPoint = !visual->floatMode; in _mesa_initialize_window_framebuffer()
160 fb->_HasSNormOrFloatColorBuffer = visual->floatMode; in _mesa_initialize_window_framebuffer()
415 * etc. are satisfied by the fields of ctx->DrawBuffer->Visual. These can
417 * the given framebuffer's Visual from the current renderbuffer bindings.
421 * Also note: ctx->DrawBuffer->Visual.depthBits might not equal
432 memset(&fb->Visual, 0, sizeof(fb->Visual)); in _mesa_update_framebuffer_visual()
433 fb->Visual.rgbMode = GL_TRUE; /* assume this */ in _mesa_update_framebuffer_visual()
446 fb->Visual.samples = rb->NumSamples; in _mesa_update_framebuffer_visual()
447 fb->Visual.sampleBuffers = rb->NumSamples > 0 ? 1 : 0; in _mesa_update_framebuffer_visual()
450 fb->Visual.redBits = _mesa_get_format_bits(fmt, GL_RED_BITS); in _mesa_update_framebuffer_visual()
451 fb->Visual.greenBits = _mesa_get_format_bits(fmt, GL_GREEN_BITS); in _mesa_update_framebuffer_visual()
452 fb->Visual.blueBits = _mesa_get_format_bits(fmt, GL_BLUE_BITS); in _mesa_update_framebuffer_visual()
453 fb->Visual.alphaBits = _mesa_get_format_bits(fmt, GL_ALPHA_BITS); in _mesa_update_framebuffer_visual()
454 fb->Visual.rgbBits = fb->Visual.redBits in _mesa_update_framebuffer_visual()
455 + fb->Visual.greenBits + fb->Visual.blueBits; in _mesa_update_framebuffer_visual()
457 fb->Visual.sRGBCapable = ctx->Extensions.EXT_framebuffer_sRGB; in _mesa_update_framebuffer_visual()
463 fb->Visual.floatMode = GL_FALSE; in _mesa_update_framebuffer_visual()
470 fb->Visual.floatMode = GL_TRUE; in _mesa_update_framebuffer_visual()
480 fb->Visual.haveDepthBuffer = GL_TRUE; in _mesa_update_framebuffer_visual()
481 fb->Visual.depthBits = _mesa_get_format_bits(fmt, GL_DEPTH_BITS); in _mesa_update_framebuffer_visual()
488 fb->Visual.haveStencilBuffer = GL_TRUE; in _mesa_update_framebuffer_visual()
489 fb->Visual.stencilBits = _mesa_get_format_bits(fmt, GL_STENCIL_BITS); in _mesa_update_framebuffer_visual()
496 fb->Visual.haveAccumBuffer = GL_TRUE; in _mesa_update_framebuffer_visual()
497 fb->Visual.accumRedBits = _mesa_get_format_bits(fmt, GL_RED_BITS); in _mesa_update_framebuffer_visual()
498 fb->Visual.accumGreenBits = _mesa_get_format_bits(fmt, GL_GREEN_BITS); in _mesa_update_framebuffer_visual()
499 fb->Visual.accumBlueBits = _mesa_get_format_bits(fmt, GL_BLUE_BITS); in _mesa_update_framebuffer_visual()
500 fb->Visual.accumAlphaBits = _mesa_get_format_bits(fmt, GL_ALPHA_BITS); in _mesa_update_framebuffer_visual()
992 buffer->Visual.samples : in _mesa_geometric_nonvalidated_samples()