Lines Matching refs:texImage
84 struct gl_texture_image *texImage) in get_tex_depth() argument
99 st_MapTextureImage(ctx, texImage, zoffset + img, in get_tex_depth()
109 _mesa_unpack_float_z_row(texImage->TexFormat, width, src, depthRow); in get_tex_depth()
113 st_UnmapTextureImage(ctx, texImage, zoffset + img); in get_tex_depth()
133 struct gl_texture_image *texImage) in get_tex_depth_stencil() argument
144 st_MapTextureImage(ctx, texImage, zoffset + img, in get_tex_depth_stencil()
156 _mesa_unpack_uint_24_8_depth_stencil_row(texImage->TexFormat, in get_tex_depth_stencil()
160 _mesa_unpack_float_32_uint_24_8_depth_stencil_row(texImage->TexFormat, in get_tex_depth_stencil()
172 st_UnmapTextureImage(ctx, texImage, zoffset + img); in get_tex_depth_stencil()
189 struct gl_texture_image *texImage) in get_tex_stencil() argument
200 st_MapTextureImage(ctx, texImage, zoffset + img, in get_tex_stencil()
211 _mesa_unpack_ubyte_stencil_row(texImage->TexFormat, in get_tex_stencil()
217 st_UnmapTextureImage(ctx, texImage, zoffset + img); in get_tex_stencil()
235 struct gl_texture_image *texImage) in get_tex_ycbcr() argument
244 st_MapTextureImage(ctx, texImage, zoffset + img, in get_tex_ycbcr()
257 if ((texImage->TexFormat == MESA_FORMAT_YCBCR in get_tex_ycbcr()
259 (texImage->TexFormat == MESA_FORMAT_YCBCR_REV in get_tex_ycbcr()
269 st_UnmapTextureImage(ctx, texImage, zoffset + img); in get_tex_ycbcr()
321 struct gl_texture_image *texImage, in get_tex_rgba_compressed() argument
326 _mesa_get_srgb_format_linear(texImage->TexFormat); in get_tex_rgba_compressed()
349 st_MapTextureImage(ctx, texImage, zoffset + slice, in get_tex_rgba_compressed()
357 st_UnmapTextureImage(ctx, texImage, zoffset + slice); in get_tex_rgba_compressed()
438 struct gl_texture_image *texImage, in get_tex_rgba_uncompressed() argument
443 _mesa_get_srgb_format_linear(texImage->TexFormat); in get_tex_rgba_uncompressed()
452 needsRebase = teximage_needs_rebase(texFormat, texImage->_BaseFormat, false, in get_tex_rgba_uncompressed()
478 st_MapTextureImage(ctx, texImage, zoffset + img, in get_tex_rgba_uncompressed()
514 st_UnmapTextureImage(ctx, texImage, img); in get_tex_rgba_uncompressed()
561 st_UnmapTextureImage(ctx, texImage, zoffset + img); in get_tex_rgba_uncompressed()
578 struct gl_texture_image *texImage) in get_tex_rgba() argument
580 const GLenum dataType = _mesa_get_format_datatype(texImage->TexFormat); in get_tex_rgba()
597 if (_mesa_is_format_compressed(texImage->TexFormat)) { in get_tex_rgba()
602 pixels, texImage, transferOps); in get_tex_rgba()
609 pixels, texImage, transferOps); in get_tex_rgba()
623 struct gl_texture_image *texImage) in get_tex_memcpy() argument
625 const GLenum target = texImage->TexObject->Target; in get_tex_memcpy()
627 GLenum texBaseFormat = _mesa_get_format_base_format(texImage->TexFormat); in get_tex_memcpy()
638 texBaseFormat == texImage->_BaseFormat) { in get_tex_memcpy()
639 memCopy = _mesa_format_matches_format_and_type(texImage->TexFormat, in get_tex_memcpy()
650 const GLuint bpp = _mesa_get_format_bytes(texImage->TexFormat); in get_tex_memcpy()
661 st_MapTextureImage(ctx, texImage, zoffset, in get_tex_memcpy()
679 st_UnmapTextureImage(ctx, texImage, zoffset); in get_tex_memcpy()
699 struct gl_texture_image *texImage) in _mesa_GetTexSubImage_sw() argument
702 _mesa_get_texture_dimensions(texImage->TexObject->Target); in _mesa_GetTexSubImage_sw()
728 if (texImage->TexObject->Target == GL_TEXTURE_1D_ARRAY) { in _mesa_GetTexSubImage_sw()
733 assert(zoffset + depth <= texImage->Height); in _mesa_GetTexSubImage_sw()
735 assert(zoffset + depth <= texImage->Depth); in _mesa_GetTexSubImage_sw()
739 format, type, pixels, texImage)) { in _mesa_GetTexSubImage_sw()
744 width, height, depth, format, type, pixels, texImage); in _mesa_GetTexSubImage_sw()
749 texImage); in _mesa_GetTexSubImage_sw()
753 width, height, depth, format, type, pixels, texImage); in _mesa_GetTexSubImage_sw()
757 width, height, depth, format, type, pixels, texImage); in _mesa_GetTexSubImage_sw()
761 width, height, depth, format, type, pixels, texImage); in _mesa_GetTexSubImage_sw()
776 struct gl_texture_image *texImage, in get_compressed_texsubimage_sw() argument
783 _mesa_get_texture_dimensions(texImage->TexObject->Target); in get_compressed_texsubimage_sw()
788 _mesa_compute_compressed_pixelstore(dimensions, texImage->TexFormat, in get_compressed_texsubimage_sw()
816 st_MapTextureImage(ctx, texImage, zoffset + slice, in get_compressed_texsubimage_sw()
828 st_UnmapTextureImage(ctx, texImage, zoffset + slice); in get_compressed_texsubimage_sw()
922 const struct gl_texture_image *texImage; in dimensions_error_check() local
997 texImage = select_tex_image(texObj, target, level, zoffset); in dimensions_error_check()
998 if (texImage) { in dimensions_error_check()
999 imageWidth = texImage->Width; in dimensions_error_check()
1000 imageHeight = texImage->Height; in dimensions_error_check()
1001 imageDepth = texImage->Depth; in dimensions_error_check()
1029 if (texImage) { in dimensions_error_check()
1031 _mesa_get_format_block_size_3d(texImage->TexFormat, &bw, &bh, &bd); in dimensions_error_check()
1057 (xoffset + width != (GLint) texImage->Width)) { in dimensions_error_check()
1064 (yoffset + height != (GLint) texImage->Height)) { in dimensions_error_check()
1071 (zoffset + depth != (GLint) texImage->Depth)) { in dimensions_error_check()
1140 struct gl_texture_image *texImage, in teximage_error_check() argument
1144 assert(texImage); in teximage_error_check()
1151 baseFormat = _mesa_get_format_base_format(texImage->TexFormat); in teximage_error_check()
1196 _mesa_is_format_integer(texImage->TexFormat)) { in teximage_error_check()
1270 struct gl_texture_image *texImage; in getteximage_error_check() local
1291 texImage = select_tex_image(texObj, target, level, 0); in getteximage_error_check()
1292 if (teximage_error_check(ctx, texImage, format, caller)) { in getteximage_error_check()
1313 struct gl_texture_image *texImage; in gettexsubimage_error_check() local
1333 texImage = select_tex_image(texObj, target, level, zoffset); in gettexsubimage_error_check()
1334 if (teximage_error_check(ctx, texImage, format, caller)) { in gettexsubimage_error_check()
1352 const struct gl_texture_image *texImage = NULL; in get_texture_image_dims() local
1355 texImage = _mesa_select_tex_image(texObj, target, level); in get_texture_image_dims()
1358 if (texImage) { in get_texture_image_dims()
1359 *width = texImage->Width; in get_texture_image_dims()
1360 *height = texImage->Height; in get_texture_image_dims()
1365 *depth = texImage->Depth; in get_texture_image_dims()
1394 struct gl_texture_image *texImage; in get_texture_image() local
1400 texImage = select_tex_image(texObj, target, level, zoffset); in get_texture_image()
1401 assert(texImage); /* should have been error checked already */ in get_texture_image()
1403 if (_mesa_is_zero_size_texture(texImage)) { in get_texture_image()
1412 _mesa_get_format_name(texImage->TexFormat), in get_texture_image()
1413 texImage->Width, texImage->Height, in get_texture_image()
1438 texImage = texObj->Image[firstFace + i][level]; in get_texture_image()
1439 assert(texImage); in get_texture_image()
1443 format, type, pixels, texImage); in get_texture_image()
1678 struct gl_texture_image *texImage; in getcompressedteximage_error_check() local
1703 texImage = select_tex_image(texObj, target, level, zoffset); in getcompressedteximage_error_check()
1704 assert(texImage); in getcompressedteximage_error_check()
1706 if (!_mesa_is_format_compressed(texImage->TexFormat)) { in getcompressedteximage_error_check()
1721 totalBytes = packed_compressed_size(dimensions, texImage->TexFormat, in getcompressedteximage_error_check()
1772 struct gl_texture_image *texImage; in get_compressed_texture_image() local
1777 texImage = select_tex_image(texObj, target, level, zoffset); in get_compressed_texture_image()
1778 assert(texImage); /* should have been error checked already */ in get_compressed_texture_image()
1780 if (_mesa_is_zero_size_texture(texImage)) in get_compressed_texture_image()
1787 _mesa_get_format_name(texImage->TexFormat), in get_compressed_texture_image()
1788 texImage->Width, texImage->Height); in get_compressed_texture_image()
1795 _mesa_compute_compressed_pixelstore(2, texImage->TexFormat, in get_compressed_texture_image()
1817 texImage = texObj->Image[firstFace + i][level]; in get_compressed_texture_image()
1818 assert(texImage); in get_compressed_texture_image()
1820 get_compressed_texsubimage_sw(ctx, texImage, in get_compressed_texture_image()