Lines Matching refs:fb

241 add_color_renderbuffers(struct gl_context *ctx, struct gl_framebuffer *fb,  in add_color_renderbuffers()  argument
268 assert(fb->Attachment[b].Renderbuffer == NULL); in add_color_renderbuffers()
279 _mesa_add_renderbuffer(fb, b, rb); in add_color_renderbuffers()
295 add_depth_renderbuffer(struct gl_context *ctx, struct gl_framebuffer *fb, in add_depth_renderbuffer() argument
306 assert(fb->Attachment[BUFFER_DEPTH].Renderbuffer == NULL); in add_depth_renderbuffer()
325 _mesa_add_renderbuffer(fb, BUFFER_DEPTH, rb); in add_depth_renderbuffer()
340 add_stencil_renderbuffer(struct gl_context *ctx, struct gl_framebuffer *fb, in add_stencil_renderbuffer() argument
351 assert(fb->Attachment[BUFFER_STENCIL].Renderbuffer == NULL); in add_stencil_renderbuffer()
363 _mesa_add_renderbuffer(fb, BUFFER_STENCIL, rb); in add_stencil_renderbuffer()
371 struct gl_framebuffer *fb) in add_depth_stencil_renderbuffer() argument
375 assert(fb->Attachment[BUFFER_DEPTH].Renderbuffer == NULL); in add_depth_stencil_renderbuffer()
376 assert(fb->Attachment[BUFFER_STENCIL].Renderbuffer == NULL); in add_depth_stencil_renderbuffer()
387 _mesa_add_renderbuffer(fb, BUFFER_DEPTH, rb); in add_depth_stencil_renderbuffer()
388 _mesa_add_renderbuffer(fb, BUFFER_STENCIL, rb); in add_depth_stencil_renderbuffer()
403 add_accum_renderbuffer(struct gl_context *ctx, struct gl_framebuffer *fb, in add_accum_renderbuffer() argument
415 assert(fb->Attachment[BUFFER_ACCUM].Renderbuffer == NULL); in add_accum_renderbuffer()
425 _mesa_add_renderbuffer(fb, BUFFER_ACCUM, rb); in add_accum_renderbuffer()
443 add_aux_renderbuffers(struct gl_context *ctx, struct gl_framebuffer *fb, in add_aux_renderbuffers() argument
459 assert(fb->Attachment[BUFFER_AUX0 + i].Renderbuffer == NULL); in add_aux_renderbuffers()
470 _mesa_add_renderbuffer(fb, BUFFER_AUX0 + i, rb); in add_aux_renderbuffers()
482 _swrast_add_soft_renderbuffers(struct gl_framebuffer *fb, in _swrast_add_soft_renderbuffers() argument
491 GLboolean backLeft = fb->Visual.doubleBufferMode; in _swrast_add_soft_renderbuffers()
492 GLboolean frontRight = fb->Visual.stereoMode; in _swrast_add_soft_renderbuffers()
493 GLboolean backRight = fb->Visual.stereoMode && fb->Visual.doubleBufferMode; in _swrast_add_soft_renderbuffers()
496 assert(fb->Visual.redBits == fb->Visual.greenBits); in _swrast_add_soft_renderbuffers()
497 assert(fb->Visual.redBits == fb->Visual.blueBits); in _swrast_add_soft_renderbuffers()
498 add_color_renderbuffers(NULL, fb, in _swrast_add_soft_renderbuffers()
499 fb->Visual.redBits, in _swrast_add_soft_renderbuffers()
500 fb->Visual.alphaBits, in _swrast_add_soft_renderbuffers()
509 if (depth && fb->Visual.depthBits == 24 && in _swrast_add_soft_renderbuffers()
510 stencil && fb->Visual.stencilBits == 8) { in _swrast_add_soft_renderbuffers()
512 add_depth_stencil_renderbuffer(NULL, fb); in _swrast_add_soft_renderbuffers()
520 assert(fb->Visual.depthBits > 0); in _swrast_add_soft_renderbuffers()
521 add_depth_renderbuffer(NULL, fb, fb->Visual.depthBits); in _swrast_add_soft_renderbuffers()
525 assert(fb->Visual.stencilBits > 0); in _swrast_add_soft_renderbuffers()
526 add_stencil_renderbuffer(NULL, fb, fb->Visual.stencilBits); in _swrast_add_soft_renderbuffers()
531 assert(fb->Visual.accumRedBits > 0); in _swrast_add_soft_renderbuffers()
532 assert(fb->Visual.accumGreenBits > 0); in _swrast_add_soft_renderbuffers()
533 assert(fb->Visual.accumBlueBits > 0); in _swrast_add_soft_renderbuffers()
534 add_accum_renderbuffer(NULL, fb, in _swrast_add_soft_renderbuffers()
535 fb->Visual.accumRedBits, in _swrast_add_soft_renderbuffers()
536 fb->Visual.accumGreenBits, in _swrast_add_soft_renderbuffers()
537 fb->Visual.accumBlueBits, in _swrast_add_soft_renderbuffers()
538 fb->Visual.accumAlphaBits); in _swrast_add_soft_renderbuffers()
542 assert(fb->Visual.numAuxBuffers > 0); in _swrast_add_soft_renderbuffers()
543 add_aux_renderbuffers(NULL, fb, fb->Visual.redBits, in _swrast_add_soft_renderbuffers()
544 fb->Visual.numAuxBuffers); in _swrast_add_soft_renderbuffers()
558 struct gl_framebuffer *fb, in map_attachment() argument
561 struct gl_texture_object *texObj = fb->Attachment[buffer].Texture; in map_attachment()
562 struct gl_renderbuffer *rb = fb->Attachment[buffer].Renderbuffer; in map_attachment()
567 const GLuint level = fb->Attachment[buffer].TextureLevel; in map_attachment()
568 const GLuint face = fb->Attachment[buffer].CubeMapFace; in map_attachment()
569 const GLuint slice = fb->Attachment[buffer].Zoffset; in map_attachment()
592 struct gl_framebuffer *fb, in unmap_attachment() argument
595 struct gl_texture_object *texObj = fb->Attachment[buffer].Texture; in unmap_attachment()
596 struct gl_renderbuffer *rb = fb->Attachment[buffer].Renderbuffer; in unmap_attachment()
601 const GLuint level = fb->Attachment[buffer].TextureLevel; in unmap_attachment()
602 const GLuint face = fb->Attachment[buffer].CubeMapFace; in unmap_attachment()
603 const GLuint slice = fb->Attachment[buffer].Zoffset; in unmap_attachment()
647 struct gl_framebuffer *fb = ctx->DrawBuffer; in _swrast_map_renderbuffers() local
651 depthRb = fb->Attachment[BUFFER_DEPTH].Renderbuffer; in _swrast_map_renderbuffers()
654 map_attachment(ctx, fb, BUFFER_DEPTH); in _swrast_map_renderbuffers()
657 stencilRb = fb->Attachment[BUFFER_STENCIL].Renderbuffer; in _swrast_map_renderbuffers()
660 map_attachment(ctx, fb, BUFFER_STENCIL); in _swrast_map_renderbuffers()
663 for (buf = 0; buf < fb->_NumColorDrawBuffers; buf++) { in _swrast_map_renderbuffers()
664 map_attachment(ctx, fb, fb->_ColorDrawBufferIndexes[buf]); in _swrast_map_renderbuffers()
665 find_renderbuffer_colortype(fb->_ColorDrawBuffers[buf]); in _swrast_map_renderbuffers()
676 struct gl_framebuffer *fb = ctx->DrawBuffer; in _swrast_unmap_renderbuffers() local
680 depthRb = fb->Attachment[BUFFER_DEPTH].Renderbuffer; in _swrast_unmap_renderbuffers()
683 unmap_attachment(ctx, fb, BUFFER_DEPTH); in _swrast_unmap_renderbuffers()
686 stencilRb = fb->Attachment[BUFFER_STENCIL].Renderbuffer; in _swrast_unmap_renderbuffers()
689 unmap_attachment(ctx, fb, BUFFER_STENCIL); in _swrast_unmap_renderbuffers()
692 for (buf = 0; buf < fb->_NumColorDrawBuffers; buf++) { in _swrast_unmap_renderbuffers()
693 unmap_attachment(ctx, fb, fb->_ColorDrawBufferIndexes[buf]); in _swrast_unmap_renderbuffers()