Ben Skeggs
df09ed9d1e
Merge branch 'upstream-gallium-0.1' into darktama-gallium-0.1
2008-01-20 10:38:35 +11:00
Brian
a1f4a5e802
Cell: improve "finished copying batch buffer" signalling.
...
When the SPU is done copying a batch buffer to local store, use an mfc_put()
to write a "done" message back to the buffer status array in main memory.
We were previously using a mailbox message for synchronization.
2008-01-19 12:04:06 -07:00
Brian
06b019d16b
s/varible/variable/
2008-01-18 12:47:20 -07:00
Brian
7cbfe8c51d
set param type to PROGRAM_CONSTANT when parsing immediates
2008-01-18 12:45:55 -07:00
Brian
fdc8636bdc
use PROGRAM_CONSTANT instead of PROGRAM_STATE_VAR when generating immediates/literals
2008-01-18 12:45:27 -07:00
Michel Dänzer
e44bdcf978
Unify copy_rect helpers.
...
Some of the copies were buggy.
2008-01-18 19:11:30 +01:00
José Fonseca
25e2b8d669
Revert "temporarily don't emit TGSI immediates, use the constant buffer"
...
This reverts commit 310e7ca44b .
2008-01-17 17:20:46 +09:00
José Fonseca
271f9dac79
Back-port miscellaneous fixes from internal branch (mostly portability fixes).
...
These are changes that are in our internal branch, but somehow were skipped
so far. It was done using visual comparison of the branches --
it is likely that changes are being carried on the wrong way
2008-01-17 13:39:14 +09:00
José Fonseca
b016f0adba
gallium: Pass PIPE_BUFFER_USAGE_PIXEL to buffer_data.
2008-01-17 13:37:17 +09:00
José Fonseca
c04f417492
gallium: Handle TGSI_OPCODE_END on sse2.
2008-01-17 12:25:26 +09:00
Brian
310e7ca44b
temporarily don't emit TGSI immediates, use the constant buffer
...
This allows a few more programs to run and not crash.
Need to get constant buffer uploads working...
2008-01-17 12:24:22 +09:00
José Fonseca
bf3bdb3b42
gallium: Fix cut-n-paste error.
2008-01-17 12:09:40 +09:00
José Fonseca
3eaf882a66
gallium: Alternative mm_bufmgr_create_from_buffer constructor for mm pool managers.
2008-01-17 12:09:37 +09:00
José Fonseca
39b8303d4a
gallium: Detect if a null buffer is passed.
2008-01-17 12:09:29 +09:00
Keith Whitwell
af51d188c3
gallium: fix warning
2008-01-17 12:07:37 +09:00
Keith Whitwell
7771519862
gallium: fix warning
2008-01-17 12:06:28 +09:00
Keith Whitwell
66719dc63a
gallium: hardwire reset_temps functionality
2008-01-17 12:06:16 +09:00
Keith Whitwell
83417a8b37
gallium: whitespace changes
2008-01-17 12:06:05 +09:00
José Fonseca
e122a8fa18
gallium: Ignore generated files.
2008-01-17 12:05:37 +09:00
Brian
5ea37f591a
use NEGATE_X/Y/Z/W tokens
2008-01-16 16:43:50 -07:00
Brian
846969917e
clean-up swizzle fields in fog code, fix NegateBase
2008-01-16 16:43:36 -07:00
Brian
bdc3825461
Fix broken fog.
...
Note that fogcoord and front-facing attribs are in the same register, in the
X and Y channels, respectively.
2008-01-16 16:31:37 -07:00
Brian
ecc9cf43af
Fix incorrect [0,1] clamping in store_dest().
2008-01-16 16:29:36 -07: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
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
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
Brian
dd5a8d234b
Add surface status/clear_value fields, PIPE_SURFACE_STATUS_x tokens
2008-01-15 14:18:17 -07: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
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