Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mesa: add EXT_texture_compression_latc | Marek Olšák | 2011-03-08 | 1 | -0/+40 |
| | | | | | | | | | | | | | | | | | 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 Airlie | 2011-02-28 | 1 | -1/+41 |
| | | | | | | | | | 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: fix mipmap generation for MESA_FORMAT_AL44 | Marek Olšák | 2011-02-16 | 1 | -1/+5 |
| | | | | This was missed when implementing AL44. | ||||
* | mesa: add comment for _mesa_get_srgb_format_linear() | Brian Paul | 2011-01-15 | 1 | -0/+5 |
| | |||||
* | mesa/swrast: implement EXT_texture_sRGB_decode | Dave Airlie | 2011-01-16 | 1 | -0/+37 |
| | | | | | | | 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: do a debug check of _mesa_format_to_type_and_comps() | Brian Paul | 2011-01-11 | 1 | -1/+23 |
| | | | | | | | Make sure that all formats are handled in this function. It's easy to miss this function when adding new pixel formats. See also http://bugs.freedesktop.org/show_bug.cgi?id=31544 | ||||
* | mesa: fix a few format table mistakes, assertions | Brian Paul | 2011-01-11 | 1 | -7/+8 |
| | | | | | | | The BaseFormat field was incorrect for a few R and RG formats. Fix a couple assertions too. NOTE: This is a candidate for the 7.9 and 7.10 branches. | ||||
* | mesa: Update comment about the list of BaseFormats for gl_formats. | Eric Anholt | 2011-01-03 | 1 | -3/+4 |
| | |||||
* | mesa: Assert format is not MESA_FORMAT_COUNT in _mesa_format_to_type_and_comps. | Vinson Lee | 2010-12-23 | 1 | -1/+4 |
| | | | | The case of format being MESA_FORMAT_COUNT should never occur. | ||||
* | mesa: Fix #ifdef typo in _mesa_format_to_type_and_comps. | Vinson Lee | 2010-12-23 | 1 | -1/+1 |
| | | | | According to the comment, the warning should be for debug builds. | ||||
* | mesa: implement new texture format I16 | Marek Olšák | 2010-12-23 | 1 | -0/+10 |
| | |||||
* | mesa: implement new texture format L16 | Marek Olšák | 2010-12-23 | 1 | -0/+10 |
| | |||||
* | mesa: implement new texture format A16 | Marek Olšák | 2010-12-23 | 1 | -0/+10 |
| | |||||
* | mesa: implement new texture format AL44 | Marek Olšák | 2010-12-23 | 1 | -0/+10 |
| | | | | | | 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 ARGB2101010 | Marek Olšák | 2010-12-23 | 1 | -0/+14 |
| | | | | Radeon GPUs do support GL_RGB10_A2. | ||||
* | mesa: Don't assertion fail for _mesa_get_format_name(MESA_FORMAT_NONE) | Eric Anholt | 2010-12-10 | 1 | -1/+0 |
| | |||||
* | mesa: added _mesa_format_image_size64() | Brian Paul | 2010-11-24 | 1 | -0/+30 |
| | |||||
* | mesa: add assertion and update comment in _mesa_format_image_size() | Brian Paul | 2010-11-24 | 1 | -1/+2 |
| | |||||
* | mesa: add missing formats in _mesa_format_to_type_and_comps() | Brian Paul | 2010-11-11 | 1 | -1/+26 |
| | | | | NOTE: this is a candidate for the 7.9 branch | ||||
* | mesa: improve error message | Brian Paul | 2010-11-11 | 1 | -1/+2 |
| | |||||
* | mesa: rename function to _mesa_is_format_integer_color() | Brian Paul | 2010-10-26 | 1 | -1/+1 |
| | | | | Be a bit more clear about its operation. | ||||
* | mesa: fix bug in _mesa_is_format_integer() | Brian Paul | 2010-10-26 | 1 | -2/+5 |
| | | | | | | We only want to return true if it's an integer _color_ format, not a depth and/or stencil format. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=31143 | ||||
* | mesa: _mesa_is_format_integer() function | Brian Paul | 2010-10-23 | 1 | -0/+12 |
| | |||||
* | mesa: Fix misplaced #endif | Ian Romanick | 2010-10-01 | 1 | -1/+1 |
| | | | | | If FEATURE_texture_s3tc is not defined, FXT1 formats would erroneously fall through to the MESA_FORMAT_RGBA_FLOAT32 case. | ||||
* | ARB_texture_rg: Add R8, R16, RG88, and RG1616 internal formats | Ian Romanick | 2010-10-01 | 1 | -0/+80 |
| | |||||
* | mesa: include mfeatures.h in formats.c | Brian Paul | 2010-09-16 | 1 | -0/+1 |
| | | | | | Otherwise, FEATURE_EXT_texture_sRGB was undefined. This is (part of?) the fix for fd.o bug 30177. | ||||
* | mesa: Use the format info to identify packed depth/stencil formats. | Nick Bowler | 2010-08-27 | 1 | -6/+2 |
| | | | | | | | | | | | Due to a misunderstanding of the Z24_X8 and X8_Z24 formats, the earlier patch created depth/stencil wrappers for them. This broke swrast. Use the format info instead, which only identifies Z24_S8 and S8_Z24 as packed depth/stencil. It also has the advantage of being nicer code. Signed-off-by: Nick Bowler <[email protected]> Signed-off-by: Brian Paul <[email protected]> | ||||
* | mesa: Identify packed depth/stencil buffers using the Format field. | Nick Bowler | 2010-08-26 | 1 | -0/+16 |
| | | | | | | | | | | | | | | | | | | | | Intel sometimes uses packed depth/stencil buffers even when only a depth buffer or only a stencil buffer was requested. Common code currently uses the _BaseFormat field to determine whether a depth/stencil wrapper is necessary. But unless the user explicitly requested a packed depth/stencil buffer, the _BaseFormat field does not encode this information, and the required wrappers are not created. The problem was introduced by commit 45e76d2665b38b ("mesa: remove a bunch of gl_renderbuffer fields"), which killed off the _ActualFormat field upon which the decision to create a wrapper used to be made. This patch changes the logic to use the Format field instead, which is more like the old code. Fixes fdo bug 27590. Signed-off-by: Nick Bowler <[email protected]> Signed-off-by: Brian Paul <[email protected]> | ||||
* | mesa: Remove unnecessary headers. | Vinson Lee | 2010-07-29 | 1 | -1/+0 |
| | |||||
* | mesa: initial support for unnormalized integer texture formats | Brian Paul | 2010-07-05 | 1 | -1/+91 |
| | | | | As defined by GL_EXT_texture_integer. | ||||
* | mesa: added unsigned 16-bit/channel tex format | Brian Paul | 2010-05-09 | 1 | -0/+9 |
| | |||||
* | mesa: add missing cases for signed 16-bit formats | Brian Paul | 2010-05-09 | 1 | -0/+13 |
| | |||||
* | mesa: start adding GL 3.1 signed normalized texture formats | Brian Paul | 2010-04-26 | 1 | -0/+58 |
| | |||||
* | mesa: Remove unnecessary header from formats.c. | Vinson Lee | 2010-01-18 | 1 | -1/+0 |
| | |||||
* | mesa: Silence unused variable warning. | Vinson Lee | 2009-12-31 | 1 | -0/+1 |
| | |||||
* | Add MESA_FORMAT_XRGB8888_REV. | Michel Dänzer | 2009-11-17 | 1 | -0/+9 |
| | |||||
* | AL1616: Add formats for GL_LUMINANCE16_ALPHA16 textures | Ian Romanick | 2009-11-16 | 1 | -0/+25 |
| | |||||
* | mesa: fix incorrect approx bits/channel for fxt1 formats | Brian Paul | 2009-11-02 | 1 | -2/+2 |
| | | | | See bug 24806. | ||||
* | mesa: fix incorrect format info for MESA_FORMAT_SL8 | Brian Paul | 2009-10-30 | 1 | -3/+3 |
| | | | | Fixes bugs 24798 and 24801. | ||||
* | mesa: Add MESA_FORMAT_Z24_X8. | José Fonseca | 2009-10-29 | 1 | -0/+14 |
| | |||||
* | mesa: added _mesa_get_format_block_size() | Brian Paul | 2009-10-24 | 1 | -0/+16 |
| | |||||
* | mesa: added _mesa_get_format_name() | Brian Paul | 2009-10-24 | 1 | -0/+75 |
| | |||||
* | mesa: additional comments in format code | Brian Paul | 2009-10-24 | 1 | -1/+28 |
| | |||||
* | mesa: added MESA_FORMAT_X8_Z24 format | Brian Paul | 2009-10-21 | 1 | -0/+13 |
| | | | | | | 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_XRGB8888 | Brian Paul | 2009-10-06 | 1 | -0/+9 |
| | |||||
* | mesa: added case for MESA_FORMAT_SIGNED_RGBA_16 | Brian Paul | 2009-10-06 | 1 | -0/+4 |
| | |||||
* | mesa: added MESA_FORMAT_SIGNED_RGBA_16 for accum buffers | Brian Paul | 2009-10-06 | 1 | -1/+8 |
| | |||||
* | mesa: added _mesa_get_format_color_encoding() | Brian Paul | 2009-10-06 | 1 | -0/+25 |
| | |||||
* | mesa: accept more pnames in _mesa_get_format_bits() | Brian Paul | 2009-10-06 | 1 | -0/+19 |
| | |||||
* | mesa: move _mesa_format_to_type_and_comps() to formats.c | Brian Paul | 2009-10-05 | 1 | -92/+165 |
| |