gallium: added centroid/invarient fields to declarations
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 25 Nov 2008 16:02:27 +0000 (09:02 -0700)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 25 Nov 2008 16:03:47 +0000 (09:03 -0700)
src/gallium/auxiliary/tgsi/tgsi_build.c
src/gallium/auxiliary/tgsi/tgsi_build.h

index eee2db7771a1f2dd02a74329bc72618cf381647d..fd02c2c87c844cec6dca5dd08e833768b2f21dcb 100644 (file)
@@ -133,6 +133,8 @@ tgsi_build_declaration(
    unsigned usage_mask,
    unsigned interpolate,
    unsigned semantic,
+   unsigned centroid,
+   unsigned invariant,
    struct tgsi_header *header )
 {
    struct tgsi_declaration declaration;
@@ -145,6 +147,8 @@ tgsi_build_declaration(
    declaration.UsageMask = usage_mask;
    declaration.Interpolate = interpolate;
    declaration.Semantic = semantic;
+   declaration.Centroid = centroid;
+   declaration.Invariant = invariant;
 
    header_bodysize_grow( header );
 
@@ -196,6 +200,8 @@ tgsi_build_full_declaration(
       full_decl->Declaration.UsageMask,
       full_decl->Declaration.Interpolate,
       full_decl->Declaration.Semantic,
+      full_decl->Declaration.Centroid,
+      full_decl->Declaration.Invariant,
       header );
 
    if (maxsize <= size)
index 7d6234746a21666be262aa7be3996e17e069540c..0fd6fabd83d167d51cac918e2bc0d31a83a6212f 100644 (file)
@@ -71,6 +71,8 @@ tgsi_build_declaration(
    unsigned usage_mask,
    unsigned interpolate,
    unsigned semantic,
+   unsigned centroid,
+   unsigned invariant,
    struct tgsi_header *header );
 
 struct tgsi_full_declaration