summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texcompress_s3tc.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa: Report name for missing s3tc functionsJakob Bornecrantz2009-04-091-8/+8
|
* Merge commit 'origin/master' into gallium-0.2Brian Paul2008-12-161-72/+3
|\
| * mesa: move _mesa_dlopen(), etc into separate dlopen.c fileBrian Paul2008-12-151-72/+3
| |
* | mesa: fixes for srgb, new srgb formatsRoland Scheidegger2008-12-121-15/+169
|/ | | | | | | | | | | 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...)
* EXT_texture_sRGB support on i965Zou Nan hai2007-08-021-0/+26
|
* Call _mesa_warning() instead of _mesa_problem() when external s3tc lib not ↵Brian2007-04-211-6/+6
| | | | | | found. The later incorrectly encourages filing a bug (10703, for example).
* fixes for C++ warnings/errorsBrian2007-01-231-1/+1
|
* fix MINGW32 problemsBrian Paul2006-10-311-2/+4
|
* New wrapper functions: _mesa_dlopen(), _mesa_dlsym(), _mesa_dlclose().Brian Paul2006-08-031-37/+98
| | | | Eventually move them into imports.c
* In gl_texture_image, replace ImageStride with an ImageOffsets array.Brian Paul2006-05-201-11/+15
| | | | | | | | | Some hardware lays out 3D mipmaps in a manner that can't be expressed with a simple image stride. The ImageOffsets array is allocated and initialized to typical defaults in the _mesa_init_teximage_fields() function. If needed, a driver will then have to replace these offsets. TexStore and TexelFetch routines updated to use offsets array.
* Fix a number of texture compression issues.Brian Paul2006-05-081-24/+40
| | | | | | | | 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
* Replace MESA_FORMAT_DEPTH_COMPONENT_FLOAT32 with 32-bit integer format.Brian Paul2006-04-061-0/+4
| | | | | | | This allows render to depth texture (we don't support floating pt. Z buffers). Rename MESA_FORMAT_DEPTH_COMPONENT16/32 as MESA_FORMAT_Z16/32. Software fallback for glCopyTexImage now uses integer temporary image instead of float, eliminates a lot of float/int conversions.
* Initial work for GL_EXT_packed_depth_stencil extension.Brian Paul2005-09-281-2/+6
| | | | glReadPixels done, glDrawPixels mostly done.
* make some vars staticBrian Paul2005-09-101-3/+7
|
* added dstRowStride to dxtCompressTexFuncExt;Daniel Borca2004-10-181-5/+5
| | | | | | | | good for subimages, padded images and such. NB: intentionally, this is the last parameter, to avoid breaking the current API! adding a new parameter is not harmful, at worst it will be ignored, since all platforms use a CDECL calling convention.
* add more mess to the dynamic linking systemDaniel Borca2004-10-121-25/+35
|
* Add Roland Scheidegger's S3TC patch. This patch does not implement theEric Anholt2004-10-071-21/+116
| | | | | | | | | | | | | | | | | (patented) S3TC/DXTC algorithms, but adds an option to dlopen a library module providing functions to do so. Because it uses dlopen, it is only enabled if USE_EXTERNAL_DXTN_LIB=1 is defined (which is only in linux-dri config, so far). It adds support for S3TC to several DRI drivers, and adds a DRI config option to force enabling S3TC even if the software compression/decompression is unavailable. This may allow people to use apps that require S3TC even though they don't have a license to implement the patented material themselves, if those apps use precompressed textures. Ideally we would get permission from the current holder of the patents to implement the algorithm in Mesa, at which point the dlopen mess could go away. Until then, this allows some to run applications they couldn't otherwise, and hopefully will provide us with more push to get the final step of getting that permission done.
* Silence gcc 3.4 warnings on ReactOS. Mostly unused var warnings. (patch ↵Brian Paul2004-08-251-0/+9
| | | | 1015696)
* Fix minor warnings found with g++.Brian Paul2004-05-041-4/+4
|
* texture compression: getting warmerDaniel Borca2004-05-041-4/+4
|
* Removed the old teximage code.Brian Paul2004-04-271-0/+441
Moved all code related to specific texture compression modes into new texcompress_s3tc.c and texcompress_fxt1.c files (but not implemented).