diff options
author | Dave Airlie <[email protected]> | 2012-01-06 12:23:00 +0000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2012-01-11 08:20:11 +0000 |
commit | 1865f341d8f45b389061fc08d2da90b7aa8a6099 (patch) | |
tree | dbe427bbb19465398d3c62f4f0d9b58e30728c3e /src/gallium/auxiliary/draw/draw_context.c | |
parent | f7e3e46f72fffe4b83cd3f922173ff28e9ab9c7c (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_context.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_context.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c index 6d7075e5452..7e554dcbb00 100644 --- a/src/gallium/auxiliary/draw/draw_context.c +++ b/src/gallium/auxiliary/draw/draw_context.c @@ -701,6 +701,12 @@ draw_current_shader_clipvertex_output(const struct draw_context *draw) return draw->vs.clipvertex_output; } +uint +draw_current_shader_clipdistance_output(const struct draw_context *draw, int index) +{ + return draw->vs.clipdistance_output[index]; +} + /** * Return a pointer/handle for a driver/CSO rasterizer object which * disabled culling, stippling, unfilled tris, etc. |