summaryrefslogtreecommitdiffstats
path: root/progs/gallium/unit
Commit message (Collapse)AuthorAgeFilesLines
* progs/gallium: Move into src/gallium/testsJosé Fonseca2010-04-134-807/+0
| | | | | | | Two reasons: - progs will eventually have its own repository - it is just to easy to forget updating the code for interface changes when it is outside of src
* util: Get all depth stencil tests passing.José Fonseca2010-04-091-10/+294
| | | | | Note the tests don't test all the paths, in particular stride, and ensuring the old value is preserved.
* util: Reorder format tests -- group by format.José Fonseca2010-04-091-28/+32
|
* util: Add dedicated depth-stencil packing/unpacking functions.José Fonseca2010-04-091-20/+20
| | | | | | | Depth-stencil manually written given that each one is very close to be a special case. u_format_zs.c's still untested.
* gallium/unit: Silence warnings.José Fonseca2010-04-091-2/+2
|
* util: Remove the half typedef from p_compiler.h.José Fonseca2010-04-071-2/+2
| | | | Unnecessary, and doesn't even guarantee size.
* util: Implement YUV and subsampled RGB format conversion.José Fonseca2010-04-071-4/+12
|
* util: Revert unsolicited, untested, unreviewed, and broken changes to format ↵José Fonseca2010-04-031-1/+7
| | | | | | | support. Not all is bad, but I'm afraid I'll have to throw the baby with the water given they are all tied to together.
* progs/gallium/unit: Silence uninitialized variable warnings.Vinson Lee2010-04-021-4/+4
|
* progs/gallium/unit: Move declaration before code.Vinson Lee2010-04-011-1/+2
| | | | Fixes SCons build.
* gallium/util: revert util_format_init additionLuca Barbieri2010-04-021-4/+0
| | | | | | | | | | Putting calls to util_format_init all over the codebase is infeasible. Instead, half float tables are pregenerated, and the s3tc library is loaded on demand. I believe this is a solution that combines performance, cleanliness, flexibility and portability.
* gallium/util: add util_format_is_supported to check for pack/unpackLuca Barbieri2010-04-021-3/+1
| | | | | This improves the code by making it more readable, and removes special knowledge of S3TC and other formats from softpipe.
* progs/gallium: add unit test for u_halfLuca Barbieri2010-04-023-1/+77
|
* gallium/util: add util_format_init that inits s3tc and util_halfLuca Barbieri2010-04-021-1/+1
| | | | | | | | 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
* gallium/util: rewrite global constructor system for half floats (GCC/MSVC only!)Luca Barbieri2010-04-011-1/+0
| | | | | | | | | | | | | | | | 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.
* gallium/unit: Invoke util_half_init_tables().José Fonseca2010-04-011-0/+2
| | | | half float formats now pass the tests.
* util: Add support for other DXTn RGBA formats.José Fonseca2010-04-011-2/+2
|
* util: Get DXT1_RGB format working correctly.José Fonseca2010-04-011-2/+19
|
* util: Add test case for PIPE_FORMAT_DXT1_RGB.José Fonseca2010-04-011-5/+37
|
* util: Allow to have block format test casesJosé Fonseca2010-04-011-68/+145
|
* gallium/unit: Install test in build/xxx/binJosé Fonseca2010-04-011-0/+2
|
* util: Make the accessors bidimensional again.José Fonseca2010-03-311-4/+4
| | | | Otherwise there's no way to unpack blocks with height >1
* util: Add callback to fetch a single pixel.José Fonseca2010-03-311-0/+34
|
* util: Put the format pack/unpack functions in the description table.José Fonseca2010-03-311-20/+25
|
* util: Make pack/unpack operate on spans.José Fonseca2010-03-311-4/+4
|
* util: Make util_format_xxx_pack_xxx take pointer as arguments.José Fonseca2010-03-311-2/+6
|
* progs/gallium/unit: Remove the test cases.José Fonseca2010-03-061-545/+11
|
* progs/gallium/unit: Skip test cases which cannot be represented in 4ub.José Fonseca2010-03-061-4/+23
|
* progs/gallium/unit: Use the shortened name to reconstruct the function being ↵José Fonseca2010-03-061-1/+1
| | | | tested.
* progs/gallium/unit: Cleanup/fix PIPE_FORMAT_R8SG8SB8UX8U_NORM test cases.José Fonseca2010-03-061-7/+6
|
* progs/gallium/unit: Test (un)pack_4ub.José Fonseca2010-03-031-8/+103
| | | | Most of them are failing.
* progs/gallium/unit: Remove PIPE_FORMAT_R8G8B8X8_SNORM test cases.José Fonseca2010-03-031-9/+1
|
* progs/gallium/unit: Add test cases for single precision floats.José Fonseca2010-03-021-3/+38
|
* progs/gallium/unit: Add test cases for Nx16 and Nx32 integer formats.José Fonseca2010-03-021-10/+234
|
* progs/gallium/unit: Add more test cases.José Fonseca2010-03-021-48/+181
|
* gallium/unit: Rename pipe formats.José Fonseca2010-03-021-74/+74
|
* progs/gallium/unit: Rename PIPE_FORMAT_A8B8G8R8_SNORM.José Fonseca2010-03-011-9/+9
|
* progs/gallium: Make a phony target "unit" to run unit tests.José Fonseca2010-03-011-0/+5
|
* progs/gallium: Add unit tests for pixel format packing/unpacking.José Fonseca2010-02-272-0/+294