Commit graph

33021 commits

Author SHA1 Message Date
Luca Barbieri
38afd1e445 gallium/util: add copyright header to u_half.c 2010-04-01 17:31:31 +02:00
Chia-I Wu
a49db89326 Update DEMO_FILES for demos using EGL.
Reflect the recent addtion of eglut and reorganization of the EGL demos.
This helps remove ~2k lines of duplicated code

$ git diff --shortstat -M 57cc1db87b
 18 files changed, 298 insertions(+), 2178 deletions(-)
2010-04-01 22:29:48 +08:00
Chia-I Wu
532b7400fd progs/egl: Port OpenVG lion and sp to eglut. 2010-04-01 22:25:50 +08:00
Chia-I Wu
7b48d88407 progs/egl: Port ES1 gears to eglut.
As gears in the last demo under "screen" subdirectory, this also removes
the directory.
2010-04-01 22:25:49 +08:00
Chia-I Wu
dd7276f494 progs/egl: Port ES1 tri to eglut.
This also removes EGL_MESA_screen_surface version of ES1 tri as eglut
supports the extension.
2010-04-01 22:25:49 +08:00
Chia-I Wu
765b30849c progs/egl: Replace egltri by xegl_tri.
With the switch to eglut, xegl_tri supports both X11 and
EGL_MESA_screen_surface.  Have it replace egltri.
2010-04-01 22:25:49 +08:00
Chia-I Wu
02551cab47 progs/egl: Porg xegl_tri to eglut. 2010-04-01 22:25:49 +08:00
Chia-I Wu
589f6740ea progs/egl: Port eglgears to eglut. 2010-04-01 22:25:49 +08:00
Chia-I Wu
57cc1db87b progs/egl: Add eglut.
eglut is a simple library with GLUT-like API.  It is intended to be used
by simple EGL demos.
2010-04-01 22:25:48 +08:00
Chia-I Wu
fc3ddd4b56 progs/openvg: Move OpenVG demos to a subdirectory of progs/egl.
That is, move

  progs/openvg/demos to progs/egl/openvg,
  progs/openvg/trivial to progs/egl/openvg/trivial.
2010-04-01 22:25:48 +08:00
Chia-I Wu
7f231cab2b progs/es: Move OpenGL ES demos to subdirectories of progs/egl.
Move

  progs/es1/xegl -> progs/egl/opengles1,
  progs/es1/screen -> progs/egl/opengles1/screen,
  progs/es2/xegl -> progs/egl/opengles2.
