summaryrefslogtreecommitdiff
path: root/src/mesa/main/texfetch.c
AgeCommit message (Collapse)Author
2011-03-08mesa: add EXT_texture_compression_latcMarek Olšák
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.
2011-02-28mesa: Add RGTC texture store/fetch support.Dave Airlie
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 <airlied@redhat.com>
2011-01-15mesa: minor tweaks in _mesa_set_fetch_functions()Brian Paul
2011-01-15mesa: move declarations before codeBrian Paul
2011-01-16mesa/swrast: implement EXT_texture_sRGB_decodeDave Airlie
This implements the extension by choosing a different set of texture fetch functions when the texture parameter changes. Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-01-11mesa/swrast: handle sRGB FBOs correctly (v2)Dave Airlie
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 <airlied@redhat.com>
2010-12-23mesa: implement new texture format I16Marek Olšák
2010-12-23mesa: implement new texture format L16Marek Olšák
2010-12-23mesa: implement new texture format A16Marek Olšák
2010-12-23mesa: implement new texture format AL44Marek Olšák
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.
2010-12-23mesa: implement new texture format ARGB2101010Marek Olšák
Radeon GPUs do support GL_RGB10_A2.
2010-11-18mesa: pass gl_format to _mesa_init_teximage_fields()Brian Paul
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.
2010-10-01ARB_texture_rg: Add R8, R16, RG88, and RG1616 internal formatsIan Romanick
2010-07-31mesa: Remove unnecessary headers.Vinson Lee
2010-07-30mesa: Include macros.h in files that use symbols from macros.h.Vinson Lee
Don't rely on inclusion of other files that already include macros.h.
2010-07-05mesa: initial support for unnormalized integer texture formatsBrian Paul
As defined by GL_EXT_texture_integer.
2010-05-13mesa: Remove _mesa_pow(), which is always just pow().Eric Anholt
2010-05-09mesa: added unsigned 16-bit/channel tex formatBrian Paul
2010-04-26mesa: start adding GL 3.1 signed normalized texture formatsBrian Paul
2010-04-22mesa: sort texel fetch/store table by format indexBrian Paul
2009-11-23mesa: Initialize variable in _mesa_get_texel_fetch_func.Vinson Lee
2009-11-17Add MESA_FORMAT_XRGB8888_REV.Michel Dänzer
2009-11-16AL1616: Add texel fetch / store routinesIan Romanick
2009-10-29mesa: Add MESA_FORMAT_Z24_X8.José Fonseca
2009-10-21mesa: added MESA_FORMAT_X8_Z24 formatBrian Paul
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.
2009-10-06mesa: added MESA_FORMAT_XRGB8888Brian Paul
2009-10-06mesa: added MESA_FORMAT_SIGNED_RGBA_16 for accum buffersBrian Paul
2009-10-05mesa: remove feature testsBrian Paul
2009-10-05mesa: lift _mesa_set_fetch_functions() calls out of driversBrian Paul
Call it from in the main Mesa glTexImage functions.
2009-10-05mesa: make _mesa_get_texel_fetch_func() staticBrian Paul
2009-10-01mesa: move mesa_set_fetch_functions()Brian Paul
2009-09-30mesa: rename texformat_tmp.h to texfetch_tmp.hBrian Paul
2009-09-30mesa: remove MESA_FORMAT_RGBA4444Brian Paul
Not used by any hardware driver. ARGB4444 and ARGB4444_REV remain.
2009-09-30mesa: remove GLchan-based formats; use hw 8-bit/channel formats insteadBrian Paul
Removed: MESA_FORMAT_RGBA, RGB, ALPHA, LUMINANCE, LUMINANCE_ALPHA, INTENSITY.
2009-09-30mesa: move texel fetch/store into new texfetch.[ch] filesBrian Paul