summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_private.h
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2015-12-12 00:50:54 +0100
committerRoland Scheidegger <[email protected]>2015-12-15 02:03:40 +0100
commit8e264765a47a4904279b651b688688f5f4d11ea9 (patch)
tree95c8fbce32f678e595a2fe9114a9ef6864d3909c /src/gallium/auxiliary/draw/draw_private.h
parent1775400a20e3b85f83d0d0e99ea7382e965f4b11 (diff)
draw: remove clip_vertex from vertex header
vertex header had both clip_pos and clip_vertex. We only really need one (clip_pos) because the draw llvm shader would overwrite the position output from the vs with the viewport transformed. However, we don't really need the second one, which was only really used for gl_ClipVertex - if the shader didn't have that the values were just duplicated to both clip_pos and clip_vertex. So, just use this from the vs output instead when we actually need it. Also change clip debug to output both the data from clip_pos and the clipVertex output (if available). Makes some things more complex, some things less complex, but seems more easy to understand what clipping actually does (and what values it uses to do its magic). Reviewed-by: Brian Paul <[email protected] Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_private.h')
-rw-r--r--src/gallium/auxiliary/draw/draw_private.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_private.h b/src/gallium/auxiliary/draw/draw_private.h
index 7040d75a7fc..8774bebd5f9 100644
--- a/src/gallium/auxiliary/draw/draw_private.h
+++ b/src/gallium/auxiliary/draw/draw_private.h
@@ -89,7 +89,6 @@ struct vertex_header {
unsigned pad:1;
unsigned vertex_id:16;
- float clip_vertex[4];
float clip_pos[4];
/* This will probably become float (*data)[4] soon: