Lines Matching refs:packing
196 const struct gl_pixelstore_attrib *packing) in readpixels_can_use_memcpy() argument
214 packing->SwapBytes, NULL)) { in readpixels_can_use_memcpy()
228 const struct gl_pixelstore_attrib *packing) in readpixels_memcpy() argument
236 if (!readpixels_can_use_memcpy(ctx, format, type, packing)) { in readpixels_memcpy()
240 dstStride = _mesa_image_row_stride(packing, width, format, type); in readpixels_memcpy()
241 dst = (GLubyte *) _mesa_image_address2d(packing, pixels, width, height, in readpixels_memcpy()
279 const struct gl_pixelstore_attrib *packing ) in read_uint_depth_pixels() argument
289 if (packing->SwapBytes) in read_uint_depth_pixels()
303 dstStride = _mesa_image_row_stride(packing, width, GL_DEPTH_COMPONENT, type); in read_uint_depth_pixels()
304 dst = (GLubyte *) _mesa_image_address2d(packing, pixels, width, height, in read_uint_depth_pixels()
326 const struct gl_pixelstore_attrib *packing ) in read_depth_pixels() argument
345 read_uint_depth_pixels(ctx, x, y, width, height, type, pixels, packing)) { in read_depth_pixels()
349 dstStride = _mesa_image_row_stride(packing, width, GL_DEPTH_COMPONENT, type); in read_depth_pixels()
350 dst = (GLubyte *) _mesa_image_address2d(packing, pixels, width, height, in read_depth_pixels()
366 _mesa_pack_depth_span(ctx, width, dst, type, depthValues, packing); in read_depth_pixels()
390 const struct gl_pixelstore_attrib *packing ) in read_stencil_pixels() argument
416 dest = _mesa_image_address2d(packing, pixels, width, height, in read_stencil_pixels()
419 _mesa_pack_stencil_span(ctx, width, type, dest, stencil, packing); in read_stencil_pixels()
441 const struct gl_pixelstore_attrib *packing ) in read_rgba_pixels() argument
464 dst_stride = _mesa_image_row_stride(packing, width, format, type); in read_rgba_pixels()
468 dst = (GLubyte *) _mesa_image_address2d(packing, pixels, width, height, in read_rgba_pixels()
630 if (packing->SwapBytes) { in read_rgba_pixels()
631 _mesa_swap_bytes_2d_image(format, type, packing, in read_rgba_pixels()
751 const struct gl_pixelstore_attrib *packing, in slow_read_depth_stencil_pixels_separate() argument
798 depthVals, stencilVals, packing); in slow_read_depth_stencil_pixels_separate()
829 const struct gl_pixelstore_attrib *packing ) in read_depth_stencil_pixels() argument
838 dst = (GLubyte *) _mesa_image_address2d(packing, pixels, in read_depth_stencil_pixels()
842 dstStride = _mesa_image_row_stride(packing, width, in read_depth_stencil_pixels()
847 !scaleOrBias && !stencilTransfer && !packing->SwapBytes) { in read_depth_stencil_pixels()
858 type, packing, in read_depth_stencil_pixels()
872 const struct gl_pixelstore_attrib *packing, in _mesa_readpixels() argument
878 pixels = _mesa_map_pbo_dest(ctx, packing, pixels); in _mesa_readpixels()
883 pixels, packing)) { in _mesa_readpixels()
884 _mesa_unmap_pbo_dest(ctx, packing); in _mesa_readpixels()
892 packing); in _mesa_readpixels()
896 packing); in _mesa_readpixels()
900 packing); in _mesa_readpixels()
905 packing); in _mesa_readpixels()
908 _mesa_unmap_pbo_dest(ctx, packing); in _mesa_readpixels()