Lines Matching refs:unpack

141                      const struct gl_pixelstore_attrib *unpack,
146 if (_mesa_is_bufferobj(unpack->BufferObj)) {
147 /* unpack from PBO */
149 unpack->BufferObj->Size,
151 unpack->BufferObj);
158 /* unpack from normal memory */
177 const struct gl_pixelstore_attrib *unpack,
185 if (!_mesa_validate_pbo_access(dimensions, unpack, width, height, depth,
187 if (_mesa_is_bufferobj(unpack->BufferObj)) {
198 if (!_mesa_is_bufferobj(unpack->BufferObj)) {
203 if (_mesa_bufferobj_mapped(unpack->BufferObj)) {
209 ptr = _mesa_map_pbo_source(ctx, unpack, ptr);
219 const struct gl_pixelstore_attrib *unpack)
221 ASSERT(unpack != &ctx->Pack); /* catch pack/unpack mismatch */
222 if (_mesa_is_bufferobj(unpack->BufferObj)) {
223 ctx->Driver.UnmapBuffer(ctx, unpack->BufferObj);
274 const struct gl_pixelstore_attrib *unpack,
281 if (!_mesa_validate_pbo_access(dimensions, unpack, width, height, depth,
283 if (_mesa_is_bufferobj(unpack->BufferObj)) {
294 if (!_mesa_is_bufferobj(unpack->BufferObj)) {
299 if (_mesa_bufferobj_mapped(unpack->BufferObj)) {
305 ptr = _mesa_map_pbo_dest(ctx, unpack, ptr);
317 ASSERT(pack != &ctx->Unpack); /* catch pack/unpack mismatch */
325 * Check if an unpack PBO is active prior to fetching a texture image.
334 const struct gl_pixelstore_attrib *unpack,
339 if (!_mesa_is_bufferobj(unpack->BufferObj)) {
343 if (!_mesa_validate_pbo_access(dimensions, unpack, width, height, depth,
350 unpack->BufferObj->Size,
352 unpack->BufferObj);
363 * Check if an unpack PBO is active prior to fetching a compressed texture
407 const struct gl_pixelstore_attrib *unpack)
409 if (_mesa_is_bufferobj(unpack->BufferObj)) {
410 ctx->Driver.UnmapBuffer(ctx, unpack->BufferObj);