Kristian Høgsberg
46eb02b609
[intel] Clean up references to screen buffer metrics.
...
The screen wide info such as pitch and cpp are obsoleted by the FBO
changes, so clean up the last few references to those, except for
setting up the legacy screen regions.
2008-01-22 12:14:59 -05:00
Brian
5c82549d9e
fix pc vs. gc->ps usage (bug 14197)
2008-01-22 08:40:29 -07:00
Brian
6bd32cbcf3
Don't build yuvrect_client by default
...
Added 'extra' rule to build optional yuvrect_client, shape, xdemo programs
2008-01-22 07:57:33 -07:00
Brian
60dd3b1d9a
remove unused var
2008-01-22 07:57:33 -07:00
Alexey Sokolov
e58c365cda
define M_PI if needed
2008-01-22 07:57:33 -07:00
Brian
7049ff53f6
gallium: silence warnings
2008-01-21 21:19:24 -07:00
Brian
cfeda4165b
Cell: initial support for sampler state
2008-01-21 21:17:21 -07:00
Brian
0c085717cb
Cell: s/cell_init_surface_funcs/cell_init_surface_functions/
2008-01-21 21:17:21 -07:00
Brian
13189412d9
Cell: Added cell_surface.[ch] files
2008-01-21 21:17:21 -07:00
Brian
a1799ecd82
gallium: remove unneeded protos, #includes, etc
2008-01-21 21:17:21 -07:00
Brian
b91de8a6e7
gallium: include sp_headers.h
2008-01-21 21:17:21 -07:00
Brian
8538da0d7a
Cell: renamed cell_surface.[ch] to cell_clear.[ch]
2008-01-21 21:17:21 -07:00
Brian
c27c352984
Cell: rename cell_surface.[ch] cell_clear.[ch]
2008-01-21 21:17:21 -07:00
Brian
1811965091
Cell: Add initial texture functions
2008-01-21 21:17:21 -07:00
Brian
fd9c03fc42
Cell: add cell_set_sampler_texture()
2008-01-21 21:17:21 -07:00
Brian
4211d2d461
gallium: move softpipe_get_tex_surface() prototype
2008-01-21 21:17:20 -07:00
Brian
c14773b06b
gallium: add license comment
2008-01-21 21:17:20 -07:00
Brian
e2612f4aa0
gallium: move softpipe_get_tex_surface() into sp_texture.c
2008-01-21 21:17:20 -07:00
Brian
5a57ffafd6
Cell: added asmfiles rule
2008-01-21 21:17:20 -07:00
Brian
be92796eb9
gallium: prototype draw_linestipple.c replaced by draw_stipple.c
2008-01-21 15:29:54 -07:00
Brian
ea3a2b4402
gallium: remove per-fragment line stipple code
2008-01-21 14:10:16 -07:00
Brian
329a8479b6
gallium: new 'draw' stage for line stipple
...
Stippled lines are converted into a series of shorter line segments
2008-01-21 14:08:20 -07:00
Brian
7f21d04a51
fix broken point rendering in sp_vbuf_render()
2008-01-21 11:37:58 -07:00
Brian
382b86e90f
gallium: add a src_index[] array to draw's vertex_info for mapping post-xform vertex attribs to hw vertex attribs
2008-01-21 11:16:22 -07:00
Brian
f4b89be701
Cell: use tile_t for color tile
2008-01-20 17:39:07 -07:00
Brian
f0be276c2e
Cell: clean-up/re-org tile code
...
Also, support 16 or 32-bit Z buffer at runtime.
2008-01-20 17:27:05 -07:00
Brian
661be1ae7b
Cell: use depth/stencil state to enable ztest
...
Move z-test code into do_depth_test().
Add ZSIZE symbol to support 2 or 4-byte Z values.
2008-01-20 15:00:18 -07:00
Brian
45b5d3b1fc
enable call to cell_emit_state()
2008-01-20 14:58:29 -07:00
Ben Skeggs
4481c6c0b3
nouveau: small oops
2008-01-20 23:20:42 +11:00
Eric Anholt
d0774eae30
[965] Fix WM unit cache keying that broke line stipple and polygon offset.
2008-01-19 23:22:45 -08:00
Ben Skeggs
b56b3035f1
nv40: clarify that tex code is fp-only, we'll do vertex textures eventually.
2008-01-20 11:13:08 +11:00
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
Eric Anholt
02d5ba8491
[intel] Fix memory leak with fake bufmgr.
2008-01-18 11:39:35 -08:00
Eric Anholt
2afe5344df
[965] Do a little bit rotation in state hash to reduce collisions.
...
This was around 3% improvement in OA.
2008-01-18 10:15:28 -08:00
Michel Dänzer
e44bdcf978
Unify copy_rect helpers.
...
Some of the copies were buggy.
2008-01-18 19:11:30 +01:00
Eric Anholt
8c56418f97
[intel] Use a static array for the validation list instead of a linked list.
...
Around 10% of a CPU was being wasted to create the linked list which we
threw out immediately after passing it to the kernel.
2008-01-18 08:52:00 -08:00
Eric Anholt
a0e453a5ec
[intel] Make the no_rast option be standard driconf instead of INTEL_NO_RAST.
2008-01-17 14:23:04 -08:00
Eric Anholt
8517079cbc
[i915] Fix driver from cliprects changes, and clean up state emission.
...
The fix for pageflipping with cliprects ended up causing a batch flush at
an inopportune time, which is fixed by moving it up.
Additionally, the recovery code for handling batch wraps at bad times is
replaced by just checking for the space up front, and using a no_batch_wrap
assert like on 965 to make sure that we weren't wrong about how much space that
was.
2008-01-17 13:55:42 -08:00
Eric Anholt
faeb1bc9f9
[965] Fix whitespace in c9b1fef0c9
2008-01-17 11:47:02 -08:00
Eric Anholt
e747e9a072
[965] Fix potential segfaults from bad realloc.
...
C has no order of evaluation restrictions on function arguments, so we
attempted to realloc from new-size to new-size.
2008-01-17 11:46:58 -08: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