summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texformat.c
Commit message (Collapse)AuthorAgeFilesLines
* Unify ARB_depth_texture and SGIX_depth_textureIan Romanick2008-10-011-5/+4
| | | | | | | The ARB extension is a superset of the older SGIX extension. Any hardware that can support the SGIX version can also support the ARB version. In Mesa, any driver that supports one also supports the other. This unification just simplifies some bits of code.
* mesa: Silence compiler warnings on Windows.Michal Krol2008-09-211-2/+2
|
* move _mesa_format_to_type_and_comps() to texformat.cBrian2008-09-211-0/+171
| | | | (cherry picked from commit 42eac65da45fb58bffdf94ab8f9860d8cee5b256)
* mesa: refactor: move #define FEATURE flags into new mfeatures.h fileKeith Whitwell2008-09-211-8/+18
| | | | | | | | | | | | | Also, check the FEATURE flags in many places. (cherry picked from commit 40d1a40f294f1ed2dacfad6f5498322fc08cc2d1) Conflicts: src/mesa/main/config.h src/mesa/main/context.c src/mesa/main/texobj.c src/mesa/main/texstate.c src/mesa/main/texstore.c
* mesa: Support for MESA_FORMAT_S8_Z24 textureJakob Bornecrantz2008-09-041-0/+24
| | | | cherry-picked from gallium-0.1
* Initial work for GL_EXT_texture_sRGB.Brian Paul2006-08-031-0/+168
|
* Replace MESA_FORMAT_DEPTH_COMPONENT_FLOAT32 with 32-bit integer format.Brian Paul2006-04-061-51/+57
| | | | | | | 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.
* plug in _mesa_texstore_z24_s8()Brian Paul2005-10-011-1/+1
|
* Initial work for GL_EXT_packed_depth_stencil extension.Brian Paul2005-09-281-0/+76
| | | | glReadPixels done, glDrawPixels mostly done.
* Remove a bunch texel fetch functions that can be handled by the newBrian Paul2005-09-151-123/+130
| | | | adaptor functions.
* check for either GL_ARB_depth_texture or GL_SGIX_depth_texture in a few placesBrian Paul2005-09-081-3/+4
|
* Major check-in of changes for GL_EXT_framebuffer_object extension.Brian Paul2005-05-041-9/+58
| | | | | | | Main driver impacts: - new code for creating the Mesa GLframebuffer - new span/pixel read/write code Some drivers not yet updated/tested.
* Silence gcc 3.4 warnings on ReactOS. Mostly unused var warnings. (patch ↵Brian Paul2004-08-251-0/+2
| | | | 1015696)
* Another pass at implementing byte-swapped texture formats.Brian Paul2004-05-131-55/+58
| | | | | More code re-use this time. Most formats now tested/debugged with new packedpixels.c test.
* yank bgr233 texformat. minor comment updates.Brian Paul2004-05-121-22/+0
|
* Added big-endian texture formats.Brian Paul2004-05-121-196/+180
| | | | Moved CI->RGBA palette lookup into texel fetch function.
* Removed the old teximage code.Brian Paul2004-04-271-183/+0
| | | | | Moved all code related to specific texture compression modes into new texcompress_s3tc.c and texcompress_fxt1.c files (but not implemented).
* transfer routines for compressed formats (avoid SEGFAULT, also prepare for ↵Daniel Borca2004-04-271-6/+6
| | | | external packers)
* s,CHAN_BITS/8,sizeof(GLchan),Brian Paul2004-04-221-7/+7
|
* fix some include file glitchesBrian Paul2004-04-221-1/+1
|
* New glTexImage code.Brian Paul2004-04-221-223/+526
| | | | | | | | The gl_texture_format struct now has a StoreTexImageFunc that's called by glTex[Sub]Image[123]D to convert the user's texture data into the specific texture format layout. Now it's much easier to add new texture formats (like the 16/32-bit floating point formats). The texutil.[ch] and texutil_tmp.h files are obsolete.
* Some initial RGB and RGBA floating point texture formats.Brian Paul2004-01-241-7/+101
|
* Initial support for floating point and signed texture formats.Brian Paul2004-01-231-102/+207
| | | | | | | New "FetchTexelFuncF()" function returns texels in floating point format. Only used for depth component images at this time. Changed original FetchTexelFunc to return GLchan instead of GLvoid, removing need for a bunch of ugly casts.
* more texture compressionDaniel Borca2003-11-211-2/+16
|
* texture compressionDaniel Borca2003-10-291-2/+52
|
* Merge Jose's documentation and core Mesa changes from embedded branchKeith Whitwell2003-07-171-23/+57
|
* some texture compression odds & endsBrian Paul2003-04-031-3/+94
|
* Killed mmath.[ch]. Moved low-level functions/assembly code into imports.[ch]Brian Paul2003-03-011-4/+3
| | | | | Moved type conversion and interpolation macros into macros.h Updated all the files that used to include mmath.h
* updated email addressesBrian Paul2002-10-291-2/+2
|
* Header file clean-up:Brian Paul2002-10-241-6/+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.
* new texture compression infrastructureBrian Paul2002-09-271-48/+3
|
* updates from 4.0.4 (MESA_ycbcr_texture, APPLE_client_storage, etc)Brian Paul2002-09-211-1/+45
|
* Overhaul of glRead/DrawBuffer() code. Now, swrast->Driver.SetBuffer()Brian Paul2002-07-091-2/+1
| | | | | indicates the read AND draw color buffer for all software rasterization. Lots of related clean-ups. See RELNOTES-4.1 for details.
* Applied Matt Sealey's patch to remove/isolate all stdio.h function calls.Brian Paul2002-06-291-2/+2
| | | | Instead of mstdio.[ch], use imports.[ch] to isolate these functions.
* Added ctx parameter to _mesa_debug()Brian Paul2002-06-151-3/+150
| | | | | | Added _mesa_printf() Updated SetDrawBuffer() function in all drivers (ala 4.0.3) Import 4.0.3/DRI changes.
* Enable GL_ARB_texture_compression for XMesa/GLX driver. TextureBrian Paul2001-06-151-9/+86
| | | | | compression isn't really implmented. Just updated glTexImageXD() to accept compressed internal format tokens.
* Fixed a texture conversion problem: sometimes need to produce an intermediateBrian Paul2001-04-201-22/+22
| | | | | texture image in the base internal format between user->Mesa format conversion. See comments in texstore.c
* replaced IntFormat GL_BGRA with GL_RGBA, fixes problems calling ↵Brian Paul2001-04-041-4/+4
| | | | _mesa_base_texture_format()
* More texture image changes.Brian Paul2001-04-041-39/+26
| | | | | | | | | | | | 1. Added ctx->Driver.ChooseTextureFormat() function. Examines user's internalFormat, format, type params and returns a gl_texture_format. 2. _mesa_store_teximage[123]d() calls ctx->Driver.ChooseTextureFormat(), allocates storage and transfers the image into the desired format. 3. _mesa_transfer_teximage() now takes a gl_texture_format to describe the destination format. Any combination of input format/type and output gl_texture_format is accepted. Uses optimized _mesa_convert_- texsubimage[123]d() functions when possible. 3. DRI driver's TexImage[123]D functions should be a lot simpler now.
* Remove all traces of CULL_MASK_ACTIVE.Gareth Hughes2001-03-301-4/+4
|
* More texture format updates. Drivers now need only plug an appropriateGareth Hughes2001-03-281-71/+64
| | | | format into texImage->TexFormat, the rest is handled by core Mesa.
* fixed RGBA/RGB typoBrian Paul2001-03-271-2/+2
|
* Updates required for DRI drivers on mesa-3-5-branch.Gareth Hughes2001-03-271-36/+63
|
* Remove old code, fix a few comments.Gareth Hughes2001-03-181-6/+5
|
* - Port 3.4 texture utils, texture format work to 3.5 (including newGareth Hughes2001-03-181-0/+566
FetchTexel routines). - Initial hooks for GL_EXT_texture_filter_anisotropic.