draw/llvm: add clip distance support
authorDave Airlie <airlied@redhat.com>
Sat, 3 Mar 2012 17:35:43 +0000 (17:35 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 6 Mar 2012 09:37:33 +0000 (09:37 +0000)
commitef3e26c2e43a000d5e5e6b673324b0ebdc918207
treed019d347c7be506b4416593af51ee1c5ee887732
parent9c465a95ac612b346759d35fd58a9edbb79eef67
draw/llvm: add clip distance support

This add clipdistance support like the non-llvm draw paths,
if we have a clip distance we compare with it instead of doing
the dot4.

We also have to put the have_clipvertex bit into the emitted
vertex header.

Fixes vs-clip-distance-all-planes-enabled, vs-clip-distance-const-reject,
vs-clip-distance-enables, vs-clip-distance-implicitly-sized,
vs-clip-distance-in-param, vs-clip-distance-uint-index.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/draw/draw_llvm.c