OSDN Git Service

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 7ce12d3..0872db9 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 9648f5a..fa73054 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 */
 };