summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/draw/draw_pipe.c
AgeCommit message (Collapse)Author
2010-06-25draw: initialize vertex headerZack Rusin
2010-06-23draw: mask off DRAW_PIPE_FLAG_MASK bits in prim decompose codeBrian Paul
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.
2010-06-15draw: run the pipeline with the correct number of vertsZack Rusin
verts per primitive, not total count
2010-06-15draw: fix primitive indexing in the pipelineZack Rusin
spotted by Keith
2010-06-15draw wipKeith Whitwell
2010-05-05gallium: rework provoking vertex codeBrian Paul
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.
2010-04-21gallium/draw: fix point sprite handlingBrian Paul
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.
2010-04-18draw: Cosmetic cleanups and comments.José Fonseca
2010-02-02gallium: Make pipe_atomic a regular int32_t.José Fonseca
2010-01-22gallium/draw: apply DRAW_PIPE_FLAG_MASK to all vertex elementsBrian Paul
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.
2010-01-22gallium/draw: added comments, whitespace fixesBrian Paul
2009-08-13draw: Remove unused variable.José Fonseca
2009-08-13Merge branch 'mesa_7_5_branch'Keith Whitwell
2009-08-13draw: cope with more primitives in draw_pipeline_runKeith Whitwell
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)
2009-06-18draw: clean up indentationBrian Paul
2008-08-24gallium: refactor/replace p_util.h with util/u_memory.h and util/u_math.hBrian Paul
Also, rename p_tile.[ch] to u_tile.[ch]
2008-08-20gallium: fix typo in LINE() macro (replace i+1 with i1 var)Brian Paul
We were sometimes referencing an invalid vertex. Fixes progs/trivial/line-clip.c test among others.
2008-06-02draw: Fix MSVC warnings.José Fonseca
2008-05-13decomposition from keith, adds decomposition of more prim to the pipelineZack Rusin
2008-05-08redo the linear pathsZack Rusin
2008-04-24gallium: commentsBrian Paul
2008-04-24draw: handle edgeflags and reset-line-stipple againKeith Whitwell
2008-04-21draw: consolidate all the passthrough line/tri/point funcsKeith Whitwell
2008-04-19draw: make draw_reset_vertex_ids private to the draw_pipe_* codeKeith Whitwell
2008-04-19draw: put pipeline flushing behind a new interfaceKeith Whitwell
2008-04-19draw: move pt_pipeline code to draw_pipe.cKeith Whitwell
This is now the drawing interface to the pipeline. No more calling into pipeline.first->tri(), etc.
2008-04-19draw: move some pipeline-specific code & state to draw_pipe.[ch]Keith Whitwell