draw/softpipe: add clip vertex support. (v2)
authorDave Airlie <airlied@redhat.com>
Wed, 4 Jan 2012 11:52:30 +0000 (11:52 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 11 Jan 2012 07:13:35 +0000 (07:13 +0000)
commit40c5987ed84f9f0b8bb1f707bb13c1aafc39330a
tree0614696dcf1b6b8f1886920b3520e38f66dcc3f3
parent34a78b7ef6b0edf217acf221eab4b63542be5552
draw/softpipe: add clip vertex support. (v2)

softpipe always clipped using the position vector, however for unclipped
vertices it stored the position in window coordinates, however when position
and clipping are separated, we need to store the clip-space position and
the clip-space vertex clip, so we can interpolate both separately.

This means we have to take the clip space position and store it to use later.

This allows softpipe to pass all the clip-vertex piglit tests.

v2: fix llvm draw regression, the structure being passed into llvm needed
updating, remove some hardcoded ints that should have been enums while there.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/draw/draw_cliptest_tmp.h
src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/draw/draw_llvm.c
src/gallium/auxiliary/draw/draw_llvm.h
src/gallium/auxiliary/draw/draw_pipe_clip.c
src/gallium/auxiliary/draw/draw_private.h
src/gallium/auxiliary/draw/draw_pt_fetch.c
src/gallium/auxiliary/draw/draw_vs.c
src/gallium/auxiliary/draw/draw_vs.h