Commit graph

11551 commits

Author SHA1 Message Date
Patrice Mandin
d8a9d850b9 nv30: init zeta to NULL, use color pitch if no zeta 2008-02-22 22:21:15 +01:00
Patrice Mandin
0a5ed0667e nv30: wrong number of parameters 2008-02-22 17:18:27 +01:00
Ben Skeggs
c303cf15dc nouveau: fix potential userbuf crash. 2008-02-16 17:51:44 +11:00
Ben Skeggs
26add9288c nouveau: match gallium code reorginisation.
That was... fun..
2008-02-16 17:23:12 +11:00
Ben Skeggs
87e3301533 Merge branch 'upstream-gallium-0.1' into nouveau-gallium-0.1
Conflicts:

	configs/linux-dri
	src/mesa/pipe/Makefile
2008-02-16 16:30:22 +11:00
Stephane Marchesin
4d9c19d2f7 nv30: fixes. 2008-02-16 03:04:28 +01:00
Stephane Marchesin
4032ff3889 nv30: fixes. 2008-02-16 02:54:22 +01: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
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
Ben Skeggs
6e3e5ba3bb nv40: over-zealous s/ 2008-02-16 02:42:06 +11:00
Ben Skeggs
e82eabaf5e nv40: fix non-debug builds + start on obeying portability guidelines. 2008-02-16 02:31:52 +11: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
Keith Whitwell
c04a7f8929 gallium: reorganize fragment shader execution, unbreak sse
This is probably going to get further reworked in the near future.

Right now there's a new interface wrapped around each shader execution
mode - exec, sse2, llvm.  The llvm code was disabled already and has
just been moved as-is to a new file, whereas the sse2 and exec code is
actually enabled.

The way the interfaces has turned out suggests to me that the correct
approach is to actually have each shader include a pointer to a quad stage
which will do a better job of encapsulating the execution environment than
what I have here -- that's a second step however.
2008-02-15 09:31:22 +00:00
Keith Whitwell
fa9c160389 tgsi: disable dummy sse2 texture code 2008-02-15 08:56:04 +00:00
José Fonseca
6d3831b11d Code reorganization: placeholder for state-trackers.
This is meant for temporarily holding state-trackers,
until they eventually find their way out of gallium tree.
2008-02-15 17:52:14 +09:00
José Fonseca
6acd63a498 Code reorganization: update build.
Update the Makefiles and includes for the new paths.

Note that there hasn't been no separation of the Makefiles yet, and make is
jumping all over the place. That will be taken care shortly. But for now, make
should work. It was tested with linux and linux-dri. Linux-cell and linux-llvm
might require some minor tweaks.
2008-02-15 17:50:12 +09:00
José Fonseca
b642730be9 Code reorganization: move files into their places.
This is in a separate commit to ensure renames are properly preserved.
2008-02-15 17:45:40 +09:00
Zack Rusin
4593be34b2 vastly simplify indexing 2008-02-15 01:17:17 -05:00
Zack Rusin
cf51d5c421 redo indirection
make all load's respect indirection
2008-02-15 01:17:17 -05:00
Zack Rusin
f70cc89dbc redo the way immediates are handled
implement madd
start implementing arl
2008-02-15 01:17:17 -05:00
Zack Rusin
ae3375987f rename 'argument' to 'load' because that's what it does 2008-02-15 01:17:17 -05:00
Zack Rusin
d0364584be implement swizzling on writes 2008-02-15 01:17:16 -05:00
Zack Rusin
13d9e616f6 a call was missed during the last rename 2008-02-15 01:14:59 -05:00
Stephane Marchesin
0a653bef05 nouveau: more nv30 fixes, still doesn't work as well as before. 2008-02-15 04:23:46 +01:00
Stephane Marchesin
01fccea190 nouveau: nv30 fixes. 2008-02-15 03:48:47 +01:00
Ben Skeggs
86bba42023 nv30: more interface updates 2008-02-15 13:55:55 +11:00
Ben Skeggs
8d13f55d2c nv30: fix build 2008-02-15 13:54:07 +11:00
Ben Skeggs
4c239ec2d7 nv40: always copy 4 float immediates for now. 2008-02-15 13:51:12 +11:00
Ben Skeggs
f33fa253c6 nv40: attempt at obeying sampler min_lod/max_lod/lod_bias 2008-02-15 13:51:12 +11:00
Ben Skeggs
7bd15fd271 nv40: remove use of pt->first_level 2008-02-15 13:51:12 +11:00
Brian
67a483909f gallium: initial code for wide/AA line drawing 2008-02-15 13:51:12 +11:00
Brian
4ac85794b1 gallium: fix/finish glReadPixels(GL_DEPTH_COMPONENT).
This fixes demos/reflect ('d' key) and tests/zreaddraw.c
2008-02-15 13:51:12 +11:00
Brian
b487e4b4fb gallium: clamp min_lod so it's never negative 2008-02-15 13:51:12 +11:00
Brian
dee8e268f7 gallium: remove dead code 2008-02-15 13:51:11 +11:00
Brian
c0a22da157 gallium: added null ptr check 2008-02-15 13:51:11 +11:00
Brian
bbdbdaddb0 gallium: rename st_fragment_program's fs field to cso to match st_vertex_program 2008-02-15 13:51:11 +11:00
Brian
aa31fe3b54 gallium: move gen-mipmap global/static vars into st_context
This fixes potential problems with multi-context programs.
2008-02-15 13:51:11 +11:00
Brian
7d99bac7d6 gallium: remove unused first_level param from st_texture_create() 2008-02-15 13:51:11 +11:00
Brian
09e23e077b gallium: clean-up, simplification of mipmapped textures
Remove pipe_texture->first_level (always implicitly zero).  This means there's
never any unused mipmap levels at the top.
In the state tracker, we no longer re-layout mipmapped textures if the
MinLod/MaxLod texture parameters change.  It's up to the driver to obey the
pipe_sampler->min/max_lod clamps.
2008-02-15 13:51:11 +11:00
Ben Skeggs
5d1af60edb nv40: fix inline u08/u16 indices 2008-02-15 13:51:11 +11:00
Brian
3812bba839 gallium: take pitch/stride into account in mipmap generation 2008-02-15 13:51:11 +11:00