Commit graph

115447 commits

Author SHA1 Message Date
Brian Paul
8f4f89c043 gallium: remove assertions
It's possible the current vs/fs is null when cso_save_vertex/fragment_shader()
is called.
2008-04-22 14:44:07 -06:00
Brian Paul
b456f1374f gallium: st_translate_fragment_program() is void now
The return value was never used.
2008-04-22 14:44:07 -06:00
Jakob Bornecrantz
6b4798b906 i915: Fixed weird fence leak when I915_VBUF=true 2008-04-22 22:23:22 +02:00
Keith Whitwell
4ebede8c7f Revert "softpipe: squash warning"
This reverts commit 1f0f029ba6.

Which broke the debug build.
2008-04-22 21:17:21 +01:00
Keith Whitwell
0588858702 draw: allow drivers to query pipeline state more easily
Also, provide a separate flag to say whether the driver can handle
clipping/rhw tasks, in addition to the API flag which indicates they
have already been done.
2008-04-22 20:50:20 +01:00
Keith Whitwell
1f0f029ba6 softpipe: squash warning 2008-04-22 20:32:22 +01:00
Alan Hourihane
936dba1de5 Fix error string 2008-04-22 20:32:06 +01:00
Alan Hourihane
c8666cfb0b correct the return value 2008-04-22 20:31:58 +01:00
Alan Hourihane
eec20c359d small cleanups 2008-04-22 20:30:38 +01:00
Keith Whitwell
88f8eed3c4 cso: fix vs/fs confusion 2008-04-22 15:26:38 +01:00
Keith Whitwell
f9b1d47d65 softpipe: do something sensible on an error path, squash warning 2008-04-22 15:15:57 +01:00
Michel Dänzer
fd4acd6fda gallium: How about restoring shaders instead of saving them again... 2008-04-22 14:22:11 +01:00
Michel Dänzer
57b85e197b gallium: Don't link x86sse.c into libmesa.a.
Otherwise we get a symbol clash with the copy in src/gallium/util .
2008-04-22 12:18:31 +01:00
José Fonseca
b4b3a73bdf pipebuffer: Temporarily allow simultaneous CPU writes.
Also, fast path for re-fencing the same buffer multiple times with the same fence.
2008-04-22 19:47:12 +09:00
Keith Whitwell
57987ea673 draw: disable broken edgeflag code - didn't work & was killing performance 2008-04-22 11:26:07 +01:00
Keith Whitwell
6a9f6625b3 xlib: shortcircuit no-op makecurrent 2008-04-22 11:15:51 +01:00
Keith Whitwell
d07ed9216c xlib: implement SP_NO_RAST env var 2008-04-22 11:02:24 +01:00
Keith Whitwell
a5b87f249e softpipe: implement SP_NO_RAST env var 2008-04-22 11:02:24 +01:00
Keith Whitwell
09b6686158 softpipe: make NUM_ENTRIES 32 so that div/mods are easier 2008-04-22 11:02:24 +01:00
Michal Krol
83fec372b4 cso: Fix build on Win32. 2008-04-22 11:26:26 +02:00
Xiang, Haihao
6e620162a1 i965: fix DEPTH_TEXTURE_MODE (bug #14220) 2008-04-22 16:25:23 +08:00
Zou Nan hai
c9c64a100d [i965] This is to fix random crash in some maps of Ut2004 demo.
e.g. bridge of fate.
 	If vs output is big, driver may fall back to use 8 urb entries for vs,
	unfortunally, for some unknown reason, if vs is working at 4x2 mode,
	8 entries is not enough, may lead to gpu hang.
2008-04-22 15:50:40 +08:00
Xiang, Haihao
f61e51ee98 i965: save the offset of target buffer after last execution, not relocatee buffer. 2008-04-22 11:11:42 +08:00
Zack Rusin
ed187d39a6 make the api consistent (all set functions return pipe_error status) 2008-04-21 16:40:27 -04:00
Zack Rusin
0879237725 handle some of the possible allocation failures within the hash itself 2008-04-21 16:10:55 -04:00
Zack Rusin
9fe6392901 initial stab at error handling in cso 2008-04-21 16:10:03 -04:00
Keith Whitwell
9a0e6860d3 cso: disable not-really-working cso_set_*_shader() funcs 2008-04-21 21:05:11 +01:00
Keith Whitwell
e406ad5912 draw: squash a couple of memory leaks 2008-04-21 21:01:38 +01:00
Keith Whitwell
01dfa6cde1 use cso fs/vs handle functions 2008-04-21 20:52:54 +01:00
Keith Whitwell
1dc5e56f3e cso: provide functions to bind fs/vs handles directly 2008-04-21 20:52:54 +01:00
Keith Whitwell
c2afa182f3 mesa: remove st_cache.c 2008-04-21 20:52:53 +01:00
Zack Rusin
fb1c09305e Use llvm 2.3 (2.2 won't work because of a lot of problems, e.g.
lack of constant vectors handling in execution engine)
2008-04-21 15:18:13 -04:00
Keith Whitwell
a945420ae6 rtasm: debug some missing funcs 2008-04-21 19:48:21 +01:00
Keith Whitwell
73706deef5 rtasm: quieten sse_enabled debug 2008-04-21 19:48:08 +01:00
Keith Whitwell
73c2711bb1 rtasm: clean up debug dumping a little 2008-04-21 19:43:53 +01:00
Keith Whitwell
785831fc6f cso: propogate one easy error - many more 2008-04-21 19:12:08 +01:00
Keith Whitwell
d3db46eb82 translate: fail on x86 rtasm fail 2008-04-21 19:12:08 +01:00
Keith Whitwell
b17e123a8f rtasm: propogate errors in x86 emit 2008-04-21 19:12:08 +01:00
Michel Dänzer
65efe807b9 gallium: Use CSO cache for shaders. 2008-04-21 17:51:39 +01:00
Zack Rusin
0824fb1d6a actually write the results 2008-04-21 12:42:37 -04:00
Keith Whitwell
30b4dc2909 draw: more propogation -- pstipple stage. 2008-04-21 17:17:27 +01:00
Keith Whitwell
0d4ece4c5a draw: propogate lots of errors 2008-04-21 17:03:37 +01:00
Keith Whitwell
0cd90a917d draw: propogate errors out of aapoint stage 2008-04-21 16:45:41 +01:00
Keith Whitwell
69ecc2a577 draw: propogate errors out of aaline stage 2008-04-21 16:38:09 +01:00
Keith Whitwell
a918a9c744 draw: consolidate all the passthrough line/tri/point funcs 2008-04-21 16:16:16 +01:00
José Fonseca
d3045ebb06 gallium: Hash the fragment shader tokens, instead of pipe_shader_state.
PS: pipe_shader_state should probably go away now that it is reduced to a single pointer.
2008-04-22 00:16:04 +09:00
José Fonseca
e29583afcb gallium: Include dependent header. 2008-04-22 00:14:08 +09:00
José Fonseca
13d8b1b211 gallium: Set all state via cso_context in blit/gen_mipmap utils.
cso_restore_* functions are implemented on top of cso_set_*, therefore
they require full knowledge of the current pipe state to work correctly.
Directly calling pipe's set_*_state functions will lead to undefined state.

Also save and restore shaders.
2008-04-21 22:26:33 +09:00
José Fonseca
08717d9461 gallium: Do not mistake pipe state objects for state tracker state objects. 2008-04-21 22:23:31 +09:00
Keith Whitwell
76a3590046 util: work around freaky win32 math.h 2008-04-21 14:19:15 +01:00