Lines Matching refs:Pack

102             void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels,
107 _mesa_pack_depth_span(ctx, width, dest, type, depthRow, &ctx->Pack);
150 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels,
157 if (ctx->Pack.SwapBytes) {
198 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels,
241 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels,
251 if (!ctx->Pack.SwapBytes)
254 else if (ctx->Pack.SwapBytes) {
360 dstStride = _mesa_image_row_stride(&ctx->Pack, width, format, type);
364 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels,
373 if (ctx->Pack.SwapBytes) {
374 _mesa_swap_bytes_2d_image(format, type, &ctx->Pack,
448 dst_stride = _mesa_image_row_stride(&ctx->Pack, width, format, type);
478 dest = _mesa_image_address(dimensions, &ctx->Pack, pixels,
546 if (ctx->Pack.SwapBytes)
547 _mesa_swap_bytes_2d_image(format, type, &ctx->Pack,
631 ctx->Pack.SwapBytes, NULL);
643 _mesa_image_address2d(&ctx->Pack, pixels, width, height,
646 _mesa_image_row_stride(&ctx->Pack, width, format, type);
697 if (_mesa_is_bufferobj(ctx->Pack.BufferObj)) {
705 ctx->Driver.MapBufferRange(ctx, 0, ctx->Pack.BufferObj->Size,
706 GL_MAP_WRITE_BIT, ctx->Pack.BufferObj,
756 if (_mesa_is_bufferobj(ctx->Pack.BufferObj)) {
757 ctx->Driver.UnmapBuffer(ctx, ctx->Pack.BufferObj, MAP_INTERNAL);
782 &ctx->Pack, &store);
784 if (_mesa_is_bufferobj(ctx->Pack.BufferObj)) {
787 ctx->Driver.MapBufferRange(ctx, 0, ctx->Pack.BufferObj->Size,
788 GL_MAP_WRITE_BIT, ctx->Pack.BufferObj,
831 if (_mesa_is_bufferobj(ctx->Pack.BufferObj)) {
832 ctx->Driver.UnmapBuffer(ctx, ctx->Pack.BufferObj, MAP_INTERNAL);
1095 if (!_mesa_validate_pbo_access(dimensions, &ctx->Pack, width, height, depth,
1097 if (_mesa_is_bufferobj(ctx->Pack.BufferObj)) {
1108 if (_mesa_is_bufferobj(ctx->Pack.BufferObj)) {
1110 if (_mesa_check_disallowed_mapping(ctx->Pack.BufferObj)) {
1117 if (!_mesa_is_bufferobj(ctx->Pack.BufferObj) && !pixels) {
1411 imageStride = _mesa_image_image_stride(&ctx->Pack, width, height,
1649 &ctx->Pack,
1657 &ctx->Pack);
1660 if (_mesa_is_bufferobj(ctx->Pack.BufferObj)) {
1663 (GLubyte *) ctx->Pack.BufferObj->Size) {
1670 if (_mesa_check_disallowed_mapping(ctx->Pack.BufferObj)) {
1685 if (!_mesa_is_bufferobj(ctx->Pack.BufferObj) && !pixels) {
1731 &ctx->Pack, &store);