History log of /external/mesa3d/src/mesa/state_tracker/st_format.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
23c71839e994c9c0ca684e54630991e16b0530af 15-Oct-2012 Marek Olšák <maraeo@gmail.com> st/mesa: fix integer texture border color for some formats (v2)

And the clear color too, though that may be an issue only with GL_RGB if it's
actually RGBA in the driver.

NOTE: This is a candidate for the stable branches.

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

v2: The types of st_translate_color parameters were changed to gl_color_union
and pipe_color_union as per Brian's comment.
(cherry picked from commit 2bbd307fa638f6d256d020ddf1cff5fc7f735fd2)
/external/mesa3d/src/mesa/state_tracker/st_format.h
d47a6ada9ca9670c60fc141fabadf40c63031c08 24-Aug-2012 Brian Paul <brianp@vmware.com> mesa: add texture target field to ChooseTextureFormat() driver hook

This will let us choose the actual hardware format depending on the
type of texture.

v2: fixup radeon, nouveau, intel and swrast drivers too

Reviewed-by: Eric Anholt <eric@anholt.net>
/external/mesa3d/src/mesa/state_tracker/st_format.h
456a02b0c7722f22962bca4c26b755381a8de096 14-Feb-2012 Brian Paul <brianp@vmware.com> st/mesa: remove unused st_equal_formats() function

It was incomplete and didn't take byte swapping into account either.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/mesa/state_tracker/st_format.h
ca6d86d26b1726b13baa21b73fe9d426f28370e2 16-Jan-2012 Brian Paul <brianp@vmware.com> st/mesa: remove gl_renderbuffer:DataType assignments

That field is only used by swrast code so there's no reason to mess
with it in the gallium state tracker.

This also lets us remove the unused st_format_data() type function and
related code.
/external/mesa3d/src/mesa/state_tracker/st_format.h
093dc9e548537e6c77e33064a584f849ad90dfa5 12-Sep-2011 Dave Airlie <airlied@redhat.com> mesa: introduce a clear color union to be used for int/unsigned buffers

This introduces a new gl_color_union union and moves the current
ClearColorUnclamped to use it, it removes current ClearColor completely and
renames CCU to CC, then all drivers are modified to expected unclamped floats instead.

also fixes st to use translated color in one place it wasn't.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/state_tracker/st_format.h
475685ce5079877be5fc1fbcb8206dff4b79b0f3 29-Jun-2011 Brian Paul <brianp@vmware.com> st/mesa: s/tex_usage/bindings/ in st_format.h

Just be consistent with the .c file.
/external/mesa3d/src/mesa/state_tracker/st_format.h
1a339b6c71ebab6e1a64f05b2e133022d3bbcd15 23-Jun-2011 Stéphane Marchesin <marcheu@chromium.org> st/mesa: prefer native texture formats when possible.

If possible, we want to match the hardware format to what the app uses. By
doing so, we avoid the need for pixel conversions and therefore greatly speed
up texture uploads.
/external/mesa3d/src/mesa/state_tracker/st_format.h
e2d108ec828bdbebdc7e8f9df30c86f0b521aa8d 22-Feb-2011 Brian Paul <brianp@vmware.com> st/mesa: need to translate clear color according to surface's base format

When clearing a GL_LUMINANCE_ALPHA buffer, for example, we need to convert
the clear color (R,G,B,A) to (R,R,R,A). We were doing this for texture border
colors but not renderbuffers. Move the translation function to st_format.c
and share it.

This fixes the piglit fbo-clear-formats test.

NOTE: This is a candidate for the 7.9 and 7.10 branches.
/external/mesa3d/src/mesa/state_tracker/st_format.h
c1f0f90a976c62546efed34ecbec50b25d0f6aa7 21-Dec-2010 Vinson Lee <vlee@vmware.com> st/mesa: Clean up header file inclusion in st_format.h.
/external/mesa3d/src/mesa/state_tracker/st_format.h
f9995b30756140724f41daf963fa06167912be7f 12-Oct-2010 Kristian Høgsberg <krh@bitplanet.net> Drop GLcontext typedef and use struct gl_context instead
/external/mesa3d/src/mesa/state_tracker/st_format.h
06642c61757b459f4f9283b721ad93b6f15386a7 07-Oct-2010 Dave Airlie <airlied@redhat.com> st/mesa: add option to choose a texture format that we won't render to.

