Commit Graph

12904 Commits

Author SHA1 Message Date
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
Brian 57a5421d65 free tgsi machine state 2008-01-01 10:21:21 -07:00
Brian f6136f993a free tgsi machine state 2008-01-01 10:21:21 -07:00
Brian eba2e044a0 added tgsi_exec_machine_free_data() 2008-01-01 10:21:20 -07:00
Brian 552907d8a4 free Default1D/2DArray objects 2008-01-01 10:21:20 -07:00
Zack Rusin f9e0e2b3ef i965: a little better way of handling immediates 2007-12-24 07:57:34 -05:00
Zack Rusin 4fa7afabc9 i965: very crude and hacky way of handling immediates 2007-12-20 12:54:23 -05:00
Keith Whitwell a85535b7cb gallium: make state tracker explictly ask for rendercache flushes 2007-12-20 13:47:46 +00:00
Keith Whitwell 9e41d547db 965: respect pipe flush flags
Now we emit way too many flushes instead of none at all.
2007-12-20 13:47:11 +00:00
Keith Whitwell 21c67b70d4 gallium: translate ARB fp/vp immediates consistently to tgsi immediates 2007-12-20 13:20:27 +00:00
Zack Rusin ebf78c0dcc 965: fix the constant buffers 2007-12-20 07:05:52 -05:00
Brian e9207430ce Add some prototype code for converting RET to END for main(). Disabled for now. 2007-12-19 14:06:22 -07:00
Brian 4a1776a763 temporarily defeat an assertion 2007-12-19 13:53:28 -07:00
Brian c664302c3e Fix problem with initial viewport/scissor size.
If an app never called glViewport, the viewport size was always 0 by 0 pixels.
Now pass initial size to st_create_framebuffer() and initialize the viewport
and scissor bounds in st_make_current().
This could also be fixed by ensuring the gl_framebuffers passed to
_mesa_make_current() were initialized to the right size.  But that involves
allocating the renderbuffers/pipe_surfaces earlier and that runs into some
other issues ATM.
Also remove obsolete createRenderbuffers param to st_create_framebuffer().
2007-12-19 13:45:00 -07:00
Brian 1575763a6f convert Mesa OPCODE_END to TGSI_OPCODE_END, not TGSI_OPCOD_RET 2007-12-19 13:16:36 -07:00
Brian 127ab73b38 remove obsolete TXP, add some sanity checks 2007-12-19 13:16:36 -07:00