aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_pipe.c
Commit message (Collapse)AuthorAgeFilesLines
* draw: Remove unnecessary vertex flag ANDs.Chia-I Wu2010-08-061-19/+15
| | | | | Vertex flags are a contract between vcache and the pipeline. They are set only for the first vertex of a primitive.
* draw: Include draw_decompose_tmp.h in draw_pt_decompose.h.Chia-I Wu2010-08-061-103/+30
| | | | Use draw_decompose_tmp.h to replace pipeline primitive decomposer.
* draw: do bounds checking of array elements (debug only)Brian Paul2010-07-291-9/+26
| | | | | | | | | Make sure that all the element indexes actually lie inside the vertex buffer. Also, rename pipe_run() to pipe_run_elts() to be more specific. And assert/check the vertex count for the non-indexed case.
* draw: initialize vertex headerZack Rusin2010-06-251-1/+1
|
* draw: mask off DRAW_PIPE_FLAG_MASK bits in prim decompose codeBrian Paul2010-06-231-25/+25
| | | | | | | | Any elt may potentially have flags bits set so mask off those bits everywhere. Fixes crashes with demos/gamma.c, redbook/polys.c, etc. but polygon stippling is still broken.
* draw: run the pipeline with the correct number of vertsZack Rusin2010-06-151-1/+1
| | | | verts per primitive, not total count
* draw: fix primitive indexing in the pipelineZack Rusin2010-06-151-2/+4
| | | | spotted by Keith
* draw wipKeith Whitwell2010-06-151-24/+41
|
* gallium: rework provoking vertex codeBrian Paul2010-05-051-3/+39
| | | | | | | | | | | | | | Builds on commit ddb0e18f6c5582d4d2cc59ffd16ad9c4639ed059 and fixes regressions in glean clipFlat test. We assume that Gallium drivers observe flatshade_first for all triangles and that all the assorted per-triangle calls in the 'draw' module also follow flatshade_first. Everything else builds on those rules. Gallium does not use follow flatshade_first for GL quads, quad strips and polygons; the "last" vertex is always the provoking vertex for those prims. So now there are separate QUAD_FIRST_PV and QUAD_LAST_PV macros in the draw primitive decomposition code instead of one QUAD macro.
* gallium/draw: fix point sprite handlingBrian Paul2010-04-211-0/+1
| | | | | | | | New draw API function to indicate whether or not to convert points to quads for sprite rasterization. Fix point-to-quad conversion regression in the wide-point stage. We need to check the pipe_rasterizer_state::point_quad_rasterization flag.
* draw: Cosmetic cleanups and comments.José Fonseca2010-04-181-1/+1
|
* gallium: Make pipe_atomic a regular int32_t.José Fonseca2010-02-021-0/+1
|
* gallium/draw: apply DRAW_PIPE_FLAG_MASK to all vertex elementsBrian Paul2010-01-221-3/+3
| | | | | | | | | Depending on first/last provoking vertex either the first or last element/index may have the extra DRAW_PIPE_x flags. Mask off those bits for all vertex elements to be safe (esp. for the quad case). This may be overly cautious, but it's a cheap operation. Fixes a segfault caused by large/bogus vertex indexes otherwise.
* gallium/draw: added comments, whitespace fixesBrian Paul2010-01-221-8/+30
|
* draw: Remove unused variable.José Fonseca2009-08-131-1/+0
|
* Merge branch 'mesa_7_5_branch'Keith Whitwell2009-08-131-22/+55
|\
| * draw: cope with more primitives in draw_pipeline_runKeith Whitwell2009-08-131-22/+55
| | | | | | | | | | | | | | | | This previously was used only for decomposed (POINT/LINE/TRI) primitives, but for some time a full range of primitives could end up in here. Fixes trivial/lineloop-clip on softpipe, among others. (cherry picked from commit 87cd8a3b8a2407b30916be418ff2f95dfea5d2ad)
* | draw: clean up indentationBrian Paul2009-06-181-11/+11
|/
* gallium: refactor/replace p_util.h with util/u_memory.h and util/u_math.hBrian Paul2008-08-241-1/+0
| | | | Also, rename p_tile.[ch] to u_tile.[ch]
* gallium: fix typo in LINE() macro (replace i+1 with i1 var)Brian Paul2008-08-201-1/+1
| | | | | We were sometimes referencing an invalid vertex. Fixes progs/trivial/line-clip.c test among others.
* draw: Fix MSVC warnings.José Fonseca2008-06-021-1/+2
|
* decomposition from keith, adds decomposition of more prim to the pipelineZack Rusin2008-05-131-24/+50
|
* redo the linear pathsZack Rusin2008-05-081-0/+39
|
* gallium: commentsBrian Paul2008-04-241-2/+2
|
* draw: handle edgeflags and reset-line-stipple againKeith Whitwell2008-04-241-10/+9
|
* draw: consolidate all the passthrough line/tri/point funcsKeith Whitwell2008-04-211-63/+0
|
* draw: make draw_reset_vertex_ids private to the draw_pipe_* codeKeith Whitwell2008-04-191-0/+2
|
* draw: put pipeline flushing behind a new interfaceKeith Whitwell2008-04-191-0/+8
|
* draw: move pt_pipeline code to draw_pipe.cKeith Whitwell2008-04-191-1/+116
| | | | | This is now the drawing interface to the pipeline. No more calling into pipeline.first->tri(), etc.
* draw: move some pipeline-specific code & state to draw_pipe.[ch]Keith Whitwell2008-04-191-0/+161