aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_draw.h
Commit message (Collapse)AuthorAgeFilesLines
* st/mesa: atomize vertex array stateMarek Olšák2012-06-151-7/+0
| | | | This moves the state validation to where all the other states are validated.
* mesa: move gl_client_array*[] from vbo_draw_func into gl_contextMarek Olšák2012-05-081-2/+0
| | | | | | | | | | | | | | | | | | In the future we'd like to treat vertex arrays as a state and not as a parameter to the draw function. This is the first step towards that goal. Part of the goal is to avoid array re-validation for every draw call. This commit adds: const struct gl_client_array **gl_context::Array::_DrawArrays. The pointer is changed in: * vbo_draw_method * vbo_rebase_prims - unused by gallium * vbo_split_prims - unused by gallium * st_RasterPos Reviewed-by: Brian Paul <[email protected]>
* st/mesa: use SINT/UINT formats for VertexAttribIPointerChristoph Bumiller2012-01-031-1/+1
| | | | | | Reviewed-by: Dave Airlie <[email protected]> v2: added assertion that packed formats are not pure integer
* mesa: implement DrawTransformFeedback from ARB_transform_feedback2Marek Olšák2011-12-151-2/+4
| | | | | | | | | | | | | | It's like DrawArrays, but the count is taken from a transform feedback object. This removes DrawTransformFeedback from dd_function_table and adds the same function to GLvertexformat (with the function parameters matching GL). The vbo_draw_func callback has a new parameter "struct gl_transform_feedback_object *tfb_vertcount". The rest of the code just validates states and forwards the transform feedback object into vbo_draw_func.
* Make st_pipe_vertex_format return type in st_draw.h match st_draw.cAlan Coopersmith2011-04-081-1/+1
| | | | | | | | | Fixes compiler error from Sun compilers: "state_tracker/st_draw.c", line 185: identifier redeclared: st_pipe_vertex_format current : function(unsigned int, unsigned int, unsigned int, unsigned char) returning enum pipe_format previous: function(unsigned int, unsigned int, unsigned int, unsigned char) returning unsigned int : "state_tracker/st_draw.h", line 73 Signed-off-by: Alan Coopersmith <[email protected]>
* st/mesa: Clean up header file inclusion in st_draw.h.Vinson Lee2010-12-211-1/+2
|
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-2/+2
|
* st/mesa: Add missing headers to st_draw.h.Vinson Lee2010-08-051-1/+6
|
* vbo: Avoid extra validation of DrawElements.Eric Anholt2009-08-121-0/+2
| | | | | | | | | | | | | This saves mapping the index buffer to get a bounds on the indices that drivers just drop on the floor in the VBO case (cache win), saves a bonus walk of the indices in the CheckArrayBounds case, and other miscellaneous validation. On intel it's a particularly a large win (50-100% in my app) because even though we let the indices stay in both CPU and GPU caches, we still end up waiting for the GPU to be done with the buffer before reading from it. Drivers that want the min/max_index fields must now check index_bounds_valid and use vbo_get_minmax_index before using them.
* st: add support for GL_EXT_vertex_array_bgraBrian Paul2009-05-211-1/+2
|
* st: use pointer_to_offset() cast wrapper to convert pointers to uintBrian Paul2009-03-091-0/+15
| | | | Silences warnings with 64-bit builds. See comments for details.
* st: move feedback draw function to new fileKeith Whitwell2008-12-121-0/+5
|
* gallium: remove unused st_draw_vertices()Brian Paul2008-04-251-7/+0
|
* gallium: added inClipCoords param to st_draw_vertices() to indicate coord ↵Brian2008-02-081-1/+2
| | | | | | system of vertices Also, export st_make_passthrough_vertex_shader() from st_cb_drawpixels.c
* st_draw_vertices() no longer needs attribs[] array parameterBrian2007-09-251-1/+1
|
* Plug in selection/feedback code.Brian2007-09-171-0/+20
| | | | | | | Not quite finished yet. Selection/feedback are done with a private instance of the 'draw' module in the state tracker. Not quite all the draw context's state is set yet, namely vertex format info. Hold off on that for a bit...
* Start to remove the temporary draw_vb() and draw_vertices() code.Brian2007-08-201-4/+8
| | | | new st_draw_vertices() utility used by glClear and glDrawPixels
* Remove references to accum buffers in softpipe.Keith Whitwell2007-08-021-1/+1
| | | | Also some minor clear fixes.
* actually use new glClear codeBrian2007-06-201-0/+4
|
* Renamed softpipe directories and files to something less confusing.Keith Whitwell2007-06-141-0/+40
softpipe/state_tracker --> state_tracker/ softpipe/ --> pipe/ softpipe/generic --> pipe/softpipe/ I don't think pipe is a great name, but I disliked all the others too. Luckily it's fairly easy to rename with git, so this can be revisited later.