Commit graph

15333 commits

Author SHA1 Message Date
Brian Paul
38bacb6f32 cell: implement colormask on fallback path
Also, some var renaming and additional comments
2008-09-12 11:43:37 -06:00
Brian Paul
9defef29c5 gallium: avoid redundant tgsi_exec_machine_bind_shader() calls on draw exec path
tgsi_exec_machine_bind_shader() isn't cheap so avoiding unecessary calls
is a big win.
A similar change should be done for softpipe's fragment exec path but
extra care needs to be taken with the texture sampler state/params.
2008-09-12 11:42:33 -06:00
Brian Paul
bd34b8a4fe gallium: use copy_token() function to avoid type punning/aliasing problems
This fixes parsing errors seen with optimized builds on PPC (which led to crashes).
The memcpy() is heavy-handed, but works.  A lighter uint assignment could
be used on x86...
2008-09-12 11:40:31 -06:00
Brian Paul
73193b7735 cell: fix twiddled tile display for XSHM. Fixed blank window problem. 2008-09-12 11:35:22 -06:00
Brian Paul
31d2e5b954 gallium: use new compare32() function to fix warnings about type punning and aliasing 2008-09-12 11:02:18 -06:00
Brian Paul
50f78fcc2e gallium: silence warning 2008-09-12 11:01:31 -06:00
Brian Paul
a449465556 cell: fix non-debug build error 2008-09-12 09:43:11 -06:00
Brian Paul
e8b199c6e3 cell: implement swizzling for src regs 2008-09-12 08:48:08 -06:00
Brian Paul
6c0fa79857 cell: setup fragment program inputs in SOA format
Also remove old code, etc.
2008-09-12 08:47:45 -06:00
Brian Paul
b71f4150c8 gallium: minor optimization to spe_load_int() 2008-09-12 08:22:15 -06:00
Brian Paul
be5d8bd078 gallium: initial PPC/Altivec codegen 2008-09-12 08:21:43 -06:00
Brian Paul
fa0aa1443b cell: disable calls to old gen code 2008-09-12 07:57:08 -06:00
Brian Paul
690f5af337 gallium: don't build winsys/ here 2008-09-12 07:56:43 -06:00
Jakob Bornecrantz
3df0647027 i915simple: A step closer to compiling 2008-09-12 15:09:44 +02:00
Keith Whitwell
4b458555ab mesa: regenerate shader files 2008-09-12 12:23:28 +01:00
Keith Whitwell
176c454765 Merge commit 'origin/gallium-0.1' into gallium-0.2
Conflicts:

	progs/fp/Makefile
2008-09-12 10:31:23 +01:00
Keith Whitwell
af74abab6b mesa: get fixed-function program generation working again 2008-09-12 10:04:56 +01:00
Brian Paul
aa66f08a21 cell: initial support for fragment shader code generation.
TGSI shaders are translated into SPE instructions which are then sent to
the SPEs for execution.  Only a few opcodes work, no swizzling yet, no
support for constants/immediates, etc.
2008-09-11 17:59:52 -06:00
Brian Paul
084ab37b7f cell: fix tile twidding bug seen in the event of multiple expose events 2008-09-11 17:10:32 -06:00
Brian Paul
bc304bbd49 cell: minor improvements to fragment code-gen 2008-09-11 17:10:32 -06:00
Brian Paul
178bbaff80 gallium: add special cases in spe_load_float(), spe_load_int(), added spe_splat() 2008-09-11 17:10:32 -06:00
Brian Paul
be925ab6e8 cell: put cell_ prefix on gen_fragment_function() 2008-09-11 17:10:32 -06:00
Keith Whitwell
b66ee9e32f st: adapt to new framebuffer struct, with one FIXME outstanding 2008-09-11 20:09:14 +01:00
Keith Whitwell
7ee599d30b mesa: update PointParameter usage 2008-09-11 20:08:07 +01:00
Brian Paul
fbf1586b36 gallium: typo: s/PIPE_FORMAT_Z16UNORM/PIPE_FORMAT_Z16_UNORM/ 2008-09-11 12:01:19 -06:00
Dima Zavin
7d3d5fb7a5 egl_xdri: Add the top-level lib dir so we link against the libGL we built. 2008-09-11 11:43:56 -06:00
Dima Zavin
912488a8d0 egl_dri/egl_xdri: Makefiles should use pkg-config to find libdrm. 2008-09-11 11:43:56 -06:00
Keith Whitwell
536092f9e0 xlib: fix typo 2008-09-11 18:35:19 +01:00
Keith Whitwell
cc7dd4fc1b Merge commit 'origin/gallium-0.1' into gallium-0.2
Conflicts:

	Makefile
	progs/demos/Makefile
	progs/glsl/Makefile
	progs/redbook/Makefile
	progs/samples/Makefile
	progs/tests/Makefile
	progs/trivial/Makefile
	progs/xdemos/Makefile
	src/gallium/Makefile
	src/mesa/main/attrib.c
	src/mesa/main/bufferobj.c
	src/mesa/vbo/vbo_exec_draw.c
