aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | gallium/util: reindent u_half.c and u_half.h with Mesa coding styleLuca Barbieri2010-04-022-107/+112
| | | | | | | | | | | | | | | | | | | | | | | | Sorry, forgout about that.
* | | | | | Revert "util: Init half-float tables on demand."Luca Barbieri2010-04-023-14/+57
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 950300eb255f0e3507bf2757d16c3b5bc8ff3471.
* | | | | | util: Init half-float tables on demand.Corbin Simpson2010-04-013-57/+14
| | | | | | | | | | | | | | | | | | | | | | | | Gets rid of unnecessary delays on startup and compiler-specific hax.
* | | | | | llvmpipe: Support sampling from PIPE_FORMAT_R32_FLOAT.José Fonseca2010-04-011-3/+43
| | | | | |
* | | | | | util: Declare .CRT$XCU data segment.Michal Krol2010-04-011-0/+1
| | | | | |
* | | | | | scons: Remove `util/u_gctors.cpp'.Michal Krol2010-04-011-1/+0
| | | | | |
* | | | | | gallium/util: rewrite global constructor system for half floats (GCC/MSVC only!)Luca Barbieri2010-04-015-26/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | llvmpipe: Support sampling from signed and mixed siged formats.José Fonseca2010-04-011-9/+64
| | | | | |
* | | | | | gallium/util: add copyright header to u_half.cLuca Barbieri2010-04-011-2/+37
| | | | | |
* | | | | | util: Declare util_half_init_tables only once.José Fonseca2010-04-013-4/+15
| | | | | |
* | | | | | util: Use u_math.h's union fi instead of redefining it.José Fonseca2010-04-011-4/+5
| | | | | |
* | | | | | util: Add support for other DXTn RGBA formats.José Fonseca2010-04-012-22/+298
| | | | | |
* | | | | | util: Get DXT1_RGB format working correctly.José Fonseca2010-04-011-1/+54
| | | | | |
* | | | | | util: Add test case for PIPE_FORMAT_DXT1_RGB.José Fonseca2010-04-011-0/+32
| | | | | |
* | | | | | util: Allow to have block format test casesJosé Fonseca2010-04-012-449/+458
| | | | | |
* | | | | | util: Generate correct format conversions for half floats.Michal Krol2010-04-011-39/+59
| | | | | |
* | | | | | util: Use u_half to perform half <--> float conversions.Michal Krol2010-04-011-47/+6
| | | | | |
* | | | | | gallium: Integrate util_half with scons.Michal Krol2010-04-011-0/+2
| | | | | |
* | | | | | gallium/util: add fast half float conversion functionsLuca Barbieri2010-04-014-0/+199
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | util: Add half float test cases.José Fonseca2010-04-011-0/+35
| | | | | |
* | | | | | util/format: fix big endian compilation by not trying to byteswap single bytesLuca Barbieri2010-04-011-7/+9
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | Conceivably, we could also have a dummy util_bswap8, but it seems better to not emit it in the first place.
* | | | | gallivm: convert floats to doublesZack Rusin2010-03-311-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | printf can't handle floats, convert them to doubles so that we can actually print floats.
* | | | | util: Hook into libtxc_dxtn.so (WIP).José Fonseca2010-03-316-5/+738
| | | | |
* | | | | util: Make the accessors bidimensional again.José Fonseca2010-03-313-69/+65
| | | | | | | | | | | | | | | | | | | | Otherwise there's no way to unpack blocks with height >1
* | | | | util: First stab at half-float conversion.Michal Krol2010-03-311-46/+55
| | | | |
* | | | | util: Describe PIPE_FORMAT_NONE as PIPE_FORMAT_R8_USCALED.José Fonseca2010-03-313-64/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoids the need to special case PIPE_FORMAT_NONE so often. Conflicts: src/gallium/auxiliary/util/u_format_table.py
* | | | | util: Silence pointer to integer size mismatch errors.José Fonseca2010-03-311-1/+1
| | | | |
* | | | | util: Add callback to fetch a single pixel.José Fonseca2010-03-313-174/+214
| | | | |
* | | | | scons: Force to consider the util/u_format_pack.py for util/u_format_table.c.José Fonseca2010-03-311-0/+4
| | | | |
* | | | | os: Temporarily use posix thread for embedded too.Kurt Daverman2010-03-311-6/+6
| | | | |
* | | | | util: Remove the hand written u_tile.c functions for the ones that are code ↵José Fonseca2010-03-311-783/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | generated correctly. Not that the code generated are any better, but to quickly detect any regression in the code generated ones from now on.
* | | | | util: Use u_format_pack.py's code instead of u_format_access.py.José Fonseca2010-03-316-355/+163
| | | | |
* | | | | Merge branch 'gallium-new-formats'Roland Scheidegger2010-03-317-28/+61
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/util/u_format.csv src/gallium/auxiliary/util/u_format_access.py src/gallium/auxiliary/util/u_format_pack.py
| * | | | | gallium/util: use other layout instead of the old compressedRoland Scheidegger2010-03-301-2/+2
| | | | | |
| * | | | | Merge branch 'master' into gallium-new-formatsRoland Scheidegger2010-03-307-19/+200
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/util/u_format.csv
| * | | | | | gallium: adapt all code to the renamed depth/stencil formatsRoland Scheidegger2010-03-303-18/+18
| | | | | | |
| * | | | | | gallium: make the python scripts for format parsing not fail on new formatsRoland Scheidegger2010-03-304-12/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | they won't generate any useful conversion code for some of the new formats but at least don't assert. Also needed some more hacks so they don't generate code for some of the new formats, as gcc was not impressed. Also declare unused channels as void, and change the scripts to not fail if the first channel happened to be unused. Needs serious fixing.
| * | | | | | gallium: fix bogus depth/stencil format names (and channel descriptions)Roland Scheidegger2010-03-291-10/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | only the depth part is normalized, stencil part isn't.
| * | | | | | gallium: add new texture formatsRoland Scheidegger2010-03-291-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are needed for DX10 and/or OGL3.3. This just adds the formats nothing handles them yet. PIPE_FORMAT_R1_UNORM can't be used currently as it requires special filter. Need to reclassify compressed formats at some point.
* | | | | | | util: Put the format pack/unpack functions in the description table.José Fonseca2010-03-317-238/+220
| | | | | | |
* | | | | | | util: Make pack/unpack operate on spans.José Fonseca2010-03-311-26/+38
| | | | | | |
* | | | | | | util: Make util_format_xxx_pack_xxx take pointer as arguments.José Fonseca2010-03-311-6/+6
| | | | | | |
* | | | | | | util: Fix PIPE_FORMAT_B5G5R5X1_UNORM test case.José Fonseca2010-03-311-6/+5
| | | | | | |
* | | | | | | util: Use VOID type for X channels in format descriptions.José Fonseca2010-03-313-18/+18
| | | | | | |
* | | | | | | gallivm: Fix USCALED translation. Minor Cleanups.José Fonseca2010-03-311-3/+3
| | | | | | |
* | | | | | | llvmpipe: Drop the aos format conversion.José Fonseca2010-03-313-385/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | It's unused and incomplete. Still in git history if necessary in future.
* | | | | | | util: Generalize lp_format_is_rgba8 into util_format_is_rgba8_variant.José Fonseca2010-03-315-75/+29
| |_|_|_|_|/ |/| | | | |
* | | | | | gallivm: cleanup the code (found by coverity)Zack Rusin2010-03-301-11/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the condition can't be false, declerations are ok even if we don't emit any.
* | | | | | gallivm: use constant size array, added assertion checkBrian Paul2010-03-291-1/+5
| |/ / / / |/| | | |
* | | | | gallivm: added lp_bld_printf() functionChris Li2010-03-294-0/+150
| | | | |