draw: don't use clipvertex output if user plane clipping is disabled
authorRoland Scheidegger <sroland@vmware.com>
Sat, 9 Aug 2014 01:51:23 +0000 (03:51 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Sat, 9 Aug 2014 01:52:58 +0000 (03:52 +0200)
commit6d2ecdb4a63350cfeee803c00ac283ee013a5ee5
treeda2d1ef2cb9941ab62162c8bc912ddefd6e66135
parent0f4c5a70c6e759e3a7bddd7f1c2d2b8d219552a4
draw: don't use clipvertex output if user plane clipping is disabled

The non-llvm path made sure that both clip and pre_clip_pos point to the data
output by position, not clipvertex, if user based clipping is disabled.
However, the llvm path did not, which apparently led to failures if
gl_ClipVertex was written but user plane clipping not enabled (bug 80183).
Why I have no idea really, but just make it match the non-llvm behavior...

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/draw/draw_llvm.c