2008-09-11 18:32:05 +01:00
Keith Whitwell
685248bea1 mesa: use sources.mak -- need to figure out how to support non-gallium builds also 2008-09-11 18:08:01 +01:00
Alan Hourihane
cdd97ceca0 add gallium dir
winsys/common -> winsys/
2008-09-11 18:06:05 +01:00
Brian Paul
d50d68a1c9 glut: only call glFinish() in processWindowWorkList() for indirect contexts.
Basically, do as the comment says.
2008-09-11 11:05:13 -06:00
Alan Hourihane
5835d7e573 tree builds 2008-09-11 17:59:58 +01:00
Brian Paul
7ce1d0fb67 cell: more comments, stub code for colormask/logicop/etc 2008-09-11 10:52:03 -06:00
Brian Paul
1b5331d7eb cell: fix typos in blend code-gen 2008-09-11 10:39:30 -06:00
Brian Paul
73c6ae98c1 cell: remove old state CMDs, added comments 2008-09-11 10:39:30 -06:00
Brian Paul
f6bf8d9d41 cell: clean-up, comments 2008-09-11 10:39:30 -06:00
Brian Paul
a558369ec6 cell: disable NEW_VS emit 2008-09-11 10:39:29 -06:00
Brian Paul
924653e37d cell: don't build unused sources 2008-09-11 10:39:29 -06:00
Brian Paul
f19903aa83 cell: remove old blend/depth/stencil/logicop structs 2008-09-11 10:39:29 -06:00
Brian Paul
aa4a08d429 cell: asst. clean-up 2008-09-11 10:39:29 -06:00
Brian Paul
283ffdf996 cell: checkpoint: remove more of the old per-fragment code 2008-09-11 10:39:29 -06:00
Brian Paul
add86031db cell: begin new blending code (both codegen and fallback paths) 2008-09-11 10:39:29 -06:00
Brian Paul
6092a05704 cell: fix shuffle in spu_unpack_B8G8R8A8() 2008-09-11 10:39:29 -06:00
Brian Paul
5336e758a4 cell: added cast in spu_splats() call 2008-09-11 10:39:28 -06:00
Brian Paul
701fcee65d cell: remove old per-fragment code, replace with all new code 2008-09-11 10:39:28 -06:00
Brian Paul
284ab5a612 cell: checkpoint commit of new per-fragment processing
Do code generation for alpha test, z test, stencil, blend, colormask
and framebuffer/tile read/write as a single code block.
Ian's previous blend/z/stencil test code is still there but mostly disabled
and will be removed soon.
2008-09-11 10:39:28 -06:00
Brian Paul
ee582fd3a7 gallium: assorted additions and fixes to Cell SPE rtasm code
Fix incorrect opcode for fsmbi.
Added "macro" functions for loading floats/ints, register complement, zero, move.
Added #defines for return address and stack pointer registers.
Added assertions to check that the instruction buffer doesn't overflow.
2008-09-11 10:39:28 -06:00
Brian Paul
04ae4fba3c cell: minor change to Z float/int conversion code (avoid switch) 2008-09-11 10:39:28 -06:00
Brian Paul
cd9722dcdd cell: comments 2008-09-11 10:39:28 -06:00