diff options
author | Keith Whitwell <[email protected]> | 2008-04-19 17:27:52 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-04-19 17:27:52 +0100 |
commit | 7d72607e142c0412b88183b849fd701e698b8f79 (patch) | |
tree | 53fe84cfb03756d5dd1d04c785ff4862113255c4 /src/gallium/auxiliary/draw/draw_pt.c | |
parent | dcf6f776ce32b89b7ff784bb38030bd29698e005 (diff) |
draw: move incoming vertex state into draw->pt
This state is effectively private to the vertex processing part
of the draw module.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt.c b/src/gallium/auxiliary/draw/draw_pt.c index 965269251f7..9f8e8d3d62e 100644 --- a/src/gallium/auxiliary/draw/draw_pt.c +++ b/src/gallium/auxiliary/draw/draw_pt.c @@ -165,3 +165,11 @@ draw_arrays(struct draw_context *draw, unsigned prim, draw_pt_arrays(draw, prim, start, count); } +boolean draw_pt_get_edgeflag( struct draw_context *draw, + unsigned idx ) +{ + if (draw->pt.user.edgeflag) + return (draw->pt.user.edgeflag[idx/32] & (1 << (idx%32))) != 0; + else + return 1; +} |