[Mesa-dev] [PATCH 1/2] gallium: add TGSI_SEMANTIC_CLIPDIST for clip distance

Bryan Cain bryancain3 at gmail.com
Tue Dec 13 13:16:04 PST 2011


On 12/13/2011 03:07 PM, Brian Paul wrote:
> On Tue, Dec 13, 2011 at 9:59 AM, Bryan Cain <bryancain3 at gmail.com> wrote:
>> ---
>>  src/gallium/auxiliary/tgsi/tgsi_dump.c     |    3 ++-
>>  src/gallium/include/pipe/p_shader_tokens.h |    3 ++-
>>  2 files changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/src/gallium/auxiliary/tgsi/tgsi_dump.c b/src/gallium/auxiliary/tgsi/tgsi_dump.c
>> index e830aa5..bd299b0 100644
>> --- a/src/gallium/auxiliary/tgsi/tgsi_dump.c
>> +++ b/src/gallium/auxiliary/tgsi/tgsi_dump.c
>> @@ -129,7 +129,8 @@ static const char *semantic_names[] =
>>    "PRIM_ID",
>>    "INSTANCEID",
>>    "VERTEXID",
>> -   "STENCIL"
>> +   "STENCIL",
>> +   "CLIPDIST"
>>  };
>>
>>  static const char *immediate_type_names[] =
>> diff --git a/src/gallium/include/pipe/p_shader_tokens.h b/src/gallium/include/pipe/p_shader_tokens.h
>> index 10cfaf6..330e0ba 100644
>> --- a/src/gallium/include/pipe/p_shader_tokens.h
>> +++ b/src/gallium/include/pipe/p_shader_tokens.h
>> @@ -146,7 +146,8 @@ struct tgsi_declaration_dimension
>>  #define TGSI_SEMANTIC_INSTANCEID 10
>>  #define TGSI_SEMANTIC_VERTEXID   11
>>  #define TGSI_SEMANTIC_STENCIL    12
>> -#define TGSI_SEMANTIC_COUNT      13 /**< number of semantic values */
>> +#define TGSI_SEMANTIC_CLIPDIST   13
>> +#define TGSI_SEMANTIC_COUNT      14 /**< number of semantic values */
>>
>>  struct tgsi_declaration_semantic
>>  {
> Reviewed-by: Brian Paul <brianp at vmware.com

Thanks for reviewing, but this is the first version of this patch. 
There's an updated one that was sent a few hours after this one.

Bryan


More information about the mesa-dev mailing list