From 40c5987ed84f9f0b8bb1f707bb13c1aafc39330a Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 4 Jan 2012 11:52:30 +0000 Subject: 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 --- src/gallium/auxiliary/draw/draw_vs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/auxiliary/draw/draw_vs.h') diff --git a/src/gallium/auxiliary/draw/draw_vs.h b/src/gallium/auxiliary/draw/draw_vs.h index 49229f8164b..a3b90faa24b 100644 --- a/src/gallium/auxiliary/draw/draw_vs.h +++ b/src/gallium/auxiliary/draw/draw_vs.h @@ -111,6 +111,7 @@ struct draw_vertex_shader { struct tgsi_shader_info info; unsigned position_output; unsigned edgeflag_output; + unsigned clipvertex_output; /* Extracted from shader: */ -- cgit v1.2.3