summaryrefslogtreecommitdiffstats
path: root/src/gallium/include/pipe
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-11-24 10:02:44 -0700
committerBrian Paul <[email protected]>2008-11-24 13:11:05 -0700
commit434e255eae90b0f3d836d452b7d3b0c5aadf78b8 (patch)
tree1b058d899dffba5a634b96d2b60aa0a9f22f5676 /src/gallium/include/pipe
parent1240280e6a7697eabd55d1a4edc6b23cae52c498 (diff)
tgsi: add tgsi_declaration fields for centroid sampling, invariant optimization
Diffstat (limited to 'src/gallium/include/pipe')
-rw-r--r--src/gallium/include/pipe/p_shader_tokens.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_shader_tokens.h b/src/gallium/include/pipe/p_shader_tokens.h
index 78c20de3e27..1292367c665 100644
--- a/src/gallium/include/pipe/p_shader_tokens.h
+++ b/src/gallium/include/pipe/p_shader_tokens.h
@@ -112,7 +112,9 @@ struct tgsi_declaration
unsigned UsageMask : 4; /* bitmask of TGSI_WRITEMASK_x flags */
unsigned Interpolate : 4; /* TGSI_INTERPOLATE_ */
unsigned Semantic : 1; /* BOOL, any semantic info? */
- unsigned Padding : 6;
+ unsigned Centroid : 1; /* centroid sampling */
+ unsigned Invariant : 1; /* invariant optimization */
+ unsigned Padding : 4;
unsigned Extended : 1; /* BOOL */
};