Commit Graph

2133 Commits

Author SHA1 Message Date
Vinson Lee
c87e6e50ee progs/gallium/unit: Silence uninitialized variable warnings. 2010-04-02 01:08:31 -07:00
Vinson Lee
36ed9a7f13 progs/gallium/unit: Move declaration before code.
Fixes SCons build.
2010-04-01 22:29:23 -07:00
Luca Barbieri
2a090ae80a gallium/util: revert util_format_init addition
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.
2010-04-02 06:16:30 +02:00
Luca Barbieri
5126683e3b gallium/util: add util_format_is_supported to check for pack/unpack
This improves the code by making it more readable, and removes
special knowledge of S3TC and other formats from softpipe.
2010-04-02 06:16:30 +02:00
Luca Barbieri
6259264c57 progs/gallium: add unit test for u_half 2010-04-02 06:16:30 +02:00
Chia-I Wu
c36d15d158 progs/egl: Update .gitignore. 2010-04-02 10:03:31 +08:00
Chia-I Wu
1054f22e48 progs/egl: Link to eglut first.
This moves eglut before EGL so that the symbols can be resolved.
2010-04-02 10:01:00 +08:00
Luca Barbieri
aee5bb5b8a 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
2010-04-02 02:31:43 +02:00
Jeremy Huddleston
115203281c Revert accidental commits from the xquartz tree
This reverts commit 9aadc793f3.
This reverts commit 69ea4e7718.
This reverts commit dbe8b01393.
This reverts commit 23215ef4d6.
This reverts commit 9495e37030.
This reverts commit 0594cf7088.
This reverts commit 86a7978d37.
This reverts commit 437902ce97.
2010-04-01 17:01:51 -07:00
Jeremy Huddleston
86a7978d37 xdemos: Build object files first
This helps debugging on darwin.

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-04-01 12:33:39 -07:00
Jeremy Huddleston
437902ce97 xdemos: Fix a build failure for non-autoconf configs
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2010-04-01 12:14:45 -07:00
Luca Barbieri
4edffe026e 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.
2010-04-01 18:52:02 +02:00
José Fonseca
675fcb6cae python/tests: We're using a rgba8 rendertarget so sample only in the [0, 1] range. 2010-04-01 17:46:59 +01:00
José Fonseca
811e602954 python/tests: Several cleanups. 2010-04-01 17:46:59 +01: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
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
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
d099554492 util: Allow to have block format test cases 2010-04-01 13:12:43 +01:00
José Fonseca
110e039d0d gallium/unit: Install test in build/xxx/bin 2010-04-01 11:52:54 +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
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
96bf4aff5b util: Put the format pack/unpack functions in the description table. 2010-03-31 15:32:16 +01:00
José Fonseca
e245ca74e1 util: Make pack/unpack operate on spans. 2010-03-31 15:32:16 +01:00
José Fonseca
325d55303d util: Make util_format_xxx_pack_xxx take pointer as arguments. 2010-03-31 14:31:29 +01:00
José Fonseca
d0258ca59d python/tests: Run trhough tests randomly. 2010-03-31 14:05:55 +01:00
José Fonseca
e566046efc python/tests: Rename test name.
We only test blitting from a surface -- we don't test any sampler state.
2010-03-31 13:28:36 +01:00
José Fonseca
6de8f86ab4 python/tests: Test all existing gallium formats. 2010-03-31 13:27:08 +01:00
José Fonseca
aae63a7109 python/tests: Speed up the tests by reusing the same pipe context. 2010-03-31 13:12:24 +01:00
José Fonseca
fceee46022 python/tests: Get the tests running again. 2010-03-31 13:12:24 +01:00
Michel Dänzer
e5c7d1e1c8 Merge branch '7.8'
Conflicts:
	Makefile
	src/mesa/main/version.h

Resolved by keeping version strings from master (also in the intel driver).
2010-03-30 12:01:31 +02:00
Vinson Lee
90075f34e2 progs/glsl: Add workarounds for Apple GLSL compiler crash.
fsraytrace and vsraytrace were crashing on Mac OS X 10.6.3 in the Apple
GLSL compiler function TPPStreamCompiler::assignOperands. Removing some
const qualifers made the crashes go away.
2010-03-29 14:56:12 -07:00
Vinson Lee
52f7289215 progs/glsl: Remove inline keyword.
Fixes MSVC build.
2010-03-29 13:58:39 -07:00
José Fonseca
bbe6788807 progs/gallium/python: Get tri.py sample working again. 2010-03-29 21:22:23 +01:00
Brian Paul
909f0b356e progs/glsl: improve the mouse drag/rotate code a little 2010-03-29 11:47:38 -06:00
RALOVICH, Kristóf
8ca937fc3b progs/glsl: let the mouse rotate the scene 2010-03-29 11:47:38 -06:00
Vinson Lee
21a96a55d6 progs: Comment out gallium/raw/SConscript from progs/SConscript.
Commit db5c2235d1 broke the default SCons
build.
NameError: name 'graw' is not defined:

This patch allows the default SCons build to work again until a proper
fix is available.
2010-03-28 13:52:11 -07:00
Keith Whitwell
1cf669db59 progs/raw: add note about accessing utility functions 2010-03-28 10:42:38 -07:00
Keith Whitwell
db5c2235d1 gallium: new raw gallium interface to support standalone tests
Provides basic window system integration behind a simple interface,
allowing tests to be written without dependency on either the driver
or window system.

With a lot of work, could turn into something like glut for gallium.
2010-03-28 10:42:38 -07:00