summaryrefslogtreecommitdiff
path: root/src/mesa/main/texcompress_s3tc.c
AgeCommit message (Collapse)Author
2009-10-29mesa/main: Make FEATURE_texture_s3tc follow feature conventions.Chia-I Wu
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-05mesa: don't include texformat.hBrian Paul
2009-09-30mesa: remove gl_texture_formatBrian Paul
2009-09-30mesa: replace gl_texture_format with gl_formatBrian Paul
Now gl_texture_image::TexFormat is a simple MESA_FORMAT_x enum. ctx->Driver.ChooseTexture format also returns a MESA_FORMAT_x. gl_texture_format will go away next.
2009-09-27mesa: update commentsBrian Paul
2009-09-27mesa: remove unused gl_texture_format fieldsBrian Paul
2009-09-27mesa: NULL-out unused texformat field initializersBrian Paul
2009-09-27mesa: make some s3tc/fxt1 functions publicBrian Paul
2009-04-09mesa: Report name for missing s3tc functionsJakob Bornecrantz
2008-12-16Merge commit 'origin/master' into gallium-0.2Brian Paul
2008-12-15mesa: move _mesa_dlopen(), etc into separate dlopen.c fileBrian Paul
2008-12-12mesa: fixes for srgb, new srgb formatsRoland Scheidegger
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...)
2007-08-02 EXT_texture_sRGB support on i965Zou Nan hai
2007-04-21Call _mesa_warning() instead of _mesa_problem() when external s3tc lib not ↵Brian
found. The later incorrectly encourages filing a bug (10703, for example).
2007-01-23fixes for C++ warnings/errorsBrian
2006-10-31fix MINGW32 problemsBrian Paul
2006-08-03New wrapper functions: _mesa_dlopen(), _mesa_dlsym(), _mesa_dlclose().Brian Paul
Eventually move them into imports.c
2006-05-20In gl_texture_image, replace ImageStride with an ImageOffsets array.Brian Paul
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.
2006-05-08Fix a number of texture compression issues.Brian Paul
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
2006-04-06Replace MESA_FORMAT_DEPTH_COMPONENT_FLOAT32 with 32-bit integer format.Brian Paul
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.
2005-09-28Initial work for GL_EXT_packed_depth_stencil extension.Brian Paul
glReadPixels done, glDrawPixels mostly done.
2005-09-10make some vars staticBrian Paul
2004-10-18added dstRowStride to dxtCompressTexFuncExt;Daniel Borca
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.
2004-10-12add more mess to the dynamic linking systemDaniel Borca
2004-10-07Add Roland Scheidegger's S3TC patch. This patch does not implement theEric Anholt
(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.
2004-08-25Silence gcc 3.4 warnings on ReactOS. Mostly unused var warnings. (patch ↵Brian Paul
1015696)
2004-05-04Fix minor warnings found with g++.Brian Paul
2004-05-04texture compression: getting warmerDaniel Borca
2004-04-27Removed the old teximage code.Brian Paul
Moved all code related to specific texture compression modes into new texcompress_s3tc.c and texcompress_fxt1.c files (but not implemented).