6dd8e6f9cbca63b222fe4a1c2c49ddb53e75999e |
|
12-Jun-2012 |
James Benton <jbenton@vmware.com> |
util: Reimplement half <-> float conversions. Removed u_half.py used to generate the table for previous method. Previous implementation of float to half conversion was faulty for denormalised and NaNs and would require extra logic to fix, thus making the speedup of using tables irrelevant. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
/external/mesa3d/src/gallium/auxiliary/util/u_half.h
|
783e94243a46e5d11d9db51924839a1c64a281bc |
|
07-Apr-2010 |
José Fonseca <jfonseca@vmware.com> |
util: Add copyright header to u_half.h
/external/mesa3d/src/gallium/auxiliary/util/u_half.h
|
f15469039a4623ae89e7867e4904eec8eef6395b |
|
07-Apr-2010 |
José Fonseca <jfonseca@vmware.com> |
util: Remove the half typedef from p_compiler.h. Unnecessary, and doesn't even guarantee size.
/external/mesa3d/src/gallium/auxiliary/util/u_half.h
|
04ea6f5dd84bb91e91225133f3a67e38ed7a3fad |
|
04-Apr-2010 |
José Fonseca <jfonseca@vmware.com> |
util: Make half float lookup tables constant.
/external/mesa3d/src/gallium/auxiliary/util/u_half.h
|
c476305cdeb1ca9d755983e2058cb44f5b9109f0 |
|
02-Apr-2010 |
Luca Barbieri <luca@luca-barbieri.com> |
gallium/util: pregenerate half float tables This solution avoids the issue of how to run the initializers and also allows those pages (and the parts of them in processor caches) to be shared between multiple processes. The drawback is slightly higher library size.
/external/mesa3d/src/gallium/auxiliary/util/u_half.h
|
aee5bb5b8ad80d4aed849519a80b1d696991e866 |
|
02-Apr-2010 |
Luca Barbieri <luca@luca-barbieri.com> |
gallium/util: add util_format_init that inits s3tc and util_half Switch from auto-init to explicit init for util_half per Brian Paul's indication. NOTE: this is probably broken because not enough things call util_format_init. Will be fixed shortly
/external/mesa3d/src/gallium/auxiliary/util/u_half.h
|
6c5f444f596984778a786b49058d3cf2a4fd2c2c |
|
02-Apr-2010 |
Luca Barbieri <luca@luca-barbieri.com> |
gallium/util: reindent u_half.c and u_half.h with Mesa coding style Sorry, forgout about that.
/external/mesa3d/src/gallium/auxiliary/util/u_half.h
|
7bb54c99a466883af3ac3e79426def17dcfa8d89 |
|
02-Apr-2010 |
Luca Barbieri <luca@luca-barbieri.com> |
Revert "util: Init half-float tables on demand." This reverts commit 950300eb255f0e3507bf2757d16c3b5bc8ff3471.
/external/mesa3d/src/gallium/auxiliary/util/u_half.h
|
950300eb255f0e3507bf2757d16c3b5bc8ff3471 |
|
01-Apr-2010 |
Corbin Simpson <MostAwesomeDude@gmail.com> |
util: Init half-float tables on demand. Gets rid of unnecessary delays on startup and compiler-specific hax.
/external/mesa3d/src/gallium/auxiliary/util/u_half.h
|
4edffe026e387f6a038d7538577bf5ecc168f223 |
|
01-Apr-2010 |
Luca Barbieri <luca@luca-barbieri.com> |
gallium/util: rewrite global constructor system for half floats (GCC/MSVC only!) NOTE: this commit will cause Gallium to fail to build on any compiler except GCC, the Microsoft C compiler and compatible compilers that claim to be one of those. This commit removes the u_gctors.cpp mechanism, in favor of using compiler-specific syntax to add global constructors from C files. This solves the problem of u_gctors.o not being pulled from static libraries and avoids using C++. However, it needs compiler-specific support for every compiler. The Microsoft C compiler support has not been tested.
/external/mesa3d/src/gallium/auxiliary/util/u_half.h
|
89034b8ae71ca12f9a12935807a33caa686ede00 |
|
01-Apr-2010 |
José Fonseca <jfonseca@vmware.com> |
util: Declare util_half_init_tables only once.
/external/mesa3d/src/gallium/auxiliary/util/u_half.h
|
982d36667dcb53236cfd9668b56f7e91d49e9f0a |
|
01-Apr-2010 |
José Fonseca <jfonseca@vmware.com> |
util: Use u_math.h's union fi instead of redefining it.
/external/mesa3d/src/gallium/auxiliary/util/u_half.h
|
3ff175d6de89ad92d167362355501f99d06f0f97 |
|
24-Mar-2010 |
Luca Barbieri <luca@luca-barbieri.com> |
gallium/util: add fast half float conversion functions This adds a fast half float conversion facility to Gallium. Mesa already contains such a facility, but using a much worse algorithm. This one is an implementation of www.fox-toolkit.org/ftp/fasthalffloatconversion.pdf and uses a branch-less algorithm with some lookup tables small enough to fit in the L1 cache. Ideally, Mesa should start using these functions too, but I'm not sure how to arrange that with the current build system. A new "u_gctors.cpp" is added that defines a global C++ constructor allowing to initialize to conversion lookup tables at library init.
/external/mesa3d/src/gallium/auxiliary/util/u_half.h
|