Eric Anholt
9bae03a583
[965] Fix inversion of SLT/SGE results in vertex programs.
...
The WM code had this right, so copy its behavior. This reverts a flipping
of the arguments to SLT in brw_vs_tnl which came in with the GLSL code that
probably occurred to work around the flipped results, and brings the code back
in line with t_vp_build.c.
2008-01-16 15:19:29 -08:00
Brian
13bfa87b09
tweaks to quad drawing, set UsesKill in bitmap shader
2008-01-16 13:55:08 -07:00
Brian
27cff4402e
copy UsesKill state in _mesa_combine_programs()
2008-01-16 13:54:32 -07:00
Eric Anholt
6a5e86b344
[965] Rename depth_mask in CC key to depth_write, since it's a boolean enable.
2008-01-16 10:50:28 -08:00
Eric Anholt
93ec89e565
[965] Fix the type of alpha_ref in CC key, fixing ppracer rendering.
2008-01-16 10:49:56 -08:00
Brian
d11fd189ff
vbuf updates/fixes (KeithW)
...
Plus, update i915 and Cell drivers for latest vbuf->draw() params.
2008-01-16 10:57:53 -07:00
Brian
0e6b78c7eb
s/DBG/DRAW_DBG
2008-01-16 10:57:10 -07:00
Brian
1b5f20c665
remove useless assertions
2008-01-16 10:56:38 -07:00
Brian
85cfe029b9
init front/back color attrib indexes to 0, not -1
2008-01-16 10:56:23 -07:00
Brian
dd235ff1db
Fix a two-sided lighting bug (fixes samples/wave.c)
2008-01-16 08:30:00 -07:00
Dan Nicholson
0c275b6a41
autoconf: Use -fno-strict-aliasing on GCC
...
This change adds -fno-strict-aliasing when using gcc and g++, just like
the existing configs.
2008-01-15 22:53:18 -08:00
Ben Skeggs
0feec292dd
nouveau: remove assertions from PIPE_ -> GL_
...
It seems we need to keep some sane defaults around for a bit, at least until
the pipe drivers learn to avoid translating things like alpha_src_factor when
blend_enable is false.
2008-01-16 13:50:00 +11:00
Ben Skeggs
e0e9326bda
nv40: stronger type safety
2008-01-16 13:45:31 +11:00
Ben Skeggs
bc1ca3793d
nouveau: don't use GL headers at all
2008-01-16 13:37:13 +11:00
Ben Skeggs
545471018e
nouveau: gallium changes..
2008-01-16 13:18:46 +11:00
Ben Skeggs
3119e9a14b
Merge branch 'upstream-gallium-0.1' into darktama-gallium-0.1
...
Conflicts:
src/mesa/pipe/Makefile
2008-01-16 13:14:19 +11:00
Brian
587e2becc2
typedef uintptr_t for non-HAVE_POSIX_MEMALIGN build
2008-01-15 18:32:51 -07:00
Brian
62ef6376be
Don't include stdint.h or inttypes. Use the uint64 typedef instead of uint64_t.
2008-01-15 18:27:14 -07:00
Brian
5a185ca09a
replace _mesa_printf() with fprintf()
2008-01-15 18:26:21 -07:00
Brian
0cec2e18d5
remove redundant llvm subdir
2008-01-15 18:22:35 -07:00
Brian
14a1e5908d
include pipe/draw/draw_context.h
2008-01-15 18:22:23 -07:00
Eric Anholt
b039b785e2
Fix the compile of disabled DEBUG_PARSING code.
2008-01-15 15:10:54 -08:00
Eric Anholt
185320ae13
Bug #13492 : Only call ProgramStringNotify if program parsing succeeded.
...
Wine intentionally tries some out-of-spec programs to test strictness, and
calling ProgramStringNotify on the results of a failed program parse resulted
in crashes in the 965 driver.
2008-01-15 15:10:39 -08:00
Brian
dd5a8d234b
Add surface status/clear_value fields, PIPE_SURFACE_STATUS_x tokens
2008-01-15 14:18:17 -07:00
Eric Anholt
4652e351a2
[965] Increase max relocation count, fixing assertions by blender.
2008-01-15 10:12:38 -08:00
Kristian Høgsberg
bb73cf9ec0
[i915] Prevent recursive batchbuffer flushing.
...
Workaround for recursive batchbuffer flushing: If the window is
moved, we can get into a case where we try to flush during a
flush. What happens is that when we try to grab the lock for
the first flush, we detect that the window moved which then
causes another flush (from the intel_draw_buffer() call in
intelUpdatePageFlipping()). To work around this we reset the
batchbuffer tail pointer before trying to get the lock. This
prevent the nested buffer flush, but a better fix would be to
avoid that in the first place.
2008-01-15 10:24:04 -05:00
Zou Nan hai
3ad9ca8240
i965: fix an assert fail in brw_new_batch
2008-01-15 15:19:09 +08:00
Brian
d280206c7f
free stvp->draw_shader
2008-01-14 19:18:35 -07:00
Brian
ac95fee4ff
Fix problems with vertex shaders and the private draw module.
...
The CSO returned by pipe->create_vs_state() can't be passed to the
private draw module. That was causing glRasterPos to blow up.
Add a 'draw_shader' field to st_vertex_program for use with the private
draw module.
Change st_context->state.vs type from cso_vertex_shader to st_vertex_program.
2008-01-14 19:13:34 -07:00
Brian
b4e4fafb41
disable debug printf
2008-01-14 19:13:34 -07:00
Brian
f20cb1d81b
Cell: after sending a batch, wait for a DMA completion signal.
...
This fixes sporadic rendering glitches.
Using a mailbox msg for now, until spe_mfcio_tag_status_read() or similar
is found to work.
2008-01-14 16:39:26 -07:00
Brian
c28b112ce3
clamp colors during float->int conversion
2008-01-14 16:37:13 -07:00
Eric Anholt
ffa8b18c7c
[i915] Fix recursive lock hang in intelContendedLock handling.
2008-01-14 15:19:43 -08:00
Eric Anholt
d42400db87
[intel] Delay unmapping of driver-private buffers to reduce map/unmap thrashing.
...
Good for a 10-15% improvement to OA.
2008-01-14 10:21:19 -08:00
Eric Anholt
7fec1eb21b
[965] Force a new vertex upload buffer at new batch time.
...
Otherwise, we could choose to upload into the temporary VBO that we just fired
off to the hardware. Good for a 60% OA performance improvement.
2008-01-14 10:18:38 -08:00
Brian
eff70f67c5
Cell: update surface map code to match recent changes in pipe_surface struct
2008-01-14 11:11:08 -07:00
Michel Dänzer
2014e0bacb
Remove pipe->get/put_tile_rgba.
...
pipe_get/put_tile_rgba() now use pipe->get/put_tile internally.
Also simplify the <format>_get/put_tile_rgba() helper functions and clean up
some inconsitencies in them.
2008-01-14 18:12:58 +01:00
Michel Dänzer
c76efb96b4
Remove mapping fields from struct pipe_surface.
...
It's now the responsibility of surface users to keep track of their mappings.
2008-01-14 18:12:58 +01:00
Brian
a511200e5f
Cell: remove fb parameter to get/put_tile()
2008-01-12 16:58:50 -07:00
Brian
8b1bfd1d27
Cell: disable cell_emit_state() for now
2008-01-12 16:57:55 -07:00
Brian
d53e1c255a
Cell: collect vars in a spu_global struct
2008-01-12 12:53:49 -07:00
Brian
dae719a681
Cell: first state object (depth/stencil/alpha) emitted to SPUs
2008-01-12 12:39:26 -07:00
Brian
68f5a6f743
Cell: whitespace/cleanup
2008-01-12 11:41:23 -07:00
Brian
2e469775b3
Cell: prefix SPU files with spu_
2008-01-12 10:33:50 -07:00
Brian
a9a8467472
Cell: prefix SPU sources with spu_
2008-01-12 10:33:24 -07:00
Brian
07276d676c
Cell: sketch out needed rasterizer state
2008-01-12 10:06:27 -07:00
Brian
1c22b59559
s/int/uint/ to silence warnings
2008-01-11 16:32:20 -07:00
Brian
50eb29ed94
whitespace, comment changes
2008-01-11 16:31:58 -07:00
Brian
8dd678208e
Cell: basic batch buffer working
2008-01-11 16:08:53 -07:00
Brian
08c2571fb4
Cell: initial work for a hw-like batch buffer system
2008-01-11 12:04:55 -07:00