• Home
  • Raw
  • Download

Lines Matching refs:texImage

81               struct gl_texture_image *texImage)  in get_tex_depth()  argument
96 ctx->Driver.MapTextureImage(ctx, texImage, zoffset + img, in get_tex_depth()
106 _mesa_unpack_float_z_row(texImage->TexFormat, width, src, depthRow); in get_tex_depth()
110 ctx->Driver.UnmapTextureImage(ctx, texImage, zoffset + img); in get_tex_depth()
130 struct gl_texture_image *texImage) in get_tex_depth_stencil() argument
141 ctx->Driver.MapTextureImage(ctx, texImage, zoffset + img, 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()
169 ctx->Driver.UnmapTextureImage(ctx, texImage, zoffset + img); in get_tex_depth_stencil()
186 struct gl_texture_image *texImage) in get_tex_stencil() argument
197 ctx->Driver.MapTextureImage(ctx, texImage, zoffset + img, 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()
232 struct gl_texture_image *texImage) in get_tex_ycbcr() argument
241 ctx->Driver.MapTextureImage(ctx, texImage, zoffset + img, 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()
266 ctx->Driver.UnmapTextureImage(ctx, texImage, zoffset + img); in get_tex_ycbcr()
318 struct gl_texture_image *texImage, in get_tex_rgba_compressed() argument
323 _mesa_get_srgb_format_linear(texImage->TexFormat); 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()
435 struct gl_texture_image *texImage, in get_tex_rgba_uncompressed() argument
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()
475 ctx->Driver.MapTextureImage(ctx, texImage, zoffset + img, in get_tex_rgba_uncompressed()
511 ctx->Driver.UnmapTextureImage(ctx, texImage, img); in get_tex_rgba_uncompressed()
558 ctx->Driver.UnmapTextureImage(ctx, texImage, zoffset + img); in get_tex_rgba_uncompressed()
575 struct gl_texture_image *texImage) 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()
599 pixels, texImage, transferOps); in get_tex_rgba()
606 pixels, texImage, transferOps); in get_tex_rgba()
620 struct gl_texture_image *texImage) 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()
647 const GLuint bpp = _mesa_get_format_bytes(texImage->TexFormat); 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()
698 struct gl_texture_image *texImage) in _mesa_GetTexSubImage_sw() argument
701 _mesa_get_texture_dimensions(texImage->TexObject->Target); in _mesa_GetTexSubImage_sw()
727 if (texImage->TexObject->Target == GL_TEXTURE_1D_ARRAY) { in _mesa_GetTexSubImage_sw()
732 assert(zoffset + depth <= texImage->Height); in _mesa_GetTexSubImage_sw()
734 assert(zoffset + depth <= texImage->Depth); in _mesa_GetTexSubImage_sw()
738 format, type, pixels, texImage)) { in _mesa_GetTexSubImage_sw()
743 width, height, depth, format, type, pixels, texImage); in _mesa_GetTexSubImage_sw()
748 texImage); 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()
775 struct gl_texture_image *texImage, 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()
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()
921 const struct gl_texture_image *texImage; in dimensions_error_check() local
996 texImage = select_tex_image(texObj, target, level, zoffset); in dimensions_error_check()
997 if (texImage) { 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()
1028 if (texImage) { 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()
1070 (zoffset + depth != (GLint) texImage->Depth)) { in dimensions_error_check()
1139 struct gl_texture_image *texImage, in teximage_error_check() argument
1143 assert(texImage); in teximage_error_check()
1150 baseFormat = _mesa_get_format_base_format(texImage->TexFormat); in teximage_error_check()
1195 _mesa_is_format_integer(texImage->TexFormat)) { in teximage_error_check()
1269 struct gl_texture_image *texImage; in getteximage_error_check() local
1290 texImage = select_tex_image(texObj, target, level, 0); in getteximage_error_check()
1291 if (teximage_error_check(ctx, texImage, format, caller)) { in getteximage_error_check()
1312 struct gl_texture_image *texImage; in gettexsubimage_error_check() local
1332 texImage = select_tex_image(texObj, target, level, zoffset); in gettexsubimage_error_check()
1333 if (teximage_error_check(ctx, texImage, format, caller)) { in gettexsubimage_error_check()
1351 const struct gl_texture_image *texImage = NULL; in get_texture_image_dims() local
1354 texImage = _mesa_select_tex_image(texObj, target, level); in get_texture_image_dims()
1357 if (texImage) { in get_texture_image_dims()
1358 *width = texImage->Width; in get_texture_image_dims()
1359 *height = texImage->Height; in get_texture_image_dims()
1364 *depth = texImage->Depth; in get_texture_image_dims()
1393 struct gl_texture_image *texImage; in get_texture_image() local
1399 texImage = select_tex_image(texObj, target, level, zoffset); in get_texture_image()
1400 assert(texImage); /* should have been error checked already */ in get_texture_image()
1402 if (_mesa_is_zero_size_texture(texImage)) { in get_texture_image()
1411 _mesa_get_format_name(texImage->TexFormat), in get_texture_image()
1412 texImage->Width, texImage->Height, in get_texture_image()
1434 texImage = texObj->Image[firstFace + i][level]; in get_texture_image()
1435 assert(texImage); in get_texture_image()
1439 format, type, pixels, texImage); in get_texture_image()
1674 struct gl_texture_image *texImage; in getcompressedteximage_error_check() local
1699 texImage = select_tex_image(texObj, target, level, zoffset); in getcompressedteximage_error_check()
1700 assert(texImage); in getcompressedteximage_error_check()
1702 if (!_mesa_is_format_compressed(texImage->TexFormat)) { in getcompressedteximage_error_check()
1717 totalBytes = packed_compressed_size(dimensions, texImage->TexFormat, in getcompressedteximage_error_check()
1768 struct gl_texture_image *texImage; in get_compressed_texture_image() local
1773 texImage = select_tex_image(texObj, target, level, zoffset); in get_compressed_texture_image()
1774 assert(texImage); /* should have been error checked already */ in get_compressed_texture_image()
1776 if (_mesa_is_zero_size_texture(texImage)) 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()
1810 texImage = texObj->Image[firstFace + i][level]; in get_compressed_texture_image()
1811 assert(texImage); in get_compressed_texture_image()
1813 get_compressed_texsubimage_sw(ctx, texImage, in get_compressed_texture_image()