History log of /external/mesa3d/src/mesa/main/formats.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
749c9060aca85277c388377d15fd6323ba20b78e 09-Jun-2012 Jordan Justen <jordan.l.justen@intel.com> mesa formats: add MESA_FORMAT_ABGR2101010_UINT

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/formats.h
9ad8f431b2a47060bf05517246ab0fa8d249c800 25-Jun-2012 Jordan Justen <jordan.l.justen@intel.com> mesa: add glformats integer type/format detection routines

_mesa_is_integer_format is moved to formats.c and renamed
as _mesa_is_enum_format_integer.

_mesa_is_format_unsigned, _mesa_is_type_integer,
_mesa_is_type_unsigned, and _mesa_is_enum_format_or_type_integer
are added.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/formats.h
06aa607ba76d940c48556935259c2a34eac7a8dc 27-Jan-2012 Brian Paul <brianp@vmware.com> mesa: added swapBytes parameter to _mesa_format_matches_format_and_type()

Not actually used yet though.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
/external/mesa3d/src/mesa/main/formats.h
488d7fc67d36bc0e5247f5d011e8ad4c2dceb5a7 24-Dec-2011 Brian Paul <brianp@vmware.com> mesa: add _mesa_get_format_max_bits()

Returns max bits per channel for the given format.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/mesa/main/formats.h
db247dd7b37e22bf9545d8cb8360e06d68e50912 06-Dec-2011 Brian Paul <brianp@vmware.com> mesa: add MAX_PIXEL_BYTES define

In a few places we need to allocate space for some number of generic
pixels. Use this new define instead of a magic number like 16 or
4 * sizeof(GLuint).

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/main/formats.h
b4aecc4e1861e60e40e14868719219084967e46d 01-Dec-2011 Brian Paul <brianp@vmware.com> mesa: rename MESA_FORMAT_RG88_REV to MESA_FORMAT_RG88

R is in the high byte, G in the low byte.
/external/mesa3d/src/mesa/main/formats.h
0a3c895f341ae458b09dcdc9cbd674600366a925 01-Dec-2011 Brian Paul <brianp@vmware.com> mesa: rename MESA_FORMAT_RG88 to MESA_FORMAT_GR88

To better reflect the component ordering and be consistent with other
format names.
/external/mesa3d/src/mesa/main/formats.h
d4a38e86d4b4d66cca20ee63222f940cb73fa709 28-Nov-2011 Chia-I Wu <olv@lunarg.com> mesa: add support for GL_OES_compressed_ETC1_RGB8_texture

Add support for GL_OES_compressed_ETC1_RGB8_texture to core mesa. There is no
driver support yet.

Unlike desktop GL compressed texture formats, GLES compressed texture formats
usually can only be used with glCompressedTexImage2D. All other gl*Tex*Image*
functions are updated to check for that.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/formats.h
0cbdead62e615dc197b3831941ae311865fa6642 29-Nov-2011 Brian Paul <brianp@vmware.com> mesa: add component comments for sRGB formats
/external/mesa3d/src/mesa/main/formats.h
50b91aa305a633e79413bc755c3496442ec31b1a 29-Nov-2011 Brian Paul <brianp@vmware.com> mesa: fix comments for RG formats

The position of the red and green bits was misstated in the comments.
Arguably, the names of these formats should be changed to "GR" to reflect
the component ordering and to be consistent with other formats.
/external/mesa3d/src/mesa/main/formats.h
f449be660e70aac2aefd2ce84581e137de25520b 27-Nov-2011 Dave Airlie <airlied@redhat.com> mesa/format: add mesa MESA_FORMAT_ARGB2101010_UINT support.

This format is used in the ARB_texture_rgb10_a2ui spec.

It adds core mesa support, texformat + texstore support, format_unpack
and fbobject.c (all patches from list merged + fixed up).

also fixes some whitespace issues.

