Commit Graph

15141 Commits

Author SHA1 Message Date
Brian 11349b6a5f Cell: s/FORMAT/EMIT/ 2008-01-23 23:33:35 -07:00
Brian 2549d79ae5 gallium: rename FORMAT_x to EMIT_x and use EMIT_ALL to emit whole vertex as-is in vbuf code 2008-01-23 23:27:31 -07:00
Brian 6000dcc973 gallium: improved vertex layout and interpolant setup in softpipe 2008-01-23 23:08:59 -07:00
Ian Romanick dc1abc3932 Specify linker instead of letting mklib use gcc
This is the final bit required to get Cell builds on x86 working.
Without this, mklib tries to link using the x86 gcc instead of
ppu32-gcc.
2008-01-23 15:25:52 -08:00
Ian Romanick b3492a2052 Use HOST_CC for programs that will run on the build host 2008-01-23 15:25:52 -08:00
Ian Romanick ffcb4d8498 Use EXTRA_LIB_PATH with *_LIB_DEPS
Make sure EXTRA_LIB_PATH is used with all the LIB_DEPS.  Re-order some
of the options and tweak the whitespace to make the various LIB_DEPS
more readable.  This makes building for Cell on x86 a bit easier and
doesn't seem to effect other builds.
2008-01-23 15:25:52 -08:00
Ian Romanick eb4a7382dc Remove unnecessary paths
Removing the paths on certain commands (e.g., ppu32-gcc) and removing
-I/usr/include makes it possible to build for Cell on both PowerPC and
x86 hosts.
2008-01-23 15:25:52 -08:00
Brian f5d2c1eef9 Cell: remove old test code 2008-01-23 16:19:40 -07:00
Brian f19b2d7221 Cell: asst. updates to sync up with today's earlier gallium changes 2008-01-23 16:17:49 -07:00
Brian 8de2331e43 gallium: remove support for separate depth/stencil buffers. Always combined now. 2008-01-23 15:45:52 -07:00
Brian 1cf3c77e08 gallium: in sp_tile_cache_clear() mark all cache slots as empty/free. Fixes progs/redbook/stencil.c 2008-01-23 15:39:34 -07:00
Brian 336e2cb9ec gallium: rework compute_vertex_layout() to intelligently map vs outputs to fs inputs
Some follow-on simplification in prim setup is possible...
2008-01-23 14:23:49 -07:00
Brian 2d37e78e63 gallium: restore/rewrite vbuf code for softpipe
Now based on the draw_vbuf code, instead being a custom one-off.
Disabled by default, enable with SP_VBUF env var.
2008-01-23 13:17:50 -07:00
Brian cd3643698e gallium: overhaul usage of vertex_info in draw module.
Remove all dependencies on vertex_info, except for draw_vbuf.
Drawing stages now strictly operate on post-transformed vertices and don't
know anything about hw vertices.
Use vertex program output info for two-side/flat/etc stages.
Temporarily disable vbuf module in softpipe driver.
2008-01-23 12:48:41 -07:00
Brian b3f081999f gallium: s/INTERP_NONE/INTERP_LINEAR/ to fix assertion with progs/samples/select.c 2008-01-23 09:27:39 -07:00
Brian 2444f6c6a4 gallium: fix computation of raster.point_size_per_vertex flag 2008-01-23 08:24:30 -07:00
Brian 46a787ad97 gallium: multiply vertex point size by 0.5 2008-01-23 08:24:08 -07:00
Brian 286380020b gallium: use temp reg for storing color to avoid reading 'result.color' 2008-01-22 20:52:48 -07:00
Brian 59e8f3e5e9 gallium: Don't allocate a vertex buffer until after setting the prim type.
The vertex size may depend on whether we're drawing points, lines or triangles.
2008-01-22 16:37:19 -07:00
José Fonseca 52264ec53d added stipple_destroy() 2008-01-22 16:35:50 -07:00
Brian f1fb69a6e5 gallium: Added FORMAT_1F_PSIZE to insert constant point size into vertices
Also, added draw_convert_wide_points/lines() so a driver can tell the draw
module whether to convert wide points/lines into triangles, or just pass
them through.
2008-01-22 10:17:28 -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
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