diff options
author | Brian Paul <[email protected]> | 2008-11-25 09:02:27 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-01-06 09:01:18 -0700 |
commit | b8cf2f00760b4d2299f0880b7e6896bb2d71407b (patch) | |
tree | 2fc63b0eab42928c5d7a9232f166eb43bf941b94 /src | |
parent | 06f2139b8285d9f8a3a33b633d14dde48e0112fe (diff) |
gallium: added centroid/invarient fields to declarations
(cherry picked from commit 4de360e67d83cd6503fb8ad053bb8afe507db5fa)
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_build.c | 6 | ||||
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_build.h | 2 |
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 1219c7da182..ed8fc5ac25b 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 7d6234746a2..0fd6fabd83d 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 |