History log of /external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7528e2104fdda88a9eca5d84d979a21f5c517dc9 07-Aug-2012 Vinson Lee <vlee@freedesktop.org> translate: Fix typo in is_legal_int_format_combo.

Fixes same on both sides defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
d1f11ed3eff405561fd94ed05a9f0e5e049f0908 02-Jan-2012 Marek Olšák <maraeo@gmail.com> translate: implement translation of 10_10_10_2 types

This is for GL_ARB_vertex_type_2_10_10_10_rev.
I just took the code from u_format_table.c. It's based on pack_rgba_float.
I had no other choice. The u_format hooks are not exactly compatible
with translate. The cleanup of it is left for future work.

Reviewed-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
0a8a7144a152eba0e1bd955b7a423ed5336a9f31 02-Jan-2012 Marek Olšák <maraeo@gmail.com> translate: implement translation of (pure) integer formats

The conversion is limited to only a few cases, because converting to any other
type shouldn't happen in any driver.

Reviewed-by: Dave Airlie <airlied@redhat.com>
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
1acef6a7465e8c54dc10a43c9e7278d4506c1d5e 01-Jan-2012 Marek Olšák <maraeo@gmail.com> translate: implement translation of half floats in the generic codepath
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
8b7f760f835f870b8f6af6c4d6613d44440f1dc5 20-Apr-2011 Brian Paul <brianp@vmware.com> translate: disable clamping of instanced array indexes

This fixes piglit's draw-instanced-divisor test for softpipe on both
the generic and SSE paths. This is temporary until we have the
correct per-array max_index information.
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
ded92e5dd8eb39bf2a486a6ce95cbef595149582 16-Aug-2010 José Fonseca <jfonseca@vmware.com> translate: Eliminate void pointer arithmetic.

Non-portable.
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
4a4e29a9ab96d44fca9bb25064e12715aac85cbd 10-Aug-2010 Luca Barbieri <luca@luca-barbieri.com> translate: add support for 8/16-bit indices

Currently, only 32-bit indices are supported, but some use cases
translate needs support for all types.
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
1cb92fb92e69b5b138293398a98665c2a3c63a5b 10-Aug-2010 Luca Barbieri <luca@luca-barbieri.com> translate_generic: factor out common code between linear and indexed

This moves the common code into a separate ALWAYS_INLINE function.
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
ddcf028aa0a1bd6f79381164c8b1c3b816792e47 10-Aug-2010 Luca Barbieri <luca@luca-barbieri.com> translate_generic: use memcpy if possible (v3)

Changes in v3:
- If we can do a copy, don't try to get an emit func, as that can assert(0)

Changes in v2:
- Add comment regarding copy_size

When used in GPU drivers, translate can be used to simultaneously
perform a gather operation, and convert away from unsupported formats.

In this use case, input and output formats will often be identical: clearly
it would make sense to use a memcpy in this case.

Instead, translate will insist to convert to and from 32-bit floating point
numbers.

This is not only extremely expensive, but it also loses precision for
32/64-bit integers and 64-bit floating point numbers.

This patch changes translate_generic to just use memcpy if the formats are
identical, non-blocked, and with an integral number of bytes per pixel (note
that all sensible vertex formats are like this).
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
10adb7840c3a37dedc940fe593b246336eebd71e 11-Aug-2010 Luca Barbieri <luca@luca-barbieri.com> translate: allow clients to ask for supported output formats

Currently translate asserts on unsupported output formats, making
it impossible to use for some purposes, such as testing whether it
actually works on all formats it supports.

Removing the assert was met with opposition, so this change allows
clients to ask whether an output format is supported, and they are thus
able to avoid attempting to use it.

Since this is just an addition to the API, no adverse effect is
possible, and it makes the testsuite work again.
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
5266bc3c60033ccc3515b3a6d02f7219f981cbb1 11-Aug-2010 Luca Barbieri <luca@luca-barbieri.com> Revert "translate_generic: return NULL instead of assert(0) if format not supported"

This reverts commit 16b45ca7cefb3432b4133fe9d0b1dbfe3f286131.

José Fonseca asked for a revert.

Note that the testsuite will now segfault since it attempts to test
all possible formats.
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
684aeb366fb72a2dbf9dd7a0803f29880858cd06 11-Aug-2010 Luca Barbieri <luca@luca-barbieri.com> translate_generic: fix broken A8R8G8B8_UNORM output

translate was attempting to output A8R8G8B8_UNORM as if it were
R8G8B8A8_UNORM.

Now the tests just added pass.
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
16b45ca7cefb3432b4133fe9d0b1dbfe3f286131 11-Aug-2010 Luca Barbieri <luca@luca-barbieri.com> translate_generic: return NULL instead of assert(0) if format not supported

This gives the caller a chance to recover (or crash anyway otherwise).
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
e89e47e6d03f0c8b421268481d077100c2247253 04-Aug-2010 Brian Paul <brianp@vmware.com> gallium/translate: make generic_run() and generic_run_elts() more alike

Plus more debug code and do clamping in generic_run().
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
668fa68019ec09fcd0486e612d01d61a0c9a4b2f 16-Jun-2010 Zack Rusin <zackr@vmware.com> translate: don't crash on elts paths with instances
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
4b891234f81d441426a62abcff96720022d2ac3d 03-May-2010 José Fonseca <jfonseca@vmware.com> translate: Make translate_generic truly generic.

