Brian
e6b33b6f35
bump CELL_MAX_VERTS to 240
2008-01-10 11:26:20 -07:00
Brian
3d9c84c1b8
comment about vertex data in emit_vertex()
2008-01-10 11:25:25 -07:00
Brian
fd8b5ede95
clean-up comments, code
2008-01-10 11:25:25 -07:00
Michel Dänzer
ede7b00b59
softpipe: Simplify texture memory layout.
2008-01-10 10:06:00 +01:00
Michel Dänzer
51ea675745
Add glapi/ path for inclusion of glapioffsets.h.
...
Not sure why this is only needed now...
2008-01-10 10:06:00 +01:00
Brian
d23869a88a
Cell: initial implementation of tile status optimizations
...
Tiles are marked as CLEAR, DEFINED or DIRTY to avoid making unnecessary
get_tile() and put_tile() calls.
2008-01-09 17:50:37 -07:00
Brian
18b0f34521
Cell: start using DMA tags in a more sensible way, move waits() later when possible.
2008-01-09 17:50:37 -07:00
Brian
c7a22c3979
move cliprect bounds, do trivial rejection triangle clipping
2008-01-09 17:50:37 -07:00
Brian
d48c6e7b21
Cell: remove some debug printfs, predicate others with Debug boolean
2008-01-09 17:50:37 -07:00
Brian
abee68a722
Cell: implemement basic Z testing
...
Also, improve some surface clearing code
2008-01-09 17:50:37 -07:00
Jerome Glisse
934468296c
softpipe: map only once in softpipe_map_surfaces
...
softpipe_map_surfaces get call several time but softpipe_unmap_surfaces
get call only once. So to make sure stuff are properly unmap when
softpipe_unmap_surfaces get call we map surfaces only one time in
softpipe_map_surfaces.
2008-01-10 01:14:07 +01:00
Michel Dänzer
1c5f27a18b
gallium: Make texture target an enum for better debuggability.
...
Also make enum pipe_format used in a couple more places.
2008-01-04 18:21:45 +01:00
Zack Rusin
6f01290431
llvm: if llvm is enabled don't even try to use sse for vs
2008-01-04 10:01:32 -05:00
Zack Rusin
9789c301b4
llvm: we need custom rules so had to redo the build a little bit
...
also don't use sse when llvm is enabled
2008-01-04 09:27:42 -05:00
Zack Rusin
3385f3d250
llvm: update llvm sources the latest svn
2008-01-04 08:32:20 -05:00
Keith Whitwell
b1e67c5d84
965: fix various refcount issues
2008-01-04 01:20:41 +00:00
Keith Whitwell
f54012650e
965: use correct offset for constants vs immediates
2008-01-04 01:20:41 +00:00
Keith Whitwell
65426b144e
965: always perform SF parameter setup for position
...
Match behaviour of DRI driver. Fix fragment shader to find the other
parameters one slot further on. Will need more work to cope with FP's
that actually reference position.
2008-01-04 01:20:41 +00:00
Keith Whitwell
25c9728644
965: scan fs inputs to work out interpolation in setup program
2008-01-04 01:20:41 +00:00
Brian
4e62fbbfc5
clean-ups, silence warnings
2008-01-03 15:09:30 -07:00
Brian
2b40838972
rename vars, clean-up formatting
2008-01-03 15:05:51 -07:00
Brian
aa7f233367
replace void * with struct draw_vertex_shader opaque type
2008-01-03 15:03:52 -07:00
Brian
1613c49c98
Cell: added -Wmissing-prototypes to SPU_CFLAGS
2008-01-03 09:57:12 -07:00
Brian
5e00ae3fea
Cell: initial work for getting/putting Z tiles
2008-01-03 09:56:48 -07:00
Brian
3ffef8de82
disable bbox code until glitches are fixed
2008-01-03 09:40:32 -07:00
Brian
4ff6367295
Cell: improve surface state code to replace some temporary code.
2008-01-03 09:40:02 -07:00
Brian
9b598df95e
asst changes in bbox code, dma tags, etc
2008-01-03 08:58:51 -07:00
Brian
bb55835fc0
insert a temporary flush to fix missing triangles artifact
2008-01-03 08:58:01 -07:00
Brian
5cd96f7684
pass surface format in cell_command_framebuffer struct
2008-01-03 07:49:59 -07:00
Brian
7aee3eff18
better debug code
2008-01-03 07:49:13 -07:00
Brian
f6b7e2d3bf
make use of prim bounds box info
2008-01-02 19:31:36 -07:00
Brian
54090bd841
only fetch as much vertex data as needed
2008-01-02 19:05:34 -07:00
Brian
d55c4ec9d2
remove previous triangle test code
2008-01-02 18:58:44 -07:00
Brian
de9f8e8b71
Cell: basic triangle rendering works.
...
The cell "render_stage" (last in the "draw" pipeline) emits vertices into
a buffer which is pulled by the SPUs in response to a "RENDER" command.
This is pretty much temporary/scaffold code for now.
2008-01-02 18:53:33 -07:00
Brian
da92ac01e8
Plug in more infrastructure for actual rendering.
...
Track vertex/fragment shader state.
Plug in pipe->draw_arrays(), pipe->draw_elements().
Plug render stage (a stub) into end of 'draw' pipeline.
Specify a hard-coded vertex format for now.
2008-01-01 15:21:50 -07:00
Brian
57a711f727
hack/fix pack_color() for correct ps3 format
2008-01-01 15:21:50 -07:00
Brian
52659e3c23
Clean-up, re-org some vertex/fragment shader state code.
2008-01-01 15:18:04 -07:00
Brian
292bbd4a72
move SP_NEW_ #defines into sp_state.h
2008-01-01 15:18:04 -07:00
Brian
520a455f55
fix vbo display list memleak upon context destruction
2008-01-01 10:21:21 -07:00
Brian
678db26b9d
unref buffer after drawing, fixes rastpos mem leak
2008-01-01 10:21:21 -07:00
Brian
c37d2c9325
fix single-sided stencil test bug
2008-01-01 10:21:21 -07:00
Brian
6656864135
fix leak, fix refcount error
2008-01-01 10:21:21 -07:00
Brian
6883e02a5c
fix a mem leak, document another existing leak
2008-01-01 10:21:21 -07:00
Brian
4fabee9d4d
unref const buffers during context destroy
2008-01-01 10:21:21 -07:00
Brian
6128c93865
unref const buffers during context destroy
2008-01-01 10:21:21 -07:00
Brian
1631a9513d
free program caches
2008-01-01 10:21:21 -07:00
Brian
f44e2f14d2
fix mem leaks
2008-01-01 10:21:21 -07:00
Brian
573b4414b9
fix mem leak (free key)
2008-01-01 10:21:21 -07:00
Brian
171a9674c4
free surface caches in softpipe_destroy()
2008-01-01 10:21:21 -07:00
Brian
aec6009ece
fix a memleak
2008-01-01 10:21:21 -07:00