Commit graph

13455 commits

Author SHA1 Message Date
Ian Romanick
d119931002 Cell: Add missing "gallium/winsys" to SRC_DIRS to fix build. 2008-02-19 09:43:47 -08:00
Ian Romanick
66be2810c3 Cell: emit vertex shaders and uniforms more intelligently 2008-02-19 08:41:04 -08:00
Ian Romanick
4362c6e59d Cell: trivial clean-ups 2008-02-19 08:41:04 -08:00
José Fonseca
5480a6bc13 Fix windows build. 2008-02-19 18:57:25 +09:00
José Fonseca
b62f0ddd09 Portability fixes.
Eliminate C99/C++ constructs.

(We should actually disable gcc C99 syntax options if we are serious about
portability.)
2008-02-19 18:56:55 +09:00
José Fonseca
d710a7cfb2 Windows (DDK) compilation support.
It also works when cross compiling with Wine.
2008-02-19 18:53:16 +09:00
José Fonseca
b9da3791c9 Remove src/mesa and src/mesa/main from gallium source include paths. 2008-02-19 15:07:53 +09:00
José Fonseca
5d78212d75 Bring in ppc spe rtasm into gallium's rtasm module.
Moving files since these are not being used outside gallium.
2008-02-19 14:06:11 +09:00
José Fonseca
b0eef0dc25 Add run-time cpu capabilities detection stubs. 2008-02-19 14:06:11 +09:00
José Fonseca
90b2beb661 Simplify makefile boilerplate code.
Don't define ASM_SOURCES variable globally -- reserve that variable to be defined
locally by makefiles, together with C_SOURCES and CPP_SOURCES.
2008-02-19 14:06:11 +09:00
José Fonseca
f430d95a36 Use gallium's rtasm module. 2008-02-19 14:01:49 +09:00
José Fonseca
17158c2f00 Move mm.c code into util module.
Using the u_ prefix to distingish the c source files that support gallium
interfaces and those that have really no relation with gallium itself.
2008-02-19 14:01:49 +09:00
José Fonseca
d2f6c9ab10 Add copyright headers to all rtasm source files. 2008-02-19 14:01:49 +09:00
José Fonseca
39ea030842 Rename rtasm files. 2008-02-19 14:01:49 +09:00
José Fonseca
df8ab3140c Bring rtasm from mesa to gallium. 2008-02-19 14:01:49 +09:00
José Fonseca
e773a813cf Initial scons support to build gallivm.
Not yet complete.
2008-02-19 14:01:49 +09:00
José Fonseca
e279b1c57a More llvm -> gallivm.
Forgot this one on the last commit.
2008-02-19 14:01:49 +09:00
Brian
6c7f663cb9 gallium: move draw_set_viewport_state() call, plus code clean-up, remove obsolete comments 2008-02-18 18:39:55 -07:00
Brian
ae9931dad2 gallium: call draw_flush() for scissor/stipple state changes 2008-02-18 18:36:20 -07:00
Brian
478c14453b gallium: remove the prototype/unused wide_line_aa() function 2008-02-18 16:50:07 -07:00
Brian
aceeb80d4f gallium: antialiased line drawing
New draw/prim stage: draw_aaline.  When installed, lines are replaced by
textured quads to do antialiasing.  The current user-defined fragment shader
is modified to do a texture fetch and modulate fragment alpha.
2008-02-18 16:19:05 -07:00
José Fonseca
0448dbd64a Update for llvm -> gallivm rename. 2008-02-18 12:33:34 +00:00
José Fonseca
3f3b09d6d8 Rename llvm -> gallivm.
Following the directory == library name policy simplifies the build system.
2008-02-18 20:05:06 +09:00
José Fonseca
687a8b96ef Standardize on using the pipe/ include prefix. 2008-02-18 20:02:42 +09:00
José Fonseca
33ceb6716a Update scons build for new code layout. 2008-02-18 10:52:44 +00:00
José Fonseca
9df478d2f8 Add an "all" target alias for "default" target.
"all" is more commonly expected, expecially by many IDEs.
2008-02-18 16:47:35 +09:00
José Fonseca
1f2d011786 Build glx/x11. 2008-02-18 15:45:29 +09:00
José Fonseca
8450b14676 Cleanup depend files. 2008-02-18 15:37:52 +09:00
José Fonseca
39fe5851a5 Actually use GALLIUM_DRIVER_DIRS. 2008-02-18 15:07:17 +09:00
José Fonseca
bfd5916eaf Code reorganization: split gallium and mesa makefiles.
In other words, don't build src/gallium source code from within src/mesa/Makefile.

