Commit graph

13619 commits

Author SHA1 Message Date
Brian
dd235ff1db Fix a two-sided lighting bug (fixes samples/wave.c) 2008-01-16 08:30:00 -07: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
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
Brian
7db94ba031 Cell: remove obsolete cell_prim_buffer struct and code 2008-01-11 11:35:03 -07:00
Brian
6b5d674f91 Cell: debug code, comments 2008-01-11 11:31:03 -07:00
Brian
21b282e934 vbuf_flush_vertices() instead of vbuf_flush_indices() in vbuf_end() 2008-01-11 11:30:02 -07:00
Brian
f313a1ece2 Cell: reformattting 2008-01-11 11:27:24 -07:00
Brian
d4c806302e s/int/uint/ to silence warning 2008-01-11 11:27:09 -07:00
Brian
45230b4e08 Fix malloc size buf, silence signed/unsigned comparision warning 2008-01-11 10:10:45 -07:00
Brian
1217d5cca3 Cell: Remove the pre-vbuf rendering code 2008-01-11 08:14:42 -07:00
Brian
299dffce4f Cell: wait_on_mask_all() 2008-01-10 21:59:15 -07:00
Brian
aee5f471ce Cell: remove unneeded #includes 2008-01-10 21:53:38 -07:00
Brian
71caa922e0 Cell: compute bounding box in cell_vbuf_draw() 2008-01-10 21:50:55 -07:00
Brian
ea190f4b41 Cell: remove unused color field 2008-01-10 21:50:31 -07:00
Brian
6059ecaabe Cell: remove unused code 2008-01-10 21:37:55 -07:00
Brian
c56b20971b Cell: make vertex_header and prim_header types private to tri.c 2008-01-10 21:35:13 -07:00
Brian
44f4b9b9ea Cell: avoid copying vertex data 2008-01-10 21:22:03 -07:00
Brian
02f6f9f8d4 Cell: move tile-related code into new tile.[ch] files. 2008-01-10 17:30:51 -07:00
Brian
6c11485405 Cell: use new ASSERT macro instead of standard assert
The later doesn't seem to work properly in SPU code.
2008-01-10 17:14:06 -07:00
Brian
b324722542 Cell: enable vbuf path by default 2008-01-10 17:03:21 -07:00
Brian
152f1d84d4 Cell: checkpoint: draw_vbuf code in place and works, but not enabled by default yet. 2008-01-10 17:01:52 -07:00
Brian
cac8892ddb Additional parameters to vbuf_render->draw()
Pass complete information about vertex/index buffer location, size, etc.
2008-01-10 17:01:11 -07:00
Brian
763e30748e Cell: initial implementation of vbuf code.
The draw module's vbuf stage builds buffers of post-transformed vertices
and issues draw-elements calls to render them.  We'll pass the vertex and
index buffers to the SPUs...
2008-01-10 15:14:58 -07:00
Brian
2da5afbd3f Cell: call draw_compute_vertex_size() 2008-01-10 15:13:14 -07:00
Brian
cd89fe2d39 Cell: s/free/align_free/ 2008-01-10 11:26:20 -07:00
Brian
d07b86dedf Cell: clean-up cell_spu_exit() code 2008-01-10 11:26:20 -07:00