Commit graph

14368 commits

Author SHA1 Message Date
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
Keith Whitwell
615cdd3a53 tgsi: use new float math funcs, drop local disassembly code 2008-04-21 13:14:30 +01:00
Keith Whitwell
f30f320612 util: add wrappers for float math functions on windows 2008-04-21 13:14:30 +01:00
Keith Whitwell
b6c9d2ef2c rtasm: add dump facility for x86 (from tgsi_sse2.c) 2008-04-21 13:14:30 +01:00
Zack Rusin
201ac414d4 make llvm draw paths compile with the latest changes
switch the method of distribution of builtins (to get rid of the
llvm2cpp dependency)
2008-04-21 00:26:18 -04:00
José Fonseca
40e0439db4 gallium: Centralize SSE usage logic. 2008-04-21 13:02:59 +09:00
José Fonseca
29858e1b55 gallium: Refcount textures.
Pipe driver does refcount textures. If cso_context does not, dangling
pointers appear.
2008-04-20 14:41:29 +09:00
Keith Whitwell
68a7cb21fa draw: rearrange debug code 2008-04-19 20:20:40 +01:00
Keith Whitwell
d0a4bf08b1 translate: fix several bugs
- specify cdecl calling convention on WIN32
- fix load bgra8 function
- fix previous don't crash fix.
2008-04-19 20:18:40 +01:00
Keith Whitwell
bfd179776f draw: add missing translate->set_buffer for fetch emit path 2008-04-19 18:41:53 +01:00
Keith Whitwell
b1158a5e00 translate: don't crash on failure to create sse version 2008-04-19 18:27:30 +01:00
Keith Whitwell
af523a5bd7 rtasm: include yet another i386 define varient 2008-04-19 18:27:29 +01:00
Keith Whitwell
d3cb62b8b3 draw: fix scons build 2008-04-19 18:27:29 +01:00
Keith Whitwell
7d72607e14 draw: move incoming vertex state into draw->pt
This state is effectively private to the vertex processing part
of the draw module.
2008-04-19 17:27:52 +01:00
Keith Whitwell
dcf6f776ce draw: make draw_reset_vertex_ids private to the draw_pipe_* code 2008-04-19 17:16:41 +01:00
Keith Whitwell
2dae208fb1 draw: make room for extra_vs_outputs 2008-04-19 17:16:23 +01:00
Keith Whitwell
e7bac42766 draw: put pipeline flushing behind a new interface 2008-04-19 16:43:15 +01:00
Keith Whitwell
bee1d31641 draw: move pt_pipeline code to draw_pipe.c
This is now the drawing interface to the pipeline.  No more
calling into pipeline.first->tri(), etc.
2008-04-19 16:39:43 +01:00
Keith Whitwell
c898eae272 draw: always emit header in draw_pt_fetch.c 2008-04-19 15:35:22 +01:00
Keith Whitwell
507fbe2d32 draw: move some pipeline-specific code & state to draw_pipe.[ch] 2008-04-19 15:29:27 +01:00
Keith Whitwell
0959f909ba draw: remove dead file pipe_wide_prims.c 2008-04-19 13:30:19 +01:00
Keith Whitwell
1246d06313 draw: remove named clipmask flags, tidy up pt middle ends 2008-04-19 13:20:26 +01:00
Keith Whitwell
882e5d84dc draw: remove dead code 2008-04-19 13:12:42 +01:00
Keith Whitwell
26831bdac5 draw: rename pipeline files to draw_pipe_* 2008-04-19 00:45:05 +01:00