We need a texture to put the drawpixels stuff into, an S8 texture is less
memory/bandwidth than the 32-bit X24S8, but we might not be able to render
directly to an S8, so this lets us specify we won't be rendering to this
texture.
/external/mesa3d/src/mesa/state_tracker/st_format.h
ad4d27c6d1a32e3c4c92e0f22c8fbdeade4cc7af 05-Aug-2010 Vinson Lee <vlee@vmware.com> st/mesa: Include missing headers in st_format.h.
/external/mesa3d/src/mesa/state_tracker/st_format.h
a2817f6ae566b672f195cff22e14e2058d3617ea 24-Apr-2010 Dave Airlie <airlied@redhat.com> st/mesa: attempt to fix TFP by using sampler views (v1)

Okay I think this is good enough for now, I can't see any other reason
for mesa to want to use a sampler view so lets just leave it at all the A->X conversions for now.

I've been running gnome-shell under r300g with this for day or so and it seems fine.

Signed-off-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/mesa/state_tracker/st_format.h
127328bfadaa5f080730fd41f404f1bc74f490d3 17-May-2010 Roland Scheidegger <sroland@vmware.com> mesa/st: adapt to interface changes

adapt to blit changes, and also handle a bit more msaa state in theory
(incomplete, doesn't handle resolves in any way for now).
/external/mesa3d/src/mesa/state_tracker/st_format.h
517faa4f3720134a19e1834144c75cf58a68c9c8 24-Feb-2010 Brian Paul <brianp@vmware.com> st/mesa: updated comments
/external/mesa3d/src/mesa/state_tracker/st_format.h
7802ef6f6978c68e732ed419e88d9af9f131b380 24-Feb-2010 Brian Paul <brianp@vmware.com> st/mesa: more format code clean-up and removal
/external/mesa3d/src/mesa/state_tracker/st_format.h
87c85347ed8f74a855532fe6862d3ef62937ccbb 24-Feb-2010 Brian Paul <brianp@vmware.com> st/mesa: clean-up of format-related code
/external/mesa3d/src/mesa/state_tracker/st_format.h
1f196b786d6bd0c6a5dbdc638574ff716cc3d4de 29-Oct-2009 Brian Paul <brianp@vmware.com> Merge branch 'texformat-rework'

Conflicts:
src/mesa/drivers/dri/radeon/radeon_fbo.c
src/mesa/drivers/dri/s3v/s3v_tex.c
src/mesa/drivers/dri/s3v/s3v_xmesa.c
src/mesa/drivers/dri/trident/trident_context.c
src/mesa/main/debug.c
src/mesa/main/mipmap.c
src/mesa/main/texformat.c
src/mesa/main/texgetimage.c
45e76d2665b38ba3787548310efc59e969124c01 09-Oct-2009 Brian Paul <brianp@vmware.com> mesa: remove a bunch of gl_renderbuffer fields

_ActualFormat is replaced by Format (MESA_FORMAT_x).
ColorEncoding, ComponentType, RedBits, GreenBits, BlueBits, etc. are
all replaced by MESA_FORMAT_x queries.
/external/mesa3d/src/mesa/state_tracker/st_format.h
2ef1aae1633db98fc52f440ca33b8f2a6f153d45 07-Oct-2009 Brian Paul <brianp@vmware.com> st/mesa: pass pipe_screen, not pipe_context to st_choose_format() functions

These don't depend on context state, but use a screen pointer.
/external/mesa3d/src/mesa/state_tracker/st_format.h
1f7c914ad0beea8a29c1a171c7cd1a12f2efe0fa 01-Oct-2009 Brian Paul <brianp@vmware.com> mesa: replace gl_texture_format with gl_format

Now gl_texture_image::TexFormat is a simple MESA_FORMAT_x enum.
ctx->Driver.ChooseTexture format also returns a MESA_FORMAT_x.
gl_texture_format will go away next.
/external/mesa3d/src/mesa/state_tracker/st_format.h
7cafd49c936ba9727c3077af8c84afe81b6fa0b4 11-Jun-2009 José Fonseca <jfonseca@vmware.com> mesa: Use PIPE_TEXTURE_USAGE_DEPTH_STENCIL for any depth or stencil format.
/external/mesa3d/src/mesa/state_tracker/st_format.h
66cdbf945a3ee75d7b8cba5135310a7ebec21289 15-Apr-2009 Brian Paul <brianp@vmware.com> st: st_equal_formats() function to compare gallium/GL pixel formats
/external/mesa3d/src/mesa/state_tracker/st_format.h
8aafc03b260ab8923f1b373f7effa75bcdb40a72 18-Jul-2008 José Fonseca <jrfonseca@tungstengraphics.com> gallium: Finer grained is_format_supported.
/external/mesa3d/src/mesa/state_tracker/st_format.h
dc5a853c85d2daa8b7b0e6d32e00c4976746d704 16-Apr-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: make choose_format() non-static: st_choose_format()
/external/mesa3d/src/mesa/state_tracker/st_format.h
20eae595faa20dba8a59d8a4bfd01aa6b458cecd 12-Dec-2007 Brian <brian.paul@tungstengraphics.com> Re-org of st_create_framebuffer() and renderbuffer format selection.

st_create_framebuffer() now takes pipe_formats for the color, depth, stencil
buffers.
This avoids a round-about chain of calls to pipe->is_format_supported() for
window renderbuffers (their format never changes).
Renderbuffer format selection code in st_format.c is simpler now too.
/external/mesa3d/src/mesa/state_tracker/st_format.h
4f58d9af9addb1506a1b2abc7dd8012147772b78 10-Dec-2007 Brian <brian.paul@tungstengraphics.com> Add 'type' parameter to is_format_supported() to specify texture vs. drawing surface, etc.

Additional types may be added in the future.
/external/mesa3d/src/mesa/state_tracker/st_format.h
54fc80ab31f89520d3119196bfa9c6332b35fe2f 08-Dec-2007 Brian <brian.paul@tungstengraphics.com> Define PIPE_FORMAT_ tokens as an enum set, rather than #defines.

This makes debugging a _lot_ easier.
In gdb, "print format" used to display 613570600, now you see PIPE_FORMAT_A8R8G8B8_UNORM.
/external/mesa3d/src/mesa/state_tracker/st_format.h
f16f23b3ab4caf6588ce713fc682aac6e9f808fb 27-Oct-2007 michal <michal@michal-laptop.(none)> Use PIPE_FORMAT in state tracker.

Fix PIPE_FORMAT field encoding.
Re-implement st_get_format_info.
/external/mesa3d/src/mesa/state_tracker/st_format.h
7b0b694406e4043cb163f9832c9c02934fa54568 14-Oct-2007 Brian <brian.paul@tungstengraphics.com> 16-bit rgba surface/format for accum
/external/mesa3d/src/mesa/state_tracker/st_format.h
ce02b16dac0891a570a3a42f26463ea5c68f1618 10-Aug-2007 Brian <brian.paul@tungstengraphics.com> added st_sizeof_format()
/external/mesa3d/src/mesa/state_tracker/st_format.h
24e510ea3796d3136c5eacf2c96a1dddded12aa2 10-Aug-2007 Brian <brian.paul@tungstengraphics.com> added st_mesa_format_to_pipe_format()
/external/mesa3d/src/mesa/state_tracker/st_format.h
1463c00d4e436b1904011001cea288d03be8226f 10-Aug-2007 Brian <brian.paul@tungstengraphics.com> Rename (file contains surface format-related functions)
/external/mesa3d/src/mesa/state_tracker/st_format.h