Also, allow to customize which gallium auxiliary dirs, driver driver, winsys
dirs get built from the config/* files.
2008-02-18 14:25:04 +09:00
José Fonseca
56bf73b1fb Update doxygen configuration file for new tree layout. 2008-02-18 12:08:35 +09:00
Zack Rusin
4a79156812 fix the build 2008-02-17 09:43:02 -05:00
Brian
0c6bbd41bd gallium: add missing mip level clamp 2008-02-16 13:55:47 -07:00
Brian
3b2a291888 gallium: tweak texture filter min/mag thresholds 2008-02-16 13:50:31 -07:00
Brian
08c9534107 gallium: implement min vs. mag filter determination for non-mipmapped textures
Fixes tests/minmag.c
2008-02-16 10:05:24 -07:00
Brian
f9973b1c3d Added minmag.c test
Test that different minification and magnification filters are chosen for the
non-mipmapped texture case.
2008-02-16 10:05:24 -07:00
Ian Romanick
3320b1874e Cell: Enable code gen for SPE attribute fetch
Doubles are still unsupported.
2008-02-15 11:03:54 -08:00
Ian Romanick
71071b7a9e Cell: Add missing back-slash in linux-cell config file 2008-02-15 10:36:48 -08:00
Ian Romanick
eb3f7aa6f8 Cell: Add INCLUDE_DIRS to SPU_CFLAGS to fix build. 2008-02-15 10:33:12 -08:00
Ian Romanick
b08d3fa249 Make this file build on non-SSE builds (e.g., Cell) 2008-02-15 10:00:31 -08:00
Ian Romanick
397b81bd1c Move cell_vertex_fetch.c for recent code reorg. 2008-02-15 09:43:13 -08:00
Ian Romanick
55e64b63ad Initial version of code gen for attribute fetch 2008-02-15 09:40:44 -08:00
Ian Romanick
2cc0c3b997 Correct the convert to and from float instructions 2008-02-15 09:40:44 -08:00
Keith Whitwell
c179bc9901 tgsi: pass through failure to sse-codegenerate for fragment programs too.
In particular, will fallback to interpreted execution for shaders with
TEX instructions.
2008-02-15 13:39:24 +00:00
Keith Whitwell
b29d8d2729 draw: subclass vertex shaders according to execution method
Create new files for shaders compiled/executed with llvm, sse, exec
respectively
2008-02-15 13:37:01 +00:00
Keith Whitwell
e822e09b89 softpipe: rename some functions to disambiguate 2008-02-15 13:35:46 +00:00
Keith Whitwell
30d0bacf7a Merge commit 'origin/gallium-0.1' into gallium-0.1 2008-02-15 11:18:04 +00:00
Keith Whitwell
6ac2c1cc0c Merge commit 'origin/gallium-0.1' into gallium-0.1
Conflicts:

	src/gallium/drivers/softpipe/sp_quad_fs.c
	src/gallium/drivers/softpipe/sp_state.h
	src/gallium/drivers/softpipe/sp_state_fs.c
2008-02-15 11:15:47 +00:00
José Fonseca
66f22aa3bf Code reorganization: s/aux/auxiliary/ -- update build. 2008-02-15 20:11:40 +09:00
José Fonseca
92fcbf6e7b Code reorganization: s/aux/auxiliary/.
"aux" is a reserved name on Windows (X_X)
2008-02-15 20:07:18 +09:00