gallium: add CONSTBUF type to tgsi_file_type
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 17 Aug 2017 06:50:01 +0000 (16:50 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 15 Sep 2017 01:42:54 +0000 (11:42 +1000)
This will be use to distinguish between load types when using
the TGSI_OPCODE_LOAD opcode.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/tgsi/tgsi_strings.c
src/gallium/include/pipe/p_shader_tokens.h

index 7ce12d3655480dd86052f12e3b02c134a7b55f52..0872db9ce864b29ee8d1125fa76b313e53d3ac5b 100644 (file)
@@ -57,6 +57,7 @@ static const char *tgsi_file_names[] =
    "SVIEW",
    "BUFFER",
    "MEMORY",
+   "CONSTBUF",
 };
 
 const char *tgsi_semantic_names[TGSI_SEMANTIC_COUNT] =
index 9648f5ae8aeb5004ef89ca1c920bb9a486224dd4..fa73054e5fd82eaae7c0cc7b2f05220bf373dd86 100644 (file)
@@ -74,6 +74,7 @@ enum tgsi_file_type {
    TGSI_FILE_SAMPLER_VIEW,
    TGSI_FILE_BUFFER,
    TGSI_FILE_MEMORY,
+   TGSI_FILE_CONSTBUF,
    TGSI_FILE_COUNT,      /**< how many TGSI_FILE_ types */
 };