diff options
author | Michal Krol <[email protected]> | 2010-01-19 13:03:01 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2010-01-28 14:07:19 +0100 |
commit | 0adfdaeaa1e20c81a9f37455fe78d15c6406e3d3 (patch) | |
tree | 8b3d3aa0d4d487a32bc3344514341f35198b7661 /src/gallium/include/pipe/p_shader_tokens.h | |
parent | 241a0b8cf34a2c688f59f33758446d95d29e8447 (diff) |
gallium: Add tgsi_declaration_dimension token.
This will allow us to declare two-dimensional constant buffers.
Diffstat (limited to 'src/gallium/include/pipe/p_shader_tokens.h')
-rw-r--r-- | src/gallium/include/pipe/p_shader_tokens.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_shader_tokens.h b/src/gallium/include/pipe/p_shader_tokens.h index b489b044667..b47f4971f15 100644 --- a/src/gallium/include/pipe/p_shader_tokens.h +++ b/src/gallium/include/pipe/p_shader_tokens.h @@ -109,10 +109,11 @@ struct tgsi_declaration unsigned File : 4; /**< one of TGSI_FILE_x */ unsigned UsageMask : 4; /**< bitmask of TGSI_WRITEMASK_x flags */ unsigned Interpolate : 4; /**< one of TGSI_INTERPOLATE_x */ + unsigned Dimension : 1; /**< any extra dimension info? */ unsigned Semantic : 1; /**< BOOL, any semantic info? */ unsigned Centroid : 1; /**< centroid sampling? */ unsigned Invariant : 1; /**< invariant optimization? */ - unsigned Padding : 5; + unsigned Padding : 4; }; struct tgsi_declaration_range @@ -121,6 +122,12 @@ struct tgsi_declaration_range unsigned Last : 16; /**< UINT */ }; +struct tgsi_declaration_dimension +{ + unsigned Index2D:16; /**< UINT */ + unsigned Padding:16; +}; + #define TGSI_SEMANTIC_POSITION 0 #define TGSI_SEMANTIC_COLOR 1 #define TGSI_SEMANTIC_BCOLOR 2 /**< back-face color */ |