aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texcompress.c
Commit message (Collapse)AuthorAgeFilesLines
* swrast: s/Data/Map/ in swrast_texture_imageBrian Paul2012-01-241-1/+1
| | | | To indicate that it points to mapped texture memory.
* mesa: add support for GL_OES_compressed_ETC1_RGB8_textureChia-I Wu2011-12-021-0/+22
| | | | | | | | | | | Add support for GL_OES_compressed_ETC1_RGB8_texture to core mesa. There is no driver support yet. Unlike desktop GL compressed texture formats, GLES compressed texture formats usually can only be used with glCompressedTexImage2D. All other gl*Tex*Image* functions are updated to check for that. Reviewed-by: Brian Paul <[email protected]>
* mesa: move gl_texture_image::Data, RowStride, ImageOffsets to swrastBrian Paul2011-10-231-2/+2
| | | | | | Only swrast and the drivers that fall back to swrast need these fields now. This removes the last of the fields related to software rendering from gl_texture_image.
* mesa: Don't expose compressed paletted formats via ↵Ian Romanick2011-09-201-15/+17
| | | | | | | | | | | | GL_{NUM_,}COMPRESSED_TEXTURE_FORMATS Fixes a bug introduced by commit faf5d65. These formats should only be exposed in OpenGL ES 1.x. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Adam Jackson <[email protected]> Cc: Xun Fang <[email protected]> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=40860
* mesa: move gl_texture_image::FetchTexel fields to swrastBrian Paul2011-09-171-4/+5
| | | | | This also involves passing swrast_texture_image instead of gl_texture_image into all the fetch functions.
* mesa: new _mesa_decompress_image() functionBrian Paul2011-09-081-0/+86
| | | | | Use the old texture fetch functions to decompress a whole image. To be used by glGetTexImage().
* gles: Fix glGet(GL_{NUM_,}COMPRESSED_TEXTURE_FORMATS_ARB)Adam Jackson2011-09-081-1/+2
| | | | | | | We'd still accept the GL_PALETTE[48]_* formats in glCompressedTexImage2D, but they wouldn't be listed if you queried whether they were supported. Signed-off-by: Adam Jackson <[email protected]>
* mesa: Make _mesa_get_compressed_formats match the texture compression specsIan Romanick2011-07-251-27/+90
| | | | | | | | | | | The implementation deviated slightly from the GL_EXT_texture_sRGB spec and from other implementations. A giant comment block was added to justify the somewhat odd behavior of this function. In addition, the interface had unnecessary cruft. The 'all' parameter was false at all callers, so it has been removed. Reviewed-by: Brian Paul <[email protected]>
* mesa: Add utility function to get base format from a GL compressed formatIan Romanick2011-07-251-0/+88
| | | | Reviewed-by: Brian Paul <[email protected]>
* mesa: add ATI_texture_compression_3dcMarek Olšák2011-03-081-0/+1
| | | | | | | LUMINANCE_ALPHA_LATC2 = LUMINANCE_ALPHA_3DC, so this is easy. Note that there is no specification for 3DC, just a few white papers from ATI.
* mesa: add EXT_texture_compression_latcMarek Olšák2011-03-081-0/+18
| | | | | | | | | | | | | | | | | The encoding/decoding algorithms are shared with RGTC. Thanks to some magic with the base format, the RGTC texstore functions work for LATC too. swrast passes the related piglit tests besides two things: - The alpha channel is wrong (it's always 1), however the incorrect alpha channel makes some other tests fail too, so I guess it's unrelated to LATC. - Signed LATC fetches aren't correct yet (signed values are clamped to [0,1]), however RGTC has the same problem. Further testing (with other of my patches) shows that hardware drivers and softpipe work. BTW, ETQW uses this extension.
* mesa: Add RGTC texture store/fetch support.Dave Airlie2011-02-281-0/+20
| | | | | | | | | This adds support for the RGTC unsigned and signed texture storage and fetch methods. the code is a port of the DXT5 alpha compression code. Signed-off-by: Dave Airlie <[email protected]>
* mesa: Directly include mfeatures.h in files that perform feature tests.Vinson Lee2011-01-071-0/+1
|
* mesa: Include mtypes.h in files that use gl_context struct.Vinson Lee2011-01-051-0/+1
| | | | | | Directly include mtypes.h if a file uses a gl_context struct. This allows future removal of headers that are not strictly necessary but indirectly include mtypes.h for a file.
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-2/+2
|
* mesa: Remove unnecessary headers.Vinson Lee2010-07-311-1/+0
|
* mesa: Optimize get.c by using a table-driven approachKristian Høgsberg2010-05-111-0/+18
|
* mesa: Remove unnecessary headers from texcompress.c.Vinson Lee2010-01-181-3/+0
|
* mesa: minor code movementBrian Paul2009-10-281-32/+30
|
* Merge branch 'texformat-rework'Brian Paul2009-10-281-210/+33
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/radeon/radeon_fbo.c src/mesa/drivers/dri/s3v/s3v_tex.c src/mesa/drivers/dri/s3v/s3v_xmesa.c src/mesa/drivers/dri/trident/trident_context.c src/mesa/main/debug.c src/mesa/main/mipmap.c src/mesa/main/texformat.c src/mesa/main/texgetimage.c
| * mesa: remove _mesa_compressed_row_stride()Brian Paul2009-10-251-15/+0
| |
| * mesa: clean-up, simplify compressed texture size checkingBrian Paul2009-10-251-43/+18
| |
| * mesa: remove _mesa_compressed_texture_size()Brian Paul2009-10-241-24/+0
| | | | | | | | Use _mesa_format_image_size() instead.
| * mesa: simplify _mesa_compressed_row_stride(), _mesa_compressed_image_address()Brian Paul2009-10-241-76/+15
| | | | | | | | | | _mesa_compressed_row_stride() can go away soon. _mesa_compressed_image_address() can be generalized and moved to formats.c
| * mesa: s/GLuint/gl_format/Brian Paul2009-10-241-3/+3
| |
| * mesa: don't include texformat.hBrian Paul2009-10-051-1/+0
| |
| * mesa: simplify _mesa_compressed_texture_size()Brian Paul2009-10-011-60/+9
| |
* | mesa: added _mesa_compressed_format_to_glenum()Brian Paul2009-10-231-0/+50
|/ | | | | | Maps a compressed MESA_FORMAT_x to correspding GLenum. Needed for querying a texture's actual format when a generic format was originally requested.
* mesa: merge gallium-0.2 into gallium-master-mergeBrian Paul2009-02-091-0/+56
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'origin/gallium-0.2' into gallium-master-merge Conflicts: Makefile docs/relnotes-7.4.html docs/relnotes.html src/mesa/drivers/dri/i965/brw_wm.h src/mesa/main/imports.c src/mesa/main/mtypes.h src/mesa/main/texcompress.c src/mesa/main/texenvprogram.c src/mesa/main/version.h src/mesa/vbo/vbo_exec_api.c src/mesa/vbo/vbo_save_draw.c
| * mesa: fixes for srgb, new srgb formatsRoland Scheidegger2008-12-121-13/+58
| | | | | | | | | | | | | | | | | | | | | | add some more srgb texture formats, including compressed ones various fixes relating to srgb formats issues: _mesa_get_teximage is completely broken for srgb textures, both for non-compressed ones (swizzling) and compressed ones (shouldn't do standard-to-linear conversion) texelFetch function may be broken for little or big endian (or both...)
| * Merge commit 'origin/master' into gallium-0.2Alan Hourihane2008-12-081-6/+0
| |\ | | | | | | | | | | | | | | | Conflicts: progs/glsl/Makefile
| * | mesa: add some #if FEATURE_x testsBrian Paul2008-06-121-0/+17
| | |
* | | Make GL_ARB_texture_compression mandatoryIan Romanick2009-01-281-48/+46
| |/ |/| | | | | Signed-off-by: Ian Romanick <[email protected]>
* | mesa: remove unneeded compressed texure size checksPhillip Klaus Krause2008-11-281-6/+0
|/
* Move mipmap generation functions, texture scaling functions into newBrian Paul2006-09-291-0/+1
| | | | mipmap.c file.
* more work for GL_EXT_texture_sRGB.Brian Paul2006-08-041-0/+13
|
* Add a new 'all' parameter to _mesa_get_compressed_formats() to indicate whetherBrian Paul2006-05-091-11/+20
| | | | | | | all formats or just those without restrictions/limitations should be returned. We want all when validating the internalFormat parameter to glCompressedTexImage2D but only want unrestricted formats when handling the GL_COMPRESSED_TEXTURE_FORMATS query.
* More updates for texture compression.Brian Paul2006-05-081-0/+47
| | | | | | Added _mesa_compressed_texture_size_glenum() for validating the imageSize parameter to glCompressedTex[Sub]Image1/2/3() which does _not_ call ctx->Driver.CompressedTextureSize() - since that could return a padded size.
* Fix a number of texture compression issues.Brian Paul2006-05-081-40/+30
| | | | | | | | Pass the MESA_FORMAT_* token to the _mesa_compressed_row_stride(), _mesa_compressed_texture_size() and _mesa_compressed_image_address() functions since we want to use the driver-chosen format, not the user's internalFormat hint. Consolidate code related to choosing the texture format in texstoree.c
* mesa-main-0-NULL.patch from Jeff MuizelaarKeith Whitwell2005-02-111-1/+1
|
* Silence gcc 3.4 warnings on ReactOS. Mostly unused var warnings. (patch ↵Brian Paul2004-08-251-0/+1
| | | | 1015696)
* Removed the old teximage code.Brian Paul2004-04-271-48/+27
| | | | | Moved all code related to specific texture compression modes into new texcompress_s3tc.c and texcompress_fxt1.c files (but not implemented).
* more texture compressionDaniel Borca2003-11-211-19/+46
|
* small fixes wrt texture handlingDaniel Borca2003-11-031-5/+5
|
* texture compressionDaniel Borca2003-10-291-0/+17
|
* Merge Jose's documentation and core Mesa changes from embedded branchKeith Whitwell2003-07-171-15/+29
|
* some texture compression odds & endsBrian Paul2003-04-031-6/+67
|
* add 2, not 4, in _mesa_get_compressed_formats()Brian Paul2003-03-241-4/+4
|
* Header file clean-up:Brian Paul2002-10-241-2/+2
| | | | | | | | 1. Remove all.h and PC_HEADER junk. 2. Rolled mem.c and mem.h into imports.c and imports.h 3. Include imports.h instead of mem.h Restore _mesa_create/initialize_context() to be like they were in 4.0.4 New wrappers for a few std C functions: _mesa_atoi(), _mesa_strstr(), etc.
* implement auto mipmap generation for compressed texturesBrian Paul2002-10-181-10/+6
|