summaryrefslogtreecommitdiff
path: root/src/mesa/main/formats.c
AgeCommit message (Collapse)Author
2010-11-24mesa: added _mesa_format_image_size64()Brian Paul
2010-11-24mesa: add assertion and update comment in _mesa_format_image_size()Brian Paul
2010-11-11mesa: add missing formats in _mesa_format_to_type_and_comps()Brian Paul
NOTE: this is a candidate for the 7.9 branch
2010-11-11mesa: improve error messageBrian Paul
2010-10-26mesa: rename function to _mesa_is_format_integer_color()Brian Paul
Be a bit more clear about its operation.
2010-10-26mesa: fix bug in _mesa_is_format_integer()Brian Paul
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
2010-10-23mesa: _mesa_is_format_integer() functionBrian Paul
2010-10-01mesa: Fix misplaced #endifIan Romanick
If FEATURE_texture_s3tc is not defined, FXT1 formats would erroneously fall through to the MESA_FORMAT_RGBA_FLOAT32 case.
2010-10-01ARB_texture_rg: Add R8, R16, RG88, and RG1616 internal formatsIan Romanick
2010-09-16mesa: include mfeatures.h in formats.cBrian Paul
Otherwise, FEATURE_EXT_texture_sRGB was undefined. This is (part of?) the fix for fd.o bug 30177.
2010-08-27mesa: Use the format info to identify packed depth/stencil formats.Nick Bowler
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 <nbowler@draconx.ca> Signed-off-by: Brian Paul <brianp@vmware.com>
2010-08-26mesa: Identify packed depth/stencil buffers using the Format field.Nick Bowler
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 <nbowler@draconx.ca> Signed-off-by: Brian Paul <brianp@vmware.com>
2010-07-29mesa: Remove unnecessary headers.Vinson Lee
2010-07-05mesa: initial support for unnormalized integer texture formatsBrian Paul
As defined by GL_EXT_texture_integer.
2010-05-09mesa: added unsigned 16-bit/channel tex formatBrian Paul
2010-05-09mesa: add missing cases for signed 16-bit formatsBrian Paul
2010-04-26mesa: start adding GL 3.1 signed normalized texture formatsBrian Paul
2010-01-18mesa: Remove unnecessary header from formats.c.Vinson Lee
2009-12-31mesa: Silence unused variable warning.Vinson Lee
2009-11-17Add MESA_FORMAT_XRGB8888_REV.Michel Dänzer
2009-11-16AL1616: Add formats for GL_LUMINANCE16_ALPHA16 texturesIan Romanick
2009-11-02mesa: fix incorrect approx bits/channel for fxt1 formatsBrian Paul
See bug 24806.
2009-10-30mesa: fix incorrect format info for MESA_FORMAT_SL8Brian Paul
Fixes bugs 24798 and 24801.
2009-10-29mesa: Add MESA_FORMAT_Z24_X8.José Fonseca
2009-10-24mesa: added _mesa_get_format_block_size()Brian Paul
2009-10-24mesa: added _mesa_get_format_name()Brian Paul
2009-10-24mesa: additional comments in format codeBrian Paul
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 case for MESA_FORMAT_SIGNED_RGBA_16Brian Paul
2009-10-06mesa: added MESA_FORMAT_SIGNED_RGBA_16 for accum buffersBrian Paul
2009-10-06mesa: added _mesa_get_format_color_encoding()Brian Paul
2009-10-06mesa: accept more pnames in _mesa_get_format_bits()Brian Paul
2009-10-05mesa: move _mesa_format_to_type_and_comps() to formats.cBrian Paul
2009-10-05mesa: move gl_format_info struct to formats.cBrian Paul
This is a private datatype.
2009-10-05mesa: remove feature testsBrian Paul
2009-10-01mesa: added _mesa_format_row_stride()Brian Paul
2009-10-01mesa: added _mesa_format_image_size()Brian 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-27mesa: code movementBrian Paul
2009-09-27mesa: added _mesa_get_format_datatype()Brian Paul
2009-09-27mesa: added _mesa_get_format_bits()Brian Paul
2009-09-27mesa: added MESA_FORMAT_NONEBrian Paul
2009-09-26mesa: move _mesa_get_texstore_func() to texstore.cBrian Paul
2009-09-26mesa: initial check-in of new formats.[ch] filesBrian Paul