summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-11-25 09:02:27 -0700
committerBrian Paul <brianp@vmware.com>2009-01-06 09:01:18 -0700
commitb8cf2f00760b4d2299f0880b7e6896bb2d71407b (patch)
tree2fc63b0eab42928c5d7a9232f166eb43bf941b94 /src/gallium
parent06f2139b8285d9f8a3a33b633d14dde48e0112fe (diff)
gallium: added centroid/invarient fields to declarations
(cherry picked from commit 4de360e67d83cd6503fb8ad053bb8afe507db5fa)
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_build.c6
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_build.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_build.c b/src/gallium/auxiliary/tgsi/tgsi_build.c
index 1219c7da18..ed8fc5ac25 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_build.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_build.c
@@ -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)
diff --git a/src/gallium/auxiliary/tgsi/tgsi_build.h b/src/gallium/auxiliary/tgsi/tgsi_build.h
index 7d6234746a..0fd6fabd83 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_build.h
+++ b/src/gallium/auxiliary/tgsi/tgsi_build.h
@@ -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