diff options
author | Zack Rusin <[email protected]> | 2013-06-05 23:17:10 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2013-06-10 22:04:27 -0400 |
commit | 2b2e7bb13361fa93c49c4872cc5070a66a7b1746 (patch) | |
tree | 562d262275793efb583ae5965924d51ec90508e5 /src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c | |
parent | c1a50f5ed7beb2f6aecfbacdc3339c8cb0107257 (diff) |
draw: enable user plane clipping when clipdistance is used
Draw depended on clip_plane_enable being set in the rasterizer
to use clipdistance registers for clipping. That's really
unfriendly because it requires that rasterizer state to have
variants for every shader out there. Instead of depending on
the rasterizer lets extract the info from the available state:
if a shader writes clipdistance then we need to use it and we
need to clip using a number of planes equal to the number
of writen clipdistance components. This way clipdistances
just work.
Signed-off-by: Zack Rusin <[email protected]>
Reviewed-by: Jose Fonseca <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c')
0 files changed, 0 insertions, 0 deletions