Parts were:
Reviewed-by: Eric Anholt <eric@anholt.net>

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/main/formats.h
d4fcf67a3ac78c29448000486dadc2b4b1b2a56d 22-Nov-2011 Chia-I Wu <olv@lunarg.com> mesa: add MESA_FORMAT_RGBX8888 and MESA_FORMAT_RGBX8888_REV

MESA_FORMAT_RGBX8888_REV is one of the opaque pixel formats used on Android.
Thanks to texture-from-pixmap, drivers may actually see texture images with
this format on Android.

MESA_FORMAT_RGBX8888 is added only for completeness.

Reviewed-by: Brian Paul <brianp@vmware.com>

[olv: Move the new formats after MESA_FORMAT_ARGB8888_REV in gl_format. I
accidentally moved them to the wrong place when preparing the patch.]
/external/mesa3d/src/mesa/main/formats.h
63e7a4c6e5bf51d8090046ebc5adcb4207448565 09-Nov-2011 José Fonseca <jfonseca@vmware.com> mesa,glsl,mapi: Put extern "C" { ... } where appropriate.

Probably a several places missing, but enough to cover all headers
(in)directly included by uniform_query.cpp, and fix the MSVC build.
/external/mesa3d/src/mesa/main/formats.h
5f140bceda4c11b68c16ce175533f496434ff9a3 13-Oct-2011 Eric Anholt <eric@anholt.net> mesa: Add a function for comparing gl_format to format/type.

This should be useful in making more generic fast paths in the pixel
paths.

v2: Add note about PACK_SWAP_BYTES, and fix up for endianness by
synchronizing with memcpy_texture paths in texstore.c.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/formats.h
7a41291c3aa13fc71cc87966b414551f5c7c0e6a 26-Sep-2011 Dave Airlie <airlied@redhat.com> mesa/formats: add rest of integer formats.

This is taken from reading EXT_texture_integer + EXT_texture_rg in combination,

Comments on necessity of each format, naming of formats and bugs in the
formats tables please.

Is there any formats I've missed?

Eric looked over this to make sure its consistent at least.

As I've changed the ordering of things in the format table, the follow
patches are required to avoid regression.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/main/formats.h
9a5b2899e058f3ec31a4eba5575eaa3fcfe1e3f5 09-Sep-2011 Brian Paul <brianp@vmware.com> mesa: added _mesa_get_uncompressed_format(), _mesa_format_num_components()
/external/mesa3d/src/mesa/main/formats.h
55d232a81566cf7ab8855c42e2ef1a280276a04c 26-Aug-2011 Ian Romanick <ian.d.romanick@intel.com> mesa: Remove all mention of MESA_FORMAT_CI8

Nothing in Mesa supports color-index textures, and most of the other
infrastructure that could allow such support has already been removed.
This puts the final nail in the coffin.

Also clean out some GL_COLOR_INDEX comments in formats.c.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/formats.h
1165280cbd37dee1e499358633478ab869de21df 01-Jun-2011 Marek Olšák <maraeo@gmail.com> mesa: initial ARB_depth_buffer_float support

