Lines Matching refs:readRb

113    struct gl_renderbuffer *readRb, *drawRb;  in blit_nearest()  local
149 readRb = ctx->ReadBuffer->_ColorReadBuffer; in blit_nearest()
152 if (readRb->Format == drawRb->Format) { in blit_nearest()
154 pixelSize = _mesa_get_format_bytes(readRb->Format); in blit_nearest()
162 readRb = ctx->ReadBuffer->Attachment[BUFFER_DEPTH].Renderbuffer; in blit_nearest()
169 if (readRb->Format == MESA_FORMAT_Z32_FLOAT || in blit_nearest()
170 readRb->Format == MESA_FORMAT_Z32_FLOAT_X24S8) { in blit_nearest()
178 readRb = ctx->ReadBuffer->Attachment[BUFFER_STENCIL].Renderbuffer; in blit_nearest()
211 if (readRb == drawRb) { in blit_nearest()
218 GLint formatSize = _mesa_get_format_bytes(readRb->Format); in blit_nearest()
220 ctx->Driver.MapRenderbuffer(ctx, readRb, 0, 0, in blit_nearest()
221 readRb->Width, readRb->Height, in blit_nearest()
235 srcMap += rowStride * (readRb->Height - 1); in blit_nearest()
236 dstMap += rowStride * (readRb->Height - 1); in blit_nearest()
248 ctx->Driver.MapRenderbuffer(ctx, readRb, in blit_nearest()
261 ctx->Driver.UnmapRenderbuffer(ctx, readRb); in blit_nearest()
300 _mesa_unpack_rgba_row(readRb->Format, srcWidth, srcRowStart, in blit_nearest()
304 _mesa_unpack_float_z_row(readRb->Format, srcWidth, srcRowStart, in blit_nearest()
308 _mesa_unpack_uint_z_row(readRb->Format, srcWidth, srcRowStart, in blit_nearest()
312 _mesa_unpack_ubyte_stencil_row(readRb->Format, srcWidth, in blit_nearest()
348 ctx->Driver.UnmapRenderbuffer(ctx, readRb); in blit_nearest()
349 if (drawRb != readRb) { in blit_nearest()
492 struct gl_renderbuffer *readRb = ctx->ReadBuffer->_ColorReadBuffer; in blit_linear() local
516 gl_format readFormat = _mesa_get_srgb_format_linear(readRb->Format); in blit_linear()
562 if (readRb == drawRb) { in blit_linear()
564 ctx->Driver.MapRenderbuffer(ctx, readRb, in blit_linear()
565 0, 0, readRb->Width, readRb->Height, in blit_linear()
584 ctx->Driver.MapRenderbuffer(ctx, readRb, in blit_linear()
585 0, 0, readRb->Width, readRb->Height, in blit_linear()
598 ctx->Driver.UnmapRenderbuffer(ctx, readRb); in blit_linear()
700 ctx->Driver.UnmapRenderbuffer(ctx, readRb); in blit_linear()
701 if (drawRb != readRb) { in blit_linear()