diff options
| author | Dave Airlie <airlied@redhat.com> | 2012-01-06 12:23:00 +0000 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2012-01-11 08:20:11 +0000 |
| commit | 1865f341d8f45b389061fc08d2da90b7aa8a6099 (patch) | |
| tree | dbe427bbb19465398d3c62f4f0d9b58e30728c3e /src/gallium/auxiliary/draw/draw_pt_post_vs.c | |
| parent | f7e3e46f72fffe4b83cd3f922173ff28e9ab9c7c (diff) | |
| download | external_mesa3d-1865f341d8f45b389061fc08d2da90b7aa8a6099.tar.gz external_mesa3d-1865f341d8f45b389061fc08d2da90b7aa8a6099.tar.bz2 external_mesa3d-1865f341d8f45b389061fc08d2da90b7aa8a6099.zip | |
draw: clipdistance support (v2)
Add support for using the clipdistance instead of clip plane.
Passes all piglit clipdistance tests.
v2: fixup some comments from Brian in review.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_post_vs.c')
| -rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_post_vs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt_post_vs.c b/src/gallium/auxiliary/draw/draw_pt_post_vs.c index a8d65fd5d7..a83bb59a74 100644 --- a/src/gallium/auxiliary/draw/draw_pt_post_vs.c +++ b/src/gallium/auxiliary/draw/draw_pt_post_vs.c @@ -31,7 +31,7 @@ #include "draw/draw_context.h" #include "draw/draw_private.h" #include "draw/draw_pt.h" - +#include "draw/draw_vs.h" #define DO_CLIP_XY 0x1 #define DO_CLIP_FULL_Z 0x2 @@ -56,7 +56,7 @@ initialize_vertex_header(struct vertex_header *header) { header->clipmask = 0; header->edgeflag = 1; - header->pad = 0; + header->have_clipdist = 0; header->vertex_id = UNDEFINED_VERTEX_ID; } |
