Lines Matching defs:unpack
147 const struct gl_pixelstore_attrib *unpack,
152 if (unpack->BufferObj) {
153 /* unpack from PBO */
155 unpack->BufferObj->Size,
157 unpack->BufferObj,
165 /* unpack from normal memory */
179 const struct gl_pixelstore_attrib *unpack,
187 if (!_mesa_validate_pbo_access(dimensions, unpack, width, height, depth,
189 if (unpack->BufferObj) {
201 if (!unpack->BufferObj) {
206 if (_mesa_check_disallowed_mapping(unpack->BufferObj)) {
222 const struct gl_pixelstore_attrib *unpack,
226 if (!unpack->BufferObj) {
232 ((const GLubyte *) 0) + unpack->BufferObj->Size) {
239 if (_mesa_check_disallowed_mapping(unpack->BufferObj)) {
260 const struct gl_pixelstore_attrib *unpack,
266 if (!_mesa_validate_pbo_source(ctx, dimensions, unpack,
272 ptr = _mesa_map_pbo_source(ctx, unpack, ptr);
282 const struct gl_pixelstore_attrib *unpack)
284 assert(unpack != &ctx->Pack); /* catch pack/unpack mismatch */
285 if (unpack->BufferObj) {
286 _mesa_bufferobj_unmap(ctx, unpack->BufferObj, MAP_INTERNAL);
338 const struct gl_pixelstore_attrib *unpack,
345 if (!_mesa_validate_pbo_access(dimensions, unpack, width, height, depth,
347 if (unpack->BufferObj) {
358 if (!unpack->BufferObj) {
363 if (_mesa_check_disallowed_mapping(unpack->BufferObj)) {
369 ptr = _mesa_map_pbo_dest(ctx, unpack, ptr);
381 assert(pack != &ctx->Unpack); /* catch pack/unpack mismatch */
389 * Check if an unpack PBO is active prior to fetching a texture image.
398 const struct gl_pixelstore_attrib *unpack,
403 if (!unpack->BufferObj) {
407 if (!_mesa_validate_pbo_access(dimensions, unpack, width, height, depth,
415 unpack->BufferObj->Size,
417 unpack->BufferObj,
430 * Check if an unpack PBO is active prior to fetching a compressed texture
477 const struct gl_pixelstore_attrib *unpack)
479 if (unpack->BufferObj) {
480 _mesa_bufferobj_unmap(ctx, unpack->BufferObj, MAP_INTERNAL);