• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:depth

2  * Mesa 3-D graphics library
4 * Copyright (C) 1999-2008 Brian Paul All Rights Reserved.
74 * glGetTexImage for depth/Z pixels.
79 GLsizei width, GLsizei height, GLint depth, in get_tex_depth() argument
91 for (img = 0; img < depth; img++) { in get_tex_depth()
96 ctx->Driver.MapTextureImage(ctx, texImage, zoffset + img, in get_tex_depth()
102 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels, in get_tex_depth()
106 _mesa_unpack_float_z_row(texImage->TexFormat, width, src, depthRow); in get_tex_depth()
107 _mesa_pack_depth_span(ctx, width, dest, type, depthRow, &ctx->Pack); in get_tex_depth()
110 ctx->Driver.UnmapTextureImage(ctx, texImage, zoffset + img); in get_tex_depth()
123 * glGetTexImage for depth/stencil pixels.
128 GLsizei width, GLsizei height, GLint depth, in get_tex_depth_stencil() argument
136 for (img = 0; img < depth; img++) { in get_tex_depth_stencil()
141 ctx->Driver.MapTextureImage(ctx, texImage, zoffset + img, in get_tex_depth_stencil()
148 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels, in get_tex_depth_stencil()
153 _mesa_unpack_uint_24_8_depth_stencil_row(texImage->TexFormat, in get_tex_depth_stencil()
157 _mesa_unpack_float_32_uint_24_8_depth_stencil_row(texImage->TexFormat, in get_tex_depth_stencil()
164 if (ctx->Pack.SwapBytes) { in get_tex_depth_stencil()
169 ctx->Driver.UnmapTextureImage(ctx, texImage, zoffset + img); in get_tex_depth_stencil()
184 GLsizei width, GLsizei height, GLint depth, in get_tex_stencil() argument
192 for (img = 0; img < depth; img++) { in get_tex_stencil()
197 ctx->Driver.MapTextureImage(ctx, texImage, zoffset + img, in get_tex_stencil()
205 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels, in get_tex_stencil()
208 _mesa_unpack_ubyte_stencil_row(texImage->TexFormat, in get_tex_stencil()
214 ctx->Driver.UnmapTextureImage(ctx, texImage, zoffset + img); in get_tex_stencil()
230 GLsizei width, GLsizei height, GLint depth, in get_tex_ycbcr() argument
236 for (img = 0; img < depth; img++) { in get_tex_ycbcr()
241 ctx->Driver.MapTextureImage(ctx, texImage, zoffset + img, in get_tex_ycbcr()
248 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels, in get_tex_ycbcr()
254 if ((texImage->TexFormat == MESA_FORMAT_YCBCR in get_tex_ycbcr()
256 (texImage->TexFormat == MESA_FORMAT_YCBCR_REV in get_tex_ycbcr()
258 if (!ctx->Pack.SwapBytes) in get_tex_ycbcr()
261 else if (ctx->Pack.SwapBytes) { in get_tex_ycbcr()
266 ctx->Driver.UnmapTextureImage(ctx, texImage, zoffset + img); in get_tex_ycbcr()
316 GLsizei width, GLsizei height, GLint depth, in get_tex_rgba_compressed() argument
321 /* don't want to apply sRGB -> RGB conversion here so override the format */ in get_tex_rgba_compressed()
323 _mesa_get_srgb_format_linear(texImage->TexFormat); in get_tex_rgba_compressed()
333 tempImage = malloc(width * height * depth * 4 * sizeof(GLfloat)); in get_tex_rgba_compressed()
339 /* Decompress the texture image slices - results in 'tempImage' */ in get_tex_rgba_compressed()
340 for (slice = 0; slice < depth; slice++) { in get_tex_rgba_compressed()
346 ctx->Driver.MapTextureImage(ctx, texImage, zoffset + slice, in get_tex_rgba_compressed()
354 ctx->Driver.UnmapTextureImage(ctx, texImage, zoffset + slice); in get_tex_rgba_compressed()
367 dstStride = _mesa_image_row_stride(&ctx->Pack, width, format, type); in get_tex_rgba_compressed()
370 for (slice = 0; slice < depth; slice++) { in get_tex_rgba_compressed()
371 void *dest = _mesa_image_address(dimensions, &ctx->Pack, pixels, in get_tex_rgba_compressed()
380 if (ctx->Pack.SwapBytes) { in get_tex_rgba_compressed()
381 _mesa_swap_bytes_2d_image(format, type, &ctx->Pack, in get_tex_rgba_compressed()
393 * Return a base GL format given the user-requested format
433 GLsizei width, GLsizei height, GLint depth, in get_tex_rgba_uncompressed() argument
438 /* don't want to apply sRGB -> RGB conversion here so override the format */ in get_tex_rgba_uncompressed()
440 _mesa_get_srgb_format_linear(texImage->TexFormat); in get_tex_rgba_uncompressed()
449 needsRebase = teximage_needs_rebase(texFormat, texImage->_BaseFormat, false, in get_tex_rgba_uncompressed()
455 dst_stride = _mesa_image_row_stride(&ctx->Pack, width, format, type); in get_tex_rgba_uncompressed()
465 for (img = 0; img < depth; img++) { in get_tex_rgba_uncompressed()
475 ctx->Driver.MapTextureImage(ctx, texImage, zoffset + img, in get_tex_rgba_uncompressed()
485 dest = _mesa_image_address(dimensions, &ctx->Pack, pixels, in get_tex_rgba_uncompressed()
511 ctx->Driver.UnmapTextureImage(ctx, texImage, img); in get_tex_rgba_uncompressed()
553 if (ctx->Pack.SwapBytes) in get_tex_rgba_uncompressed()
554 _mesa_swap_bytes_2d_image(format, type, &ctx->Pack, in get_tex_rgba_uncompressed()
558 ctx->Driver.UnmapTextureImage(ctx, texImage, zoffset + img); in get_tex_rgba_uncompressed()
573 GLsizei width, GLsizei height, GLint depth, in get_tex_rgba() argument
577 const GLenum dataType = _mesa_get_format_datatype(texImage->TexFormat); in get_tex_rgba()
594 if (_mesa_is_format_compressed(texImage->TexFormat)) { in get_tex_rgba()
597 width, height, depth, in get_tex_rgba()
604 width, height, depth, in get_tex_rgba()
618 GLsizei width, GLsizei height, GLint depth, in get_tex_memcpy() argument
622 const GLenum target = texImage->TexObject->Target; in get_tex_memcpy()
624 GLenum texBaseFormat = _mesa_get_format_base_format(texImage->TexFormat); in get_tex_memcpy()
635 texBaseFormat == texImage->_BaseFormat) { in get_tex_memcpy()
636 memCopy = _mesa_format_matches_format_and_type(texImage->TexFormat, in get_tex_memcpy()
638 ctx->Pack.SwapBytes, NULL); in get_tex_memcpy()
641 if (depth > 1) { in get_tex_memcpy()
647 const GLuint bpp = _mesa_get_format_bytes(texImage->TexFormat); in get_tex_memcpy()
650 _mesa_image_address2d(&ctx->Pack, pixels, width, height, in get_tex_memcpy()
653 _mesa_image_row_stride(&ctx->Pack, width, format, type); in get_tex_memcpy()
658 ctx->Driver.MapTextureImage(ctx, texImage, zoffset, in get_tex_memcpy()
676 ctx->Driver.UnmapTextureImage(ctx, texImage, zoffset); in get_tex_memcpy()
690 * We'll call ctx->Driver.MapTextureImage() to access the data, then
691 * unmap with ctx->Driver.UnmapTextureImage().
696 GLsizei width, GLsizei height, GLint depth, in _mesa_GetTexSubImage_sw() argument
701 _mesa_get_texture_dimensions(texImage->TexObject->Target); in _mesa_GetTexSubImage_sw()
704 if (ctx->Pack.BufferObj) { in _mesa_GetTexSubImage_sw()
706 * Map the (potentially) VRAM-based buffer into our process space so in _mesa_GetTexSubImage_sw()
712 ctx->Driver.MapBufferRange(ctx, 0, ctx->Pack.BufferObj->Size, in _mesa_GetTexSubImage_sw()
713 GL_MAP_WRITE_BIT, ctx->Pack.BufferObj, in _mesa_GetTexSubImage_sw()
721 * Now make it a real, client-side pointer inside the mapped region. in _mesa_GetTexSubImage_sw()
727 if (texImage->TexObject->Target == GL_TEXTURE_1D_ARRAY) { in _mesa_GetTexSubImage_sw()
728 depth = height; in _mesa_GetTexSubImage_sw()
732 assert(zoffset + depth <= texImage->Height); in _mesa_GetTexSubImage_sw()
734 assert(zoffset + depth <= texImage->Depth); in _mesa_GetTexSubImage_sw()
737 if (get_tex_memcpy(ctx, xoffset, yoffset, zoffset, width, height, depth, in _mesa_GetTexSubImage_sw()
743 width, height, depth, format, type, pixels, texImage); in _mesa_GetTexSubImage_sw()
747 width, height, depth, format, type, pixels, in _mesa_GetTexSubImage_sw()
752 width, height, depth, format, type, pixels, texImage); in _mesa_GetTexSubImage_sw()
756 width, height, depth, format, type, pixels, texImage); in _mesa_GetTexSubImage_sw()
760 width, height, depth, format, type, pixels, texImage); in _mesa_GetTexSubImage_sw()
763 if (ctx->Pack.BufferObj) { in _mesa_GetTexSubImage_sw()
764 ctx->Driver.UnmapBuffer(ctx, ctx->Pack.BufferObj, MAP_INTERNAL); in _mesa_GetTexSubImage_sw()
778 GLint height, GLint depth, in get_compressed_texsubimage_sw() argument
782 _mesa_get_texture_dimensions(texImage->TexObject->Target); in get_compressed_texsubimage_sw()
787 _mesa_compute_compressed_pixelstore(dimensions, texImage->TexFormat, in get_compressed_texsubimage_sw()
788 width, height, depth, in get_compressed_texsubimage_sw()
789 &ctx->Pack, &store); in get_compressed_texsubimage_sw()
791 if (ctx->Pack.BufferObj) { in get_compressed_texsubimage_sw()
794 ctx->Driver.MapBufferRange(ctx, 0, ctx->Pack.BufferObj->Size, in get_compressed_texsubimage_sw()
795 GL_MAP_WRITE_BIT, ctx->Pack.BufferObj, in get_compressed_texsubimage_sw()
815 ctx->Driver.MapTextureImage(ctx, texImage, zoffset + slice, in get_compressed_texsubimage_sw()
827 ctx->Driver.UnmapTextureImage(ctx, texImage, zoffset + slice); in get_compressed_texsubimage_sw()
830 dest += store.TotalBytesPerRow * (store.TotalRowsPerSlice - in get_compressed_texsubimage_sw()
838 if (ctx->Pack.BufferObj) { in get_compressed_texsubimage_sw()
839 ctx->Driver.UnmapBuffer(ctx, ctx->Pack.BufferObj, MAP_INTERNAL); in get_compressed_texsubimage_sw()
857 return ctx->Extensions.NV_texture_rectangle; in legal_getteximage_target()
860 return ctx->Extensions.EXT_texture_array; in legal_getteximage_target()
862 return ctx->Extensions.ARB_texture_cube_map_array; in legal_getteximage_target()
878 return dsa ? GL_FALSE : ctx->Extensions.ARB_texture_cube_map; in legal_getteximage_target()
909 * Error-check the offset and size arguments to
918 GLsizei width, GLsizei height, GLsizei depth, in dimensions_error_check() argument
949 if (depth < 0) { in dimensions_error_check()
950 _mesa_error(ctx, GL_INVALID_VALUE, "%s(depth = %d)", caller, depth); in dimensions_error_check()
954 /* do special per-target checks */ in dimensions_error_check()
967 /* fall-through */ in dimensions_error_check()
976 if (depth != 1) { in dimensions_error_check()
978 "%s(depth = %d)", caller, depth); in dimensions_error_check()
983 /* Non-array cube maps are special because we have a gl_texture_image in dimensions_error_check()
986 if (zoffset + depth > 6) { in dimensions_error_check()
988 "%s(zoffset + depth = %d)", caller, zoffset + depth); in dimensions_error_check()
998 imageWidth = texImage->Width; in dimensions_error_check()
999 imageHeight = texImage->Height; in dimensions_error_check()
1000 imageDepth = texImage->Depth; in dimensions_error_check()
1019 if (zoffset + depth > imageDepth) { in dimensions_error_check()
1021 "%s(zoffset %d + depth %d > %u)", in dimensions_error_check()
1022 caller, zoffset, depth, imageDepth); in dimensions_error_check()
1030 _mesa_get_format_block_size_3d(texImage->TexFormat, &bw, &bh, &bd); in dimensions_error_check()
1056 (xoffset + width != (GLint) texImage->Width)) { in dimensions_error_check()
1063 (yoffset + height != (GLint) texImage->Height)) { in dimensions_error_check()
1069 if ((depth % bd != 0) && in dimensions_error_check()
1070 (zoffset + depth != (GLint) texImage->Depth)) { in dimensions_error_check()
1072 "%s(depth = %d)", caller, depth); in dimensions_error_check()
1078 if (width == 0 || height == 0 || depth == 0) { in dimensions_error_check()
1090 * Do PBO-related error checking for getting uncompressed images.
1091 * \return true if there was an error (or the GetTexImage is to be a no-op)
1095 GLsizei width, GLsizei height, GLsizei depth, in pbo_error_check() argument
1102 if (!_mesa_validate_pbo_access(dimensions, &ctx->Pack, width, height, depth, in pbo_error_check()
1104 if (ctx->Pack.BufferObj) { in pbo_error_check()
1115 if (ctx->Pack.BufferObj) { in pbo_error_check()
1117 if (_mesa_check_disallowed_mapping(ctx->Pack.BufferObj)) { in pbo_error_check()
1124 if (!ctx->Pack.BufferObj && !pixels) { in pbo_error_check()
1134 * Do teximage-related error checking for getting uncompressed images.
1150 baseFormat = _mesa_get_format_base_format(texImage->TexFormat); in teximage_error_check()
1169 && !ctx->Extensions.ARB_texture_stencil8) { in teximage_error_check()
1195 _mesa_is_format_integer(texImage->TexFormat)) { in teximage_error_check()
1206 * Do common teximage-related error checking for getting uncompressed images.
1213 GLsizei width, GLsizei height, GLsizei depth, in common_error_check() argument
1220 if (texObj->Target == 0) { in common_error_check()
1258 * Do error checking for all (non-compressed) get-texture-image functions.
1265 GLsizei width, GLsizei height, GLsizei depth, in getteximage_error_check() argument
1273 if (common_error_check(ctx, texObj, target, level, width, height, depth, in getteximage_error_check()
1278 if (width == 0 || height == 0 || depth == 0) { in getteximage_error_check()
1285 if (pbo_error_check(ctx, target, width, height, depth, in getteximage_error_check()
1300 * Do error checking for all (non-compressed) get-texture-image functions.
1308 GLsizei width, GLsizei height, GLsizei depth, in gettexsubimage_error_check() argument
1316 if (common_error_check(ctx, texObj, target, level, width, height, depth, in gettexsubimage_error_check()
1323 width, height, depth, caller)) { in gettexsubimage_error_check()
1327 if (pbo_error_check(ctx, target, width, height, depth, in gettexsubimage_error_check()
1342 * Return the width, height and depth of a texture image.
1349 GLsizei *width, GLsizei *height, GLsizei *depth) in get_texture_image_dims() argument
1358 *width = texImage->Width; in get_texture_image_dims()
1359 *height = texImage->Height; in get_texture_image_dims()
1361 *depth = 6; in get_texture_image_dims()
1364 *depth = texImage->Depth; in get_texture_image_dims()
1368 *width = *height = *depth = 0; in get_texture_image_dims()
1374 * Common code for all (uncompressed) get-texture-image functions.
1376 * \param target user-provided target, or 0 for DSA
1389 GLsizei width, GLsizei height, GLint depth, in get_texture_image() argument
1410 caller, texObj->Name, in get_texture_image()
1411 _mesa_get_format_name(texImage->TexFormat), in get_texture_image()
1412 texImage->Width, texImage->Height, in get_texture_image()
1418 imageStride = _mesa_image_image_stride(&ctx->Pack, width, height, in get_texture_image()
1421 numFaces = depth; in get_texture_image()
1423 depth = 1; in get_texture_image()
1434 texImage = texObj->Image[firstFace + i][level]; in get_texture_image()
1437 ctx->Driver.GetTexSubImage(ctx, xoffset, yoffset, zoffset, in get_texture_image()
1438 width, height, depth, in get_texture_image()
1456 GLsizei width, height, depth; in _get_texture_image() local
1467 get_texture_image_dims(texObj, target, level, &width, &height, &depth); in _get_texture_image()
1470 width, height, depth, in _get_texture_image()
1476 0, 0, 0, width, height, depth, in _get_texture_image()
1528 if (!legal_getteximage_target(ctx, texObj->Target, true)) { in _mesa_GetTextureImage()
1533 _get_texture_image(ctx, texObj, texObj->Target, level, format, type, in _mesa_GetTextureImage()
1567 GLsizei width, height, depth; in _mesa_GetMultiTexImageEXT() local
1572 texunit - GL_TEXTURE0, in _mesa_GetMultiTexImageEXT()
1580 if (!legal_getteximage_target(ctx, texObj->Target, true)) { in _mesa_GetMultiTexImageEXT()
1585 get_texture_image_dims(texObj, texObj->Target, level, in _mesa_GetMultiTexImageEXT()
1586 &width, &height, &depth); in _mesa_GetMultiTexImageEXT()
1588 if (getteximage_error_check(ctx, texObj, texObj->Target, level, in _mesa_GetMultiTexImageEXT()
1589 width, height, depth, in _mesa_GetMultiTexImageEXT()
1594 get_texture_image(ctx, texObj, texObj->Target, level, in _mesa_GetMultiTexImageEXT()
1595 0, 0, 0, width, height, depth, in _mesa_GetMultiTexImageEXT()
1603 GLsizei width, GLsizei height, GLsizei depth, in _mesa_GetTextureSubImage() argument
1616 if (!legal_getteximage_target(ctx, texObj->Target, true)) { in _mesa_GetTextureSubImage()
1622 if (gettexsubimage_error_check(ctx, texObj, texObj->Target, level, in _mesa_GetTextureSubImage()
1624 width, height, depth, in _mesa_GetTextureSubImage()
1629 get_texture_image(ctx, texObj, texObj->Target, level, in _mesa_GetTextureSubImage()
1630 xoffset, yoffset, zoffset, width, height, depth, in _mesa_GetTextureSubImage()
1638 * a sub-region of a compressed texture.
1642 GLsizei width, GLsizei height, GLsizei depth, in packed_compressed_size() argument
1649 width, height, depth, in packed_compressed_size()
1652 (st.CopySlices - 1) * st.TotalRowsPerSlice * st.TotalBytesPerRow + in packed_compressed_size()
1654 (st.CopyRowsPerSlice - 1) * st.TotalBytesPerRow + in packed_compressed_size()
1670 GLsizei width, GLsizei height, GLsizei depth, in getcompressedteximage_error_check() argument
1681 if (texObj->Target == 0) { in getcompressedteximage_error_check()
1695 width, height, depth, caller)) { in getcompressedteximage_error_check()
1702 if (!_mesa_is_format_compressed(texImage->TexFormat)) { in getcompressedteximage_error_check()
1709 dimensions = _mesa_get_texture_dimensions(texObj->Target); in getcompressedteximage_error_check()
1711 &ctx->Pack, in getcompressedteximage_error_check()
1717 totalBytes = packed_compressed_size(dimensions, texImage->TexFormat, in getcompressedteximage_error_check()
1718 width, height, depth, in getcompressedteximage_error_check()
1719 &ctx->Pack); in getcompressedteximage_error_check()
1722 if (ctx->Pack.BufferObj) { in getcompressedteximage_error_check()
1725 (GLubyte *) ctx->Pack.BufferObj->Size) { in getcompressedteximage_error_check()
1732 if (_mesa_check_disallowed_mapping(ctx->Pack.BufferObj)) { in getcompressedteximage_error_check()
1747 if (!ctx->Pack.BufferObj && !pixels) { in getcompressedteximage_error_check()
1757 * Common helper for all glGetCompressed-teximage functions.
1764 GLsizei width, GLsizei height, GLint depth, in get_compressed_texture_image() argument
1782 caller, texObj->Name, in get_compressed_texture_image()
1783 _mesa_get_format_name(texImage->TexFormat), in get_compressed_texture_image()
1784 texImage->Width, texImage->Height); in get_compressed_texture_image()
1791 _mesa_compute_compressed_pixelstore(2, texImage->TexFormat, in get_compressed_texture_image()
1792 width, height, depth, in get_compressed_texture_image()
1793 &ctx->Pack, &store); in get_compressed_texture_image()
1797 numFaces = depth; in get_compressed_texture_image()
1799 depth = 1; in get_compressed_texture_image()
1810 texImage = texObj->Image[firstFace + i][level]; in get_compressed_texture_image()
1815 width, height, depth, pixels); in get_compressed_texture_image()
1831 GLsizei width, height, depth; in _mesa_GetnCompressedTexImageARB() local
1842 get_texture_image_dims(texObj, target, level, &width, &height, &depth); in _mesa_GetnCompressedTexImageARB()
1845 0, 0, 0, width, height, depth, in _mesa_GetnCompressedTexImageARB()
1851 0, 0, 0, width, height, depth, in _mesa_GetnCompressedTexImageARB()
1861 GLsizei width, height, depth; in _mesa_GetCompressedTexImage() local
1873 &width, &height, &depth); in _mesa_GetCompressedTexImage()
1876 0, 0, 0, width, height, depth, in _mesa_GetCompressedTexImage()
1882 0, 0, 0, width, height, depth, in _mesa_GetCompressedTexImage()
1893 GLsizei width, height, depth; in _mesa_GetCompressedTextureImageEXT() local
1899 get_texture_image_dims(texObj, texObj->Target, level, in _mesa_GetCompressedTextureImageEXT()
1900 &width, &height, &depth); in _mesa_GetCompressedTextureImageEXT()
1902 if (getcompressedteximage_error_check(ctx, texObj, texObj->Target, level, in _mesa_GetCompressedTextureImageEXT()
1903 0, 0, 0, width, height, depth, in _mesa_GetCompressedTextureImageEXT()
1908 get_compressed_texture_image(ctx, texObj, texObj->Target, level, in _mesa_GetCompressedTextureImageEXT()
1909 0, 0, 0, width, height, depth, in _mesa_GetCompressedTextureImageEXT()
1920 GLsizei width, height, depth; in _mesa_GetCompressedMultiTexImageEXT() local
1924 texunit - GL_TEXTURE0, in _mesa_GetCompressedMultiTexImageEXT()
1928 get_texture_image_dims(texObj, texObj->Target, level, in _mesa_GetCompressedMultiTexImageEXT()
1929 &width, &height, &depth); in _mesa_GetCompressedMultiTexImageEXT()
1931 if (getcompressedteximage_error_check(ctx, texObj, texObj->Target, level, in _mesa_GetCompressedMultiTexImageEXT()
1932 0, 0, 0, width, height, depth, in _mesa_GetCompressedMultiTexImageEXT()
1937 get_compressed_texture_image(ctx, texObj, texObj->Target, level, in _mesa_GetCompressedMultiTexImageEXT()
1938 0, 0, 0, width, height, depth, in _mesa_GetCompressedMultiTexImageEXT()
1949 GLsizei width, height, depth; in _mesa_GetCompressedTextureImage() local
1957 get_texture_image_dims(texObj, texObj->Target, level, in _mesa_GetCompressedTextureImage()
1958 &width, &height, &depth); in _mesa_GetCompressedTextureImage()
1960 if (getcompressedteximage_error_check(ctx, texObj, texObj->Target, level, in _mesa_GetCompressedTextureImage()
1961 0, 0, 0, width, height, depth, in _mesa_GetCompressedTextureImage()
1966 get_compressed_texture_image(ctx, texObj, texObj->Target, level, in _mesa_GetCompressedTextureImage()
1967 0, 0, 0, width, height, depth, in _mesa_GetCompressedTextureImage()
1976 GLsizei height, GLsizei depth, in _mesa_GetCompressedTextureSubImage() argument
1988 if (getcompressedteximage_error_check(ctx, texObj, texObj->Target, level, in _mesa_GetCompressedTextureSubImage()
1990 width, height, depth, in _mesa_GetCompressedTextureSubImage()
1995 get_compressed_texture_image(ctx, texObj, texObj->Target, level, in _mesa_GetCompressedTextureSubImage()
1997 width, height, depth, in _mesa_GetCompressedTextureSubImage()