aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_draw.c
Commit message (Collapse)AuthorAgeFilesLines
* Some changed for non-C99 compilersAlan Hourihane2008-05-021-2/+3
|
* gallium: use new buffer wrapper functions in p_inlines.hBrian Paul2008-04-301-32/+22
| | | | This allows us to remove most of the direct references to winsys in the state tracker.
* gallium: remove unused st_draw_vertices()Brian Paul2008-04-251-70/+0
|
* gallium: fix an edgeflags crashBrian Paul2008-04-241-1/+5
|
* gallium: initial edgeflags codeBrian Paul2008-04-241-1/+59
|
* draw: move incoming vertex state into draw->ptKeith Whitwell2008-04-191-3/+3
| | | | | This state is effectively private to the vertex processing part of the draw module.
* gallium: Set vertex state/buffers en-mass.Brian Paul2008-03-291-39/+43
|
* gallium: replace PIPE_ATTRIB_MAX with PIPE_MAX_ATTRIBSBrian2008-03-271-1/+1
| | | | | The later follows the naming scheme of other limits. Keep the old definition until all possible usage is updated.
* gallium: remove old commented-out codeBrian2008-03-191-3/+3
|
* gallium: remove semantic info from pipe_shader_stateBrian Paul2008-03-131-3/+3
| | | | Brian's patch to clean up the shader interfaces.
* gallium: rework CSO-related code in state trackerBrian2008-03-111-7/+6
| | | | | | | | | | Use the code in cso_context.c rather than st_cache.c. Basically, binding of state objects now goes through the CSO module. But Vertex/fragment shaders go through pipe->bind_fs/vs_state() since they're not cached by the CSO module at this time. Also, update softpipe driver to handle NULL state objects in various places. This happens during context destruction. May need to update other drivers...
* Code reorganization: update build.José Fonseca2008-02-151-2/+2
| | | | | | | | | Update the Makefiles and includes for the new paths. Note that there hasn't been no separation of the Makefiles yet, and make is jumping all over the place. That will be taken care shortly. But for now, make should work. It was tested with linux and linux-dri. Linux-cell and linux-llvm might require some minor tweaks.
* gallium: added inClipCoords param to st_draw_vertices() to indicate coord ↵Brian2008-02-081-9/+12
| | | | | | system of vertices Also, export st_make_passthrough_vertex_shader() from st_cb_drawpixels.c
* gallium: don't rely on assert(0) for error handling - may be disabledKeith Whitwell2008-01-291-0/+2
|
* gallium: rename pipe_buffer_handle to pipe_buffer, rework pipebuffer/ codeKeith Whitwell2008-01-251-10/+11
| | | | | | | | | | | Provide an actual definition of the pipe_buffer struct, containing the parameters used to create the buffer, and its refcount. Shift refcounting buffers out of the winsys interface, similar to surfaces & textures. Rework pipebuffer/ to reflect the fact these changes, and also Michel's reworking of the buffer interface.
* gallium: Simplify winsys buffer interface.Michel Dänzer2008-01-251-34/+11
| | | | | | The properties of a buffer represented by struct pipe_buffer_handle are now basically constant over its lifetime. The state tracker gets to deal with any more complex buffer semantics it may need to provide.
* gallium: overhaul usage of vertex_info in draw module.Brian2008-01-231-0/+4
| | | | | | | | 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.
* gallium: s/INTERP_NONE/INTERP_LINEAR/ to fix assertion with ↵Brian2008-01-231-1/+1
| | | | progs/samples/select.c
* Fix problems with vertex shaders and the private draw module.Brian2008-01-141-4/+8
| | | | | | | | 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.
* unref buffer after drawing, fixes rastpos mem leakBrian2008-01-011-0/+1
|
* actually set the max_index. useful in the driverZack Rusin2007-12-191-2/+2
|
* gallium: rationalize vertex_element state packetKeith Whitwell2007-12-181-3/+3
| | | | | | | | Remove dst_offset (not used) Add nr_components, which could be calculated from format, but would be too much effort. Update i965 driver to cope.
* XXX comments about some hard-coded values that need to be fixedBrian2007-12-101-0/+1
|
* Correct user VBO size.Ben Skeggs2007-12-101-3/+8
|
* gallium: support the full range of possible vertex typesKeith Whitwell2007-12-091-23/+129
|
* add fence interfaces and buffer create flags to pipe_winsyskeithw2007-12-091-2/+2
|
* New vbo_set_draw_func() to keep vbo context opaque to state tracker and tnl ↵Brian2007-12-071-5/+1
| | | | module.
* silence warningBrian2007-12-051-0/+1
|
* Replace draw_set_vertex_attributes() with simpler draw_set_vertex_info().Brian2007-11-211-11/+10
| | | | Just pass in the vertex_info object and make a copy of it.
* adjustments so st_feedback_draw_vbo() can be used for glRasterPosBrian2007-11-161-11/+11
|
* Supply buffer usage hints to winsys.José Fonseca2007-11-061-1/+3
| | | | | Winsys driver needs some hints in order to allocate the appropriate kind of memory for the buffer.
* Use ffvertex_prog.c code instead of t_vp_build.c code.Brian2007-10-311-4/+0
|
* Remove typedefs from enums.Zack Rusin2007-10-291-1/+1
| | | | | typedefs are rather evil, remove them and use the enum keyword explicitely.
* Fix glDrawElements + VBO rendering when ptr/offset is not zero.Brian2007-10-241-2/+5
| | | | | | | When an index VBO is bound, glDrawElement's indices pointer is really an offset into the element buffer. Add that offset to the prims[i].start value before calling pipe->draw_elements(). Fixes vbo.c conform test.
* Revert "Undo indexOffset change (I think, git???)"Brian2007-10-241-4/+2
| | | | This reverts commit 11ce6244a79106c592364b30434b6ddade3fd6bb.
* Undo indexOffset change (I think, git???)Brian2007-10-241-2/+4
|
* GL_UNSIGNED_BYTE indexesBrian2007-10-151-0/+3
|
* Undo prev changes.Brian2007-10-151-0/+30
|
* GL_SELECT mode works nowBrian2007-10-151-0/+15
|
* call pipe->set_vertex_buffer() after drawing/unreferencing.Brian2007-10-151-0/+2
| | | | | This fixes potential a stale reference to vertex buffers. Fixes cubemap demo on i915.
* added assertion to be sure we don't exceed bitfield sizeBrian2007-10-121-0/+1
|
* rename some vars, updated commentsBrian2007-10-111-8/+8
|
* remove unused tgsi_attrib_to_mesa_attrib()Brian2007-10-111-64/+0
|
* update st_feedback_draw_vbo()Brian2007-10-111-80/+58
|
* streamline st_draw_vbo() a bit more, free user-space buffers at endBrian2007-10-111-44/+32
|
* clean-up, streamline st_draw_vbo()Brian2007-10-111-14/+12
|
* Use winsys->user_buffer_create() to wrap user-space vertex arrays and ↵Brian2007-10-101-22/+50
| | | | | | | element buffers. Now client-side vertex arrays and glDrawElements work. More testing/debug/clean-up to come...
* Redoing the way we handle vertex shaders for the draw module.Zack Rusin2007-09-281-1/+1
|
* Revert "Redoing the way we handle vertex shaders for the draw module."Zack Rusin2007-09-281-1/+1
| | | | This reverts commit 6dcfddb8e2ec2bfb6187b912807fa65f28da2c5e.
* Redoing the way we handle vertex shaders for the draw module.Zack Rusin2007-09-281-1/+1
|