Lines Matching refs:Pack
42 #include "pack.h"
101 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels,
106 _mesa_pack_depth_span(ctx, width, dest, type, depthRow, &ctx->Pack);
146 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels,
151 if (ctx->Pack.SwapBytes) {
191 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels,
201 if (!ctx->Pack.SwapBytes)
204 else if (ctx->Pack.SwapBytes) {
240 /* Decompress into temp float buffer, then pack into user buffer */
300 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels,
305 format, type, dest, &ctx->Pack, transferOps);
383 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels,
406 &ctx->Pack, transferOps);
482 ctx->Pack.SwapBytes);
489 _mesa_image_address2d(&ctx->Pack, pixels, texImage->Width,
492 _mesa_image_row_stride(&ctx->Pack, texImage->Width, format, type);
551 if (_mesa_is_bufferobj(ctx->Pack.BufferObj)) {
559 ctx->Driver.MapBufferRange(ctx, 0, ctx->Pack.BufferObj->Size,
560 GL_MAP_WRITE_BIT, ctx->Pack.BufferObj);
588 if (_mesa_is_bufferobj(ctx->Pack.BufferObj)) {
589 ctx->Driver.UnmapBuffer(ctx, ctx->Pack.BufferObj);
610 if (_mesa_is_bufferobj(ctx->Pack.BufferObj)) {
611 /* pack texture image into a PBO */
613 ctx->Driver.MapBufferRange(ctx, 0, ctx->Pack.BufferObj->Size,
614 GL_MAP_WRITE_BIT, ctx->Pack.BufferObj);
655 if (_mesa_is_bufferobj(ctx->Pack.BufferObj)) {
656 ctx->Driver.UnmapBuffer(ctx, ctx->Pack.BufferObj);
769 if (!_mesa_validate_pbo_access(dimensions, &ctx->Pack, texImage->Width,
772 if (_mesa_is_bufferobj(ctx->Pack.BufferObj)) {
783 if (_mesa_is_bufferobj(ctx->Pack.BufferObj)) {
785 if (_mesa_bufferobj_mapped(ctx->Pack.BufferObj)) {
821 if (!_mesa_is_bufferobj(ctx->Pack.BufferObj) && !pixels) {
909 if (!_mesa_is_bufferobj(ctx->Pack.BufferObj)) {
920 (const GLubyte *) ctx->Pack.BufferObj->Size) {
927 if (_mesa_bufferobj_mapped(ctx->Pack.BufferObj)) {
951 if (!_mesa_is_bufferobj(ctx->Pack.BufferObj) && !img) {