Lines Matching refs:unpack
149 const struct gl_pixelstore_attrib *unpack,
154 if (unpack->BufferObj) {
155 /* unpack from PBO */
157 unpack->BufferObj->Size,
159 unpack->BufferObj,
167 /* unpack from normal memory */
181 const struct gl_pixelstore_attrib *unpack,
189 if (!_mesa_validate_pbo_access(dimensions, unpack, width, height, depth,
191 if (unpack->BufferObj) {
203 if (!unpack->BufferObj) {
208 if (_mesa_check_disallowed_mapping(unpack->BufferObj)) {
224 const struct gl_pixelstore_attrib *unpack,
228 if (!unpack->BufferObj) {
234 ((const GLubyte *) 0) + unpack->BufferObj->Size) {
241 if (_mesa_check_disallowed_mapping(unpack->BufferObj)) {
262 const struct gl_pixelstore_attrib *unpack,
268 if (!_mesa_validate_pbo_source(ctx, dimensions, unpack,
274 ptr = _mesa_map_pbo_source(ctx, unpack, ptr);
284 const struct gl_pixelstore_attrib *unpack)
286 assert(unpack != &ctx->Pack); /* catch pack/unpack mismatch */
287 if (unpack->BufferObj) {
288 ctx->Driver.UnmapBuffer(ctx, unpack->BufferObj, MAP_INTERNAL);
340 const struct gl_pixelstore_attrib *unpack,
347 if (!_mesa_validate_pbo_access(dimensions, unpack, width, height, depth,
349 if (unpack->BufferObj) {
360 if (!unpack->BufferObj) {
365 if (_mesa_check_disallowed_mapping(unpack->BufferObj)) {
371 ptr = _mesa_map_pbo_dest(ctx, unpack, ptr);
383 assert(pack != &ctx->Unpack); /* catch pack/unpack mismatch */
391 * Check if an unpack PBO is active prior to fetching a texture image.
400 const struct gl_pixelstore_attrib *unpack,
405 if (!unpack->BufferObj) {
409 if (!_mesa_validate_pbo_access(dimensions, unpack, width, height, depth,
417 unpack->BufferObj->Size,
419 unpack->BufferObj,
432 * Check if an unpack PBO is active prior to fetching a compressed texture
479 const struct gl_pixelstore_attrib *unpack)
481 if (unpack->BufferObj) {
482 ctx->Driver.UnmapBuffer(ctx, unpack->BufferObj, MAP_INTERNAL);