2010-04-01 22:25:48 +08:00
Chia-I Wu
c727ef0108 progs/egl: Move demos a level deeper.
Move the demos to "opengl" subdirectory.
2010-04-01 22:25:48 +08:00
José Fonseca
2da7ef077a llvmpipe: More tweaks to the supported texture formats. 2010-04-01 15:16:26 +01:00
José Fonseca
6b1a8e0f87 gallium/unit: Invoke util_half_init_tables().
half float formats now pass the tests.
2010-04-01 15:15:57 +01:00
José Fonseca
89034b8ae7 util: Declare util_half_init_tables only once. 2010-04-01 15:15:28 +01:00
José Fonseca
982d36667d util: Use u_math.h's union fi instead of redefining it. 2010-04-01 15:11:05 +01:00
José Fonseca
08eb07bc83 util: Add support for other DXTn RGBA formats. 2010-04-01 15:07:14 +01:00
José Fonseca
8548efbe1d util: Get DXT1_RGB format working correctly. 2010-04-01 14:43:35 +01:00
José Fonseca
ca6aacf842 util: Add test case for PIPE_FORMAT_DXT1_RGB. 2010-04-01 13:34:24 +01:00
José Fonseca
9899ebd2fc llvmpipe: Fix build... 2010-04-01 13:20:00 +01:00
José Fonseca
d099554492 util: Allow to have block format test cases 2010-04-01 13:12:43 +01:00
Michal Krol
943408533d util: Generate correct format conversions for half floats. 2010-04-01 13:56:03 +02:00
Michal Krol
b7bca4b28c util: Use u_half to perform half <--> float conversions. 2010-04-01 13:33:08 +02:00
Michal Krol
5a359df219 gallium: Integrate util_half with scons. 2010-04-01 13:33:08 +02:00
Luca Barbieri
3ff175d6de 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.
2010-04-01 13:33:07 +02:00
José Fonseca
110e039d0d gallium/unit: Install test in build/xxx/bin 2010-04-01 11:52:54 +01:00
José Fonseca
f706f12bbf util: Add half float test cases. 2010-04-01 11:52:00 +01:00
José Fonseca
898ddd6b00 llvmpipe: Fix (un)swizzling, broken due to use of VOID channels. 2010-04-01 11:31:27 +01:00
Vinson Lee
bef912abd3 mesa: Remove unnecessary header. 2010-03-31 23:44:29 -07:00
Vinson Lee
e6be593fbf r300g: Remove unnecessary header. 2010-03-31 23:36:06 -07:00
Luca Barbieri
7326851757 util/format: fix big endian compilation by not trying to byteswap single bytes
Conceivably, we could also have a dummy util_bswap8, but it seems better
to not emit it in the first place.
2010-04-01 06:23:30 +02:00
Zack Rusin
2fb655d1db gallivm: convert floats to doubles
printf can't handle floats, convert them to doubles so that we can
actually print floats.
2010-03-31 21:30:37 -04:00
Marek Olšák
2ab7375572 r300g: add RGBA16F colorbuffer support
Disabled by default due to unresolved IP issues.
2010-04-01 02:21:06 +02:00
Marek Olšák
3252651fb2 r300g: add RGTC texture support
The CS checker already knows about this.
2010-04-01 02:14:52 +02:00
Marek Olšák
39e116e3a0 r300g: format handling cleanup 2010-04-01 01:13:26 +02:00
José Fonseca
f45d43a17f softpipe: Use S3TC when avaiilable, 2010-03-31 22:47:11 +01:00
José Fonseca
9388ce4191 util: Hook into libtxc_dxtn.so (WIP). 2010-03-31 22:46:42 +01:00
José Fonseca
b5d073b39d llvmpipe: Don't call unused generate_clamp(). 2010-03-31 21:37:57 +01:00
José Fonseca
36e92a0494 libgl-xlib: Fix missing X11 symbols. 2010-03-31 21:27:47 +01:00
José Fonseca
018aae950d util: Make the accessors bidimensional again.
Otherwise there's no way to unpack blocks with height >1
2010-03-31 21:27:47 +01:00
Michal Krol
b8012643e1 util: First stab at half-float conversion. 2010-03-31 21:55:31 +02:00
José Fonseca
329814c6ee util: Describe PIPE_FORMAT_NONE as PIPE_FORMAT_R8_USCALED.
Avoids the need to special case PIPE_FORMAT_NONE so often.

Conflicts:

	src/gallium/auxiliary/util/u_format_table.py
2010-03-31 20:19:14 +01:00
José Fonseca
9fcf2b87b3 util: Silence pointer to integer size mismatch errors. 2010-03-31 20:16:15 +01:00
José Fonseca
69895725cf util: Add callback to fetch a single pixel. 2010-03-31 20:15:17 +01:00
José Fonseca
3200e70858 python/tests: Read the number of tests to execute from command line. 2010-03-31 20:05:10 +01:00
José Fonseca
96548d80e5 mesa: Use a consistent name of the external s3tc library for all windows compilers. 2010-03-31 19:53:25 +01:00
José Fonseca
93eee0537f scons: Force to consider the util/u_format_pack.py for util/u_format_table.c. 2010-03-31 19:43:57 +01:00
José Fonseca
cf5cd836de scons: Don't always include/links X11 headers/libs.
Move it into a separate tool.

TODO: Needs to be "tooled" in each SConscript that uses it.
2010-03-31 18:40:10 +01:00
José Fonseca
6047c89a23 scons: Don't always link expat.
Only needed for DRI. Should be linked in DRI specific subdirectories.
2010-03-31 18:38:23 +01:00
José Fonseca
e1c1911435 llvmpipe: Disable threads by default on embedded. 2010-03-31 18:38:12 +01:00