OSDN Git Service
Brian Paul [Wed, 23 Apr 2008 23:40:39 +0000 (17:40 -0600)]
gallium: fix comments, whitespace changes
Brian Paul [Wed, 23 Apr 2008 18:11:00 +0000 (12:11 -0600)]
gallium: passthrough tri, not point
Zack Rusin [Wed, 23 Apr 2008 18:07:53 +0000 (14:07 -0400)]
Add translate cache to fetch_emit stage and add out of memory
checks to code creating the cache.
Zack Rusin [Wed, 23 Apr 2008 18:00:13 +0000 (14:00 -0400)]
Create a sharable translate_cache and use it.
Brian Paul [Wed, 23 Apr 2008 17:37:49 +0000 (11:37 -0600)]
gallium: fix potential divide by zero in fog computation
It's legal for Fog.Start == Fog.End and conformance testing does so.
Brian Paul [Wed, 23 Apr 2008 17:36:47 +0000 (11:36 -0600)]
gallium: additional debug code
Brian Paul [Wed, 23 Apr 2008 17:24:42 +0000 (11:24 -0600)]
gallium: move logicop test outside of loop
Brian Paul [Wed, 23 Apr 2008 17:23:12 +0000 (11:23 -0600)]
gallium: fix broken PIPE_BLENDFACTOR_SRC_ALPHA_SATURATE
Brian Paul [Wed, 23 Apr 2008 17:22:18 +0000 (11:22 -0600)]
gallium: more vertex debug code
Zack Rusin [Wed, 23 Apr 2008 17:32:41 +0000 (13:32 -0400)]
fix the simple hash finding function and use it
José Fonseca [Wed, 23 Apr 2008 17:13:31 +0000 (02:13 +0900)]
gallium: Fix texture refcount leak.
José Fonseca [Wed, 23 Apr 2008 16:59:57 +0000 (01:59 +0900)]
pipebuffer: New function to flush the buffer cache.
José Fonseca [Wed, 23 Apr 2008 15:10:51 +0000 (00:10 +0900)]
gallium: Add extern "C" to the headers.
Brian Paul [Wed, 23 Apr 2008 16:29:52 +0000 (10:29 -0600)]
gallium: fix broken hashing for vertex translation
It seems we get hash collisions fairly easily and the code as it was didn't
deal with that properly.
I think we need a simpler hashing interface...
Keith Whitwell [Wed, 23 Apr 2008 12:56:05 +0000 (13:56 +0100)]
draw: remove stupid debug (Keith)
Keith Whitwell [Wed, 23 Apr 2008 12:51:50 +0000 (13:51 +0100)]
draw: add missing break (Jakob)
Keith Whitwell [Wed, 23 Apr 2008 12:10:13 +0000 (13:10 +0100)]
mesa: add dedicated point-wide-smooth test, restore original tri.c as tri-orig.c
Ben Skeggs [Wed, 23 Apr 2008 02:38:37 +0000 (12:38 +1000)]
fix non-i386 builds
Brian Paul [Wed, 23 Apr 2008 01:11:59 +0000 (19:11 -0600)]
gallium: added a flushing_vcache flag, test in draw_do_flush()
Fixes broken polygon stipple, aaline, aapoint stages
Brian Paul [Wed, 23 Apr 2008 01:10:52 +0000 (19:10 -0600)]
gallium: fix bad logic in bind_pstip_fragment_shader(): use &&, not ||
Brian Paul [Wed, 23 Apr 2008 00:38:37 +0000 (18:38 -0600)]
gallium: fix some bitmap frag shader issues
If texturing happens to be enabled when glBitmap() is called, need to be
careful about choosing a sampler unit, etc.
Brian Paul [Wed, 23 Apr 2008 00:38:13 +0000 (18:38 -0600)]
gallium: don't set buffer status to undefined in display_front_buffer()
Zack Rusin [Tue, 22 Apr 2008 22:32:29 +0000 (18:32 -0400)]
In case the 'func' is deleting the state move the iterator before
calling it.
Zack Rusin [Tue, 22 Apr 2008 22:30:31 +0000 (18:30 -0400)]
Fix a crash. Rasterizer can be null
Zack Rusin [Tue, 22 Apr 2008 22:20:34 +0000 (18:20 -0400)]
Cache translate's structs for emits and fetches.
Results in a fair speed improvement.
Zack Rusin [Tue, 22 Apr 2008 22:11:58 +0000 (18:11 -0400)]
Fix reporting of clipped vertices.
Brian Paul [Tue, 22 Apr 2008 22:29:48 +0000 (16:29 -0600)]
gallium: setup an identity viewport
This fixes broken blits.
Brian Paul [Tue, 22 Apr 2008 22:25:55 +0000 (16:25 -0600)]
gallium: update comment about bypass clipping/viewport
Brian Paul [Tue, 22 Apr 2008 22:22:21 +0000 (16:22 -0600)]
gallium: setup an identity viewport
Brian Paul [Tue, 22 Apr 2008 22:15:49 +0000 (16:15 -0600)]
gallium: move the vertex print/debug code
Brian Paul [Tue, 22 Apr 2008 20:42:36 +0000 (14:42 -0600)]
gallium: remove assertions
It's possible the current vs/fs is null when cso_save_vertex/fragment_shader()
is called.
Brian Paul [Tue, 22 Apr 2008 20:41:32 +0000 (14:41 -0600)]
gallium: st_translate_fragment_program() is void now
The return value was never used.
Keith Whitwell [Tue, 22 Apr 2008 20:17:21 +0000 (21:17 +0100)]
Revert "softpipe: squash warning"
This reverts commit
1f0f029ba6f22ef4ada01fcdc153da91571a7963.
Which broke the debug build.
Keith Whitwell [Tue, 22 Apr 2008 19:50:20 +0000 (20:50 +0100)]
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.
Keith Whitwell [Tue, 22 Apr 2008 19:32:22 +0000 (20:32 +0100)]
softpipe: squash warning
Keith Whitwell [Tue, 22 Apr 2008 14:26:38 +0000 (15:26 +0100)]
cso: fix vs/fs confusion
Keith Whitwell [Tue, 22 Apr 2008 14:15:21 +0000 (15:15 +0100)]
softpipe: do something sensible on an error path, squash warning
Michel Dänzer [Tue, 22 Apr 2008 13:22:11 +0000 (14:22 +0100)]
gallium: How about restoring shaders instead of saving them again...
Michel Dänzer [Tue, 22 Apr 2008 11:18:31 +0000 (12:18 +0100)]
gallium: Don't link x86sse.c into libmesa.a.
Otherwise we get a symbol clash with the copy in src/gallium/util .
José Fonseca [Tue, 22 Apr 2008 10:47:02 +0000 (19:47 +0900)]
pipebuffer: Temporarily allow simultaneous CPU writes.
Also, fast path for re-fencing the same buffer multiple times with the same fence.
Keith Whitwell [Tue, 22 Apr 2008 10:26:07 +0000 (11:26 +0100)]
draw: disable broken edgeflag code - didn't work & was killing performance
Keith Whitwell [Tue, 22 Apr 2008 10:15:51 +0000 (11:15 +0100)]
xlib: shortcircuit no-op makecurrent
Keith Whitwell [Tue, 22 Apr 2008 10:01:56 +0000 (11:01 +0100)]
xlib: implement SP_NO_RAST env var
Keith Whitwell [Tue, 22 Apr 2008 10:01:41 +0000 (11:01 +0100)]
softpipe: implement SP_NO_RAST env var
Keith Whitwell [Tue, 22 Apr 2008 09:57:06 +0000 (10:57 +0100)]
softpipe: make NUM_ENTRIES 32 so that div/mods are easier
Michal Krol [Tue, 22 Apr 2008 09:26:26 +0000 (11:26 +0200)]
cso: Fix build on Win32.
Zack Rusin [Mon, 21 Apr 2008 20:40:27 +0000 (16:40 -0400)]
make the api consistent (all set functions return pipe_error status)
Zack Rusin [Mon, 21 Apr 2008 20:04:27 +0000 (16:04 -0400)]
handle some of the possible allocation failures within the hash itself
Zack Rusin [Mon, 21 Apr 2008 19:44:51 +0000 (15:44 -0400)]
initial stab at error handling in cso
Keith Whitwell [Mon, 21 Apr 2008 20:05:11 +0000 (21:05 +0100)]
cso: disable not-really-working cso_set_*_shader() funcs
Keith Whitwell [Mon, 21 Apr 2008 20:01:38 +0000 (21:01 +0100)]
draw: squash a couple of memory leaks
Keith Whitwell [Mon, 21 Apr 2008 19:26:19 +0000 (20:26 +0100)]
use cso fs/vs handle functions
Keith Whitwell [Mon, 21 Apr 2008 19:25:47 +0000 (20:25 +0100)]
cso: provide functions to bind fs/vs handles directly
Keith Whitwell [Mon, 21 Apr 2008 19:25:06 +0000 (20:25 +0100)]
mesa: remove st_cache.c
Zack Rusin [Mon, 21 Apr 2008 19:15:31 +0000 (15:15 -0400)]
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)
Keith Whitwell [Mon, 21 Apr 2008 18:48:21 +0000 (19:48 +0100)]
rtasm: debug some missing funcs
Keith Whitwell [Mon, 21 Apr 2008 18:48:08 +0000 (19:48 +0100)]
rtasm: quieten sse_enabled debug
Keith Whitwell [Mon, 21 Apr 2008 18:43:53 +0000 (19:43 +0100)]
rtasm: clean up debug dumping a little
Keith Whitwell [Mon, 21 Apr 2008 18:11:58 +0000 (19:11 +0100)]
cso: propogate one easy error - many more
Keith Whitwell [Mon, 21 Apr 2008 18:09:54 +0000 (19:09 +0100)]
translate: fail on x86 rtasm fail
Keith Whitwell [Mon, 21 Apr 2008 18:09:38 +0000 (19:09 +0100)]
rtasm: propogate errors in x86 emit
Michel Dänzer [Mon, 21 Apr 2008 16:51:39 +0000 (17:51 +0100)]
gallium: Use CSO cache for shaders.
Zack Rusin [Mon, 21 Apr 2008 16:42:37 +0000 (12:42 -0400)]
actually write the results
Keith Whitwell [Mon, 21 Apr 2008 16:17:27 +0000 (17:17 +0100)]
draw: more propogation -- pstipple stage.
Keith Whitwell [Mon, 21 Apr 2008 16:03:37 +0000 (17:03 +0100)]
draw: propogate lots of errors
Keith Whitwell [Mon, 21 Apr 2008 15:45:41 +0000 (16:45 +0100)]
draw: propogate errors out of aapoint stage
Keith Whitwell [Mon, 21 Apr 2008 15:38:09 +0000 (16:38 +0100)]
draw: propogate errors out of aaline stage
Keith Whitwell [Mon, 21 Apr 2008 15:10:13 +0000 (16:10 +0100)]
draw: consolidate all the passthrough line/tri/point funcs
José Fonseca [Mon, 21 Apr 2008 15:16:04 +0000 (00:16 +0900)]
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.
José Fonseca [Mon, 21 Apr 2008 15:14:08 +0000 (00:14 +0900)]
gallium: Include dependent header.
José Fonseca [Mon, 21 Apr 2008 13:26:33 +0000 (22:26 +0900)]
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.
José Fonseca [Mon, 21 Apr 2008 11:44:45 +0000 (20:44 +0900)]
gallium: Do not mistake pipe state objects for state tracker state objects.
Keith Whitwell [Mon, 21 Apr 2008 13:19:15 +0000 (14:19 +0100)]
util: work around freaky win32 math.h
Keith Whitwell [Mon, 21 Apr 2008 11:39:59 +0000 (12:39 +0100)]
tgsi: use new float math funcs, drop local disassembly code
Keith Whitwell [Mon, 21 Apr 2008 11:38:14 +0000 (12:38 +0100)]
util: add wrappers for float math functions on windows
Keith Whitwell [Mon, 21 Apr 2008 11:37:41 +0000 (12:37 +0100)]
rtasm: add dump facility for x86 (from tgsi_sse2.c)
Zack Rusin [Mon, 21 Apr 2008 04:10:39 +0000 (00:10 -0400)]
make llvm draw paths compile with the latest changes
switch the method of distribution of builtins (to get rid of the
llvm2cpp dependency)
José Fonseca [Mon, 21 Apr 2008 04:02:59 +0000 (13:02 +0900)]
gallium: Centralize SSE usage logic.
José Fonseca [Sun, 20 Apr 2008 05:41:02 +0000 (14:41 +0900)]
gallium: Refcount textures.
Pipe driver does refcount textures. If cso_context does not, dangling
pointers appear.
Keith Whitwell [Sat, 19 Apr 2008 19:20:40 +0000 (20:20 +0100)]
draw: rearrange debug code
Keith Whitwell [Sat, 19 Apr 2008 19:18:40 +0000 (20:18 +0100)]
translate: fix several bugs
- specify cdecl calling convention on WIN32
- fix load bgra8 function
- fix previous don't crash fix.
Keith Whitwell [Sat, 19 Apr 2008 17:41:53 +0000 (18:41 +0100)]
draw: add missing translate->set_buffer for fetch emit path
Keith Whitwell [Sat, 19 Apr 2008 17:26:39 +0000 (18:26 +0100)]
translate: don't crash on failure to create sse version
Keith Whitwell [Sat, 19 Apr 2008 17:25:33 +0000 (18:25 +0100)]
rtasm: include yet another i386 define varient
Keith Whitwell [Sat, 19 Apr 2008 17:02:42 +0000 (18:02 +0100)]
draw: fix scons build
Keith Whitwell [Sat, 19 Apr 2008 16:27:52 +0000 (17:27 +0100)]
draw: move incoming vertex state into draw->pt
This state is effectively private to the vertex processing part
of the draw module.
Keith Whitwell [Sat, 19 Apr 2008 16:16:41 +0000 (17:16 +0100)]
draw: make draw_reset_vertex_ids private to the draw_pipe_* code
Keith Whitwell [Sat, 19 Apr 2008 16:16:23 +0000 (17:16 +0100)]
draw: make room for extra_vs_outputs
Keith Whitwell [Sat, 19 Apr 2008 15:43:15 +0000 (16:43 +0100)]
draw: put pipeline flushing behind a new interface
Keith Whitwell [Sat, 19 Apr 2008 15:39:24 +0000 (16:39 +0100)]
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.
Keith Whitwell [Sat, 19 Apr 2008 14:35:22 +0000 (15:35 +0100)]
draw: always emit header in draw_pt_fetch.c
Keith Whitwell [Sat, 19 Apr 2008 14:29:27 +0000 (15:29 +0100)]
draw: move some pipeline-specific code & state to draw_pipe.[ch]
Keith Whitwell [Sat, 19 Apr 2008 12:30:19 +0000 (13:30 +0100)]
draw: remove dead file pipe_wide_prims.c
Keith Whitwell [Sat, 19 Apr 2008 12:20:26 +0000 (13:20 +0100)]
draw: remove named clipmask flags, tidy up pt middle ends
Keith Whitwell [Sat, 19 Apr 2008 12:12:07 +0000 (13:12 +0100)]
draw: remove dead code
Keith Whitwell [Fri, 18 Apr 2008 23:45:05 +0000 (00:45 +0100)]
draw: rename pipeline files to draw_pipe_*
Keith Whitwell [Fri, 18 Apr 2008 23:44:09 +0000 (00:44 +0100)]
cell: don't need to trim prims
Keith Whitwell [Fri, 18 Apr 2008 23:43:58 +0000 (00:43 +0100)]
softpipe: don't need to trim prims
Keith Whitwell [Fri, 18 Apr 2008 23:39:38 +0000 (00:39 +0100)]
draw: sort makefile sources
Keith Whitwell [Fri, 18 Apr 2008 23:37:51 +0000 (00:37 +0100)]
draw: rename draw_vertex_shader.c -> draw_vs.c