Using GL_NONE as DataType of Z32_FLOAT_X24S8, not sure what I should put there.
The spec says the type is n/a.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
/external/mesa3d/src/mesa/main/formats.h
e8b1c6d6f55f5be3bef25084fdd8b6127517e137 21-May-2011 Adam Jackson <ajax@redhat.com> mesa: Fix return type of _mesa_get_format_bytes() (#37351)

Despite that negative values aren't sensible here, making this unsigned
is dangerous. Consider get_pointer_generic, which computes a value of
the form:

void *base + (int x * int stride + int y) * unsigned bpp

The usual arithmetic conversions will coerce the (x*stride + y)
subexpression to unsigned. Since stride can be negative, this is
disastrous.

Fixes at least the following piglit tests on Ironlake:

fbo/fbo-blit-d24s8
spec/ARB_depth_texture/fbo-clear-formats
spec/EXT_packed_depth_stencil/fbo-clear-formats

NOTE: This is a candidate for the 7.10 branch.

Reviewed-by: Chad Versace <chad.versace@intel.com>
Signed-off-by: Adam Jackson <ajax@redhat.com>
/external/mesa3d/src/mesa/main/formats.h
631d23daa91c569bf268a2191bd466df73a64263 26-Apr-2011 Marek Olšák <maraeo@gmail.com> mesa: implement EXT_packed_float

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/main/formats.h
9d7698c468f4ea7da8bb4ec00520c98f11cca0fa 26-Apr-2011 Marek Olšák <maraeo@gmail.com> mesa: implement EXT_texture_shared_exponent

swrast support done.

There is no renderbuffer support in swrast, because it's not required
by the extension.

Reviewed-by: Brian Paul <brianp@vmware.com>
/external/mesa3d/src/mesa/main/formats.h
0ecbb0ab7472fe5cb33be13a8307e16f875254e5 16-Feb-2011 Marek Olšák <maraeo@gmail.com> mesa: add R/RG floating-point formats
/external/mesa3d/src/mesa/main/formats.h
0be369975fdfa79bcb702d0c13aa0a221055f61b 18-Mar-2011 Marek Olšák <maraeo@gmail.com> mesa: initial EXT_texture_snorm support

The component ordering of some formats has been been reversed to match
Gallium types.
/external/mesa3d/src/mesa/main/formats.h
7d16e2c0cd70dc5a23b746dbc8e44c58366b5353 07-Mar-2011 Marek Olšák <maraeo@gmail.com> mesa: add EXT_texture_compression_latc

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.
/external/mesa3d/src/mesa/main/formats.h
8d47c919859e9cd90cfc04eb220ac8a5aa87048e 22-Feb-2011 Dave Airlie <airlied@redhat.com> mesa: Add RGTC texture store/fetch support.

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>
/external/mesa3d/src/mesa/main/formats.h
4d6994e40ebccf9428fc757d845e25c0e0c12cef 16-Feb-2011 Marek Olšák <maraeo@gmail.com> mesa: fix mipmap generation for MESA_FORMAT_AL44

This was missed when implementing AL44.
/external/mesa3d/src/mesa/main/formats.h
edc2dd8e4788e556d445c9f59974ed95b33c2bbc 12-Jan-2011 Dave Airlie <airlied@gmail.com> mesa/swrast: implement EXT_texture_sRGB_decode

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>
/external/mesa3d/src/mesa/main/formats.h
fd8aa7ac71699facf9839e2ae56b5e37579c6bcc 22-Dec-2010 Marek Olšák <maraeo@gmail.com> mesa: implement new texture format I16
/external/mesa3d/src/mesa/main/formats.h
bb5ace68ce9e8bd171a39162ed6bd93632bd6619 22-Dec-2010 Marek Olšák <maraeo@gmail.com> mesa: implement new texture format L16
/external/mesa3d/src/mesa/main/formats.h
eb31837a0d4fa4fe115bb288ddb37cbedea954ae 22-Dec-2010 Marek Olšák <maraeo@gmail.com> mesa: implement new texture format A16
/external/mesa3d/src/mesa/main/formats.h
bae9d511f343c7bd5eb66d1d1d18d32b47e738e3 21-Dec-2010 Marek Olšák <maraeo@gmail.com> mesa: implement new texture format AL44

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.
/external/mesa3d/src/mesa/main/formats.h
621e5254ef6714520f106bd3707fe6ddc279aa0c 21-Dec-2010 Marek Olšák <maraeo@gmail.com> mesa: implement new texture format ARGB2101010

Radeon GPUs do support GL_RGB10_A2.
/external/mesa3d/src/mesa/main/formats.h
74c324fdbaebb7accaee668f2bc54af4699d0025 24-Nov-2010 Brian Paul <brianp@vmware.com> mesa: added _mesa_format_image_size64()
/external/mesa3d/src/mesa/main/formats.h
412b9608838b872bc294569b3ee913343a7e66f6 27-Oct-2010 Brian Paul <brianp@vmware.com> mesa: rename function to _mesa_is_format_integer_color()

Be a bit more clear about its operation.
/external/mesa3d/src/mesa/main/formats.h
f5ed39e7e6dd31ea60477475d97d8a5ce6946ccc 23-Oct-2010 Brian Paul <brianp@vmware.com> mesa: _mesa_is_format_integer() function
/external/mesa3d/src/mesa/main/formats.h
5d1387b2da3626326410804026f8b92f1a121fdc 29-Sep-2010 Ian Romanick <ian.d.romanick@intel.com> ARB_texture_rg: Add R8, R16, RG88, and RG1616 internal formats
/external/mesa3d/src/mesa/main/formats.h
e71a9042cb5e046072d2ea8fbd22a01de625bf8a 26-Aug-2010 Nick Bowler <nbowler@draconx.ca> mesa: Identify packed depth/stencil buffers using the Format field.

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>
/external/mesa3d/src/mesa/main/formats.h
7e4e79be6bba7cf68046bd77aa8d44fb52ca5186 29-Jul-2010 Vinson Lee <vlee@vmware.com> mesa: Remove unnecessary header.
/external/mesa3d/src/mesa/main/formats.h
abd5627a6a034885b0b01b995c73870da1361bb0 06-Jul-2010 Brian Paul <brianp@vmware.com> mesa: initial support for unnormalized integer texture formats

As defined by GL_EXT_texture_integer.
/external/mesa3d/src/mesa/main/formats.h
17e96718946486ef77927fcf3bb299d8bff32b98 10-May-2010 Brian Paul <brianp@vmware.com> mesa: added unsigned 16-bit/channel tex format
/external/mesa3d/src/mesa/main/formats.h
7a57af6d11a8fae9838a0d2e42eac6200b8f027e 10-May-2010 Brian Paul <brianp@vmware.com> mesa: added comments for signed 16-bit formats
/external/mesa3d/src/mesa/main/formats.h
84407d7365e101c36a83fd0a58c58b0c0c57db14 27-Apr-2010 Brian Paul <brianp@vmware.com> mesa: start adding GL 3.1 signed normalized texture formats
/external/mesa3d/src/mesa/main/formats.h
0422053eca12b4fb912e0229c96a9d12453e31c4 18-Nov-2009 Brian Paul <brianp@vmware.com> mesa: remove trailing comment to silence warning
/external/mesa3d/src/mesa/main/formats.h
2d0c2952566810ef1b277b49b064f4874a973112 17-Nov-2009 Michel Dänzer <daenzer@vmware.com> Add MESA_FORMAT_XRGB8888_REV.
/external/mesa3d/src/mesa/main/formats.h
eb437fabe017611e1f855fffa45f59cd38709be8 16-Nov-2009 Ian Romanick <ian.d.romanick@intel.com> AL1616: Add formats for GL_LUMINANCE16_ALPHA16 textures
/external/mesa3d/src/mesa/main/formats.h
c6164ff155189007c02aabb31549f5f4dc767d1b 29-Oct-2009 José Fonseca <jfonseca@vmware.com> mesa: Add MESA_FORMAT_Z24_X8.
/external/mesa3d/src/mesa/main/formats.h
7b16c43e436715bef9118fdb28ca8a9ad91b1e66 24-Oct-2009 Brian Paul <brianp@vmware.com> mesa: added _mesa_get_format_block_size()
/external/mesa3d/src/mesa/main/formats.h
bee6794eb126bc8af87726a2456d0ebc36eb721d 24-Oct-2009 Brian Paul <brianp@vmware.com> mesa: added _mesa_get_format_name()
/external/mesa3d/src/mesa/main/formats.h
e4c700dbbf2a802f32bf62256c801105998c3729 22-Oct-2009 Brian Paul <brianp@vmware.com> mesa: added MESA_FORMAT_X8_Z24 format

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.
/external/mesa3d/src/mesa/main/formats.h
74d61d03b54d72217d463c248468cdcd09320efc 07-Oct-2009 Brian Paul <brianp@vmware.com> mesa: added MESA_FORMAT_XRGB8888
/external/mesa3d/src/mesa/main/formats.h
c13b9a141d77845517bf7cab20cff6115c31e67d 07-Oct-2009 Brian Paul <brianp@vmware.com> mesa: added MESA_FORMAT_SIGNED_RGBA_16 for accum buffers
/external/mesa3d/src/mesa/main/formats.h
f7b5e616e07b5caa27e91bb5733a8a849d5963f6 07-Oct-2009 Brian Paul <brianp@vmware.com> mesa: added _mesa_get_format_color_encoding()
/external/mesa3d/src/mesa/main/formats.h
019bc97bd900a84f5f999afdb42928e92d33814b 06-Oct-2009 Brian Paul <brianp@vmware.com> mesa: move _mesa_format_to_type_and_comps() to formats.c
/external/mesa3d/src/mesa/main/formats.h
be0765cd6ec47cf068775197f312a1123e044566 06-Oct-2009 Brian Paul <brianp@vmware.com> mesa: move gl_format_info struct to formats.c

This is a private datatype.
/external/mesa3d/src/mesa/main/formats.h
7e7f38a67d82191076b95f6faa0d419df68610da 06-Oct-2009 Brian Paul <brianp@vmware.com> mesa: remove feature tests
/external/mesa3d/src/mesa/main/formats.h
040fd7ed44c21a1faaa6475888e9365e8f0de42b 02-Oct-2009 Brian Paul <brianp@vmware.com> mesa: added _mesa_format_row_stride()
/external/mesa3d/src/mesa/main/formats.h
1c7ec97ec47f294dcfc0c6a87ee26bb3565f95d4 01-Oct-2009 Brian Paul <brianp@vmware.com> mesa: added _mesa_format_image_size()
/external/mesa3d/src/mesa/main/formats.h
60843e3ee59b00cee4ec1048823d1dd24756d849 01-Oct-2009 Brian Paul <brianp@vmware.com> mesa: remove MESA_FORMAT_RGBA4444

Not used by any hardware driver. ARGB4444 and ARGB4444_REV remain.
/external/mesa3d/src/mesa/main/formats.h
3fa7dbf368bb060220e9f78e666b00d6827166a6 01-Oct-2009 Brian Paul <brianp@vmware.com> mesa: remove GLchan-based formats; use hw 8-bit/channel formats instead

Removed: MESA_FORMAT_RGBA, RGB, ALPHA, LUMINANCE, LUMINANCE_ALPHA, INTENSITY.
/external/mesa3d/src/mesa/main/formats.h
5978cbdf7728df7952c9c04165ece23394a5fb95 28-Sep-2009 Brian Paul <brianp@vmware.com> mesa: code movement
/external/mesa3d/src/mesa/main/formats.h
5ab5f16919f6aaa19f5c92fd562e43dee18e30bc 28-Sep-2009 Brian Paul <brianp@vmware.com> mesa: added _mesa_get_format_datatype()
/external/mesa3d/src/mesa/main/formats.h
c28d78f8324cfc17936af63c258a1cc55d590d60 28-Sep-2009 Brian Paul <brianp@vmware.com> mesa: added _mesa_get_format_bits()
/external/mesa3d/src/mesa/main/formats.h
e8eed5003b01fe8a4349711382411ac80b1c0aa3 28-Sep-2009 Brian Paul <brianp@vmware.com> mesa: added MESA_FORMAT_NONE
/external/mesa3d/src/mesa/main/formats.h
813870fd9588de101f68728507cff726d7513695 26-Sep-2009 Brian Paul <brianp@vmware.com> mesa: initial check-in of new formats.[ch] files
/external/mesa3d/src/mesa/main/formats.h