summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_program.h
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2014-12-01 01:01:02 -0800
committerKenneth Graunke <kenneth@whitecape.org>2014-12-02 17:00:26 -0800
commitafd605f3461462ba1b9f522b079ff5a03e7ab55c (patch)
treeac5782d37e551f50c51d956d17b1584ffc9c1e4f /src/mesa/drivers/dri/i965/brw_program.h
parent169b6c1955deee7333d61f9ff149b7124bdea7d1 (diff)
i965: Make vertex color clamp handling code VS specific.
Vertex color clamping only applies to gl_[Secondary]{Front,Back}Color, which are compatibility-only built-in varyings. We only support GS in core profile, so they can't exist in geometry shaders. We can drop several dirty bits from the GS program key - they're unnecessary for a core profile implementation. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_program.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_program.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_program.h b/src/mesa/drivers/dri/i965/brw_program.h
index 57de2728265..808fe80f406 100644
--- a/src/mesa/drivers/dri/i965/brw_program.h
+++ b/src/mesa/drivers/dri/i965/brw_program.h
@@ -93,8 +93,6 @@ struct brw_vec4_prog_key {
*/
unsigned nr_userclip_plane_consts:4;
- bool clamp_vertex_color:1;
-
struct brw_sampler_prog_key_data tex;
};
@@ -109,6 +107,8 @@ struct brw_vs_prog_key {
bool copy_edgeflag:1;
+ bool clamp_vertex_color:1;
+
/**
* For pre-Gen6 hardware, a bitfield indicating which texture coordinates
* are going to be replaced with point coordinates (as a consequence of a