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 <brianp@vmware.com>
Tue, 6 Jan 2009 16:01:18 +0000 (09:01 -0700)
(cherry picked from commit 4de360e67d83cd6503fb8ad053bb8afe507db5fa)

src/gallium/auxiliary/tgsi/tgsi_build.c
src/gallium/auxiliary/tgsi/tgsi_build.h

index 1219c7da182a8e25c769ad4f631b1e9ef4db56f6..ed8fc5ac25b24013fa119a580da8b758c7e37776 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