PIPE_FORMAT_R10G10B10X2_USCALED, half floats, were not supported, so
just rely on u_format for (almost) universal format support.
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
fc431a58dc1446383edc11aec2a0b7de5b363e5e 26-Apr-2010 José Fonseca <jfonseca@vmware.com> translate: Take and respect a max_index argument.
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
c16d04bd2939154c0360f1ac51fe61a86e5dd9e5 09-Mar-2010 Marek Olšák <maraeo@gmail.com> gallium: fix BGRA vertex color swizzles

The mapping for vertex_array_bgra:
(gl -> st -> translate)
GL_RGBA -> PIPE_FORMAT_R8G8B8A8 (RGBA) -> no swizzle (XYZW)
GL_BGRA -> PIPE_FORMAT_A8R8G8B8 (ARGB) -> ZYXW (BGRA again??)

Iẗ́'s pretty clear that PIPE_FORMAT_A8R8G8B8 here is wrong. This commit
fixes the pipe format and removes obvious workarounds in util/translate.

Tested with: softpipe, llvmpipe, r300g.

Signed-off-by: José Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
a48975347126aacf3a82a5b3e3c69bffd491020a 01-Mar-2010 José Fonseca <jfonseca@vmware.com> translate: Rename pipe formats.
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
543b9566bdaa48fea2df1866fa1310c1cdbcde27 30-Dec-2009 Michal Krol <michal@vmware.com> Add lame support for instanceID to draw module.

It's all screaming for integer support -- fake it with float for now.
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
5007e39f76c897b8f3aa4acf6086c8b7ac30bdef 30-Dec-2009 Michal Krol <michal@vmware.com> Implement instanced indexed draw.
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
7ca0ce38340144794267609646048b3820d594ab 29-Dec-2009 Michal Krol <michal@vmware.com> Implement draw_arrays_instanced() in softpipe.

Modify the translate module to respect instance divisors and accept
instance id as a parameter to calculate input vertex offset.
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
389021220d27c376b81a6221a31d0ee33c24e67f 02-Oct-2009 Brian Paul <brianp@vmware.com> gallium: replace // comments with /* */
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
a563a27c07eee9f0278c8473e27853fa2d1ad119 03-Sep-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: silence warnings
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
4f25420bdd834e81a3e22733304efc5261c2998a 25-Aug-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: refactor/replace p_util.h with util/u_memory.h and util/u_math.h

Also, rename p_tile.[ch] to u_tile.[ch]
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
9dfa6063be5ea506cc5a43d352fa2f7dcfa68dff 24-Jun-2008 José Fonseca <jrfonseca@tungstengraphics.com> gallium: Avoid double arithmetic.
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
89e9d6b6db933c870443714c3d7c9539d117cddf 24-Jun-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: added support for fixed-point formats, drawing
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
938d9d596324e411fde5312f2bb65b444c502c37 28-May-2008 Jakob Bornecrantz <jakob@tungstengraphics.com> Merge branch 'gallium-vertex-linear' into gallium-0.1

Conflicts:

src/gallium/auxiliary/draw/draw_pt_varray.c
55d29a8d48663982a1aeea414f69a5896b97d1ea 28-May-2008 José Fonseca <jrfonseca@tungstengraphics.com> gallium: Windows CE portability fixes.
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
b5c8b3fba6ac90a0d83e02bfe432142f1adee9e5 21-May-2008 Keith Whitwell <keith@tungstengraphics.com> translate: mark functions as PIPE_CDECL
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
d0a4bf08b1a80d62f81301c5b37723dfca436b62 19-Apr-2008 Keith Whitwell <keith@tungstengraphics.com> translate: fix several bugs

- specify cdecl calling convention on WIN32
- fix load bgra8 function
- fix previous don't crash fix.
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
b1158a5e0031aa33a71baa7bc14ca2c0fe0dabc4 19-Apr-2008 Keith Whitwell <keith@tungstengraphics.com> translate: don't crash on failure to create sse version
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
fd6acabd2f62fe006b078ae7640a944c7f65903c 16-Apr-2008 José Fonseca <jrfonseca@tungstengraphics.com> gallium: Get the translate module to build on msvc.

Appearently MSVC c-preprocessor parses "255.0f" as two tokens:
"255.0" and "f", and performs variable substitution on "f".
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
a5a7dc24ba2dcf9bbdd73709c4c182e324bdc3a5 15-Apr-2008 Keith Whitwell <keith@tungstengraphics.com> gallium: Switch one vertex path over to new translate module

Will eventually do this for all instances where we are converting vertices
from one format to another.
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
59f68f36c4ad37496e3ed5d7d3142e3ae35dd351 15-Apr-2008 Keith Whitwell <keith@tungstengraphics.com> translate: typo in emit_B8G8R8A8_UNORM
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c
c81bbab6f6c0413996799800cac6fb49a698e765 15-Apr-2008 Keith Whitwell <keith@tungstengraphics.com> gallium: add a generic vertex (or other) buffer translation module
/external/mesa3d/src/gallium/auxiliary/translate/translate_generic.c