summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texfetch.c
Commit message (Collapse)AuthorAgeFilesLines
* mesa: add R/RG floating-point formatsMarek Olšák2011-04-151-0/+28
|
* mesa: move sampler state into new gl_sampler_object typeBrian Paul2011-04-101-1/+1
| | | | | | gl_texture_object contains an instance of this type for the regular texture object sampling state. glGenSamplers() generates new instances of gl_sampler_object which can override that state with glBindSampler().
* mesa: implement texstore and texfetch hooks for signed normalized formatsMarek Olšák2011-03-291-15/+71
| | | | | | The snorm texstore functions were all broken. swrast support done except for mipmap generation, but I leave it disabled.
* mesa: add EXT_texture_compression_latcMarek Olšák2011-03-081-0/+28
| | | | | | | | | | | | | | | | | 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-1/+30
| | | | | | | | | 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: minor tweaks in _mesa_set_fetch_functions()Brian Paul2011-01-151-3/+3
|
* mesa: move declarations before codeBrian Paul2011-01-151-1/+2
|
* mesa/swrast: implement EXT_texture_sRGB_decodeDave Airlie2011-01-161-1/+24
| | | | | | | This implements the extension by choosing a different set of texture fetch functions when the texture parameter changes. Signed-off-by: Dave Airlie <[email protected]>
* mesa/swrast: handle sRGB FBOs correctly (v2)Dave Airlie2011-01-111-1/+1
| | | | | | | | | | | | | | | | From reading EXT_texture_sRGB and EXT_framebuffer_sRGB and interactions with FBO I've found that swrast is converting the sRGB values to linear for blending when an sRGB texture is bound as an FBO. According to the spec and further explained in the framebuffer_sRGB spec this behaviour is not required unless the GL_FRAMEBUFFER_SRGB is enabled and the Visual/config exposes GL_FRAMEBUFFER_SRGB_CAPABLE_EXT. This patch fixes swrast to use a separate Fetch call for FBOs bound to SRGB and avoid the conversions. v2: export _mesa_get_texture_dimensions as per Brian's comments. Signed-off-by: Dave Airlie <[email protected]>
* mesa: implement new texture format I16Marek Olšák2010-12-231-0/+7
|
* mesa: implement new texture format L16Marek Olšák2010-12-231-0/+7
|
* mesa: implement new texture format A16Marek Olšák2010-12-231-0/+7
|
* mesa: implement new texture format AL44Marek Olšák2010-12-231-0/+7
| | | | | | Radeon GPUs can do this. R600 can even do render-to-texture. Packing and extracting aren't implemented, but we shouldn't hit them (I think). Tested with swrast, softpipe, and r300g.
* mesa: implement new texture format ARGB2101010Marek Olšák2010-12-231-0/+7
| | | | Radeon GPUs do support GL_RGB10_A2.
* mesa: pass gl_format to _mesa_init_teximage_fields()Brian Paul2010-11-181-9/+3
| | | | | | | | | | | This should prevent the field going unset in the future. See bug http://bugs.freedesktop.org/show_bug.cgi?id=31544 for background. Also remove unneeded calls to clear_teximage_fields(). Finally, call _mesa_set_fetch_functions() from the _mesa_init_teximage_fields() function so callers have one less thing to worry about.
* ARB_texture_rg: Add R8, R16, RG88, and RG1616 internal formatsIan Romanick2010-10-011-0/+42
|
* mesa: Remove unnecessary headers.Vinson Lee2010-07-311-1/+0
|
* mesa: Include macros.h in files that use symbols from macros.h.Vinson Lee2010-07-301-0/+1
| | | | Don't rely on inclusion of other files that already include macros.h.
* mesa: initial support for unnormalized integer texture formatsBrian Paul2010-07-051-0/+50
| | | | As defined by GL_EXT_texture_integer.
* mesa: Remove _mesa_pow(), which is always just pow().Eric Anholt2010-05-131-1/+1
|
* mesa: added unsigned 16-bit/channel tex formatBrian Paul2010-05-091-0/+7
|
* mesa: start adding GL 3.1 signed normalized texture formatsBrian Paul2010-04-261-4/+46
|
* mesa: sort texel fetch/store table by format indexBrian Paul2010-04-221-250/+256
|
* mesa: Initialize variable in _mesa_get_texel_fetch_func.Vinson Lee2009-11-231-1/+1
|
* Add MESA_FORMAT_XRGB8888_REV.Michel Dänzer2009-11-171-0/+7
|
* AL1616: Add texel fetch / store routinesIan Romanick2009-11-161-0/+14
|
* mesa: Add MESA_FORMAT_Z24_X8.José Fonseca2009-10-291-0/+7
|
* mesa: added MESA_FORMAT_X8_Z24 formatBrian Paul2009-10-211-0/+7
| | | | | | 24-bit Z in 32-bit pixel. We could probably use the MESA_FORMAT_S8_Z24 format but this there's a few places where we explicitly don't want stencil. This format may go away at some point in the future.
* mesa: added MESA_FORMAT_XRGB8888Brian Paul2009-10-061-0/+7
|
* mesa: added MESA_FORMAT_SIGNED_RGBA_16 for accum buffersBrian Paul2009-10-061-0/+7
|
* mesa: remove feature testsBrian Paul2009-10-051-4/+0
|
* mesa: lift _mesa_set_fetch_functions() calls out of driversBrian Paul2009-10-051-6/+6
| | | | Call it from in the main Mesa glTexImage functions.
* mesa: make _mesa_get_texel_fetch_func() staticBrian Paul2009-10-051-1/+1
|
* mesa: move mesa_set_fetch_functions()Brian Paul2009-10-011-0/+81
|
* mesa: rename texformat_tmp.h to texfetch_tmp.hBrian Paul2009-09-301-3/+3
|
* mesa: remove MESA_FORMAT_RGBA4444Brian Paul2009-09-301-7/+0
| | | | Not used by any hardware driver. ARGB4444 and ARGB4444_REV remain.
* mesa: remove GLchan-based formats; use hw 8-bit/channel formats insteadBrian Paul2009-09-301-42/+0
| | | | Removed: MESA_FORMAT_RGBA, RGB, ALPHA, LUMINANCE, LUMINANCE_ALPHA, INTENSITY.
* mesa: move texel fetch/store into new texfetch.[ch] filesBrian Paul2009-09-301-0/+616