summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-08-17 16:50:01 +1000
committerTimothy Arceri <[email protected]>2017-09-15 11:42:54 +1000
commit6fa60b5e409a514315ba787b33c80fd8b2e18d64 (patch)
tree002ab0d8ecf2142d5035d6f0c64ba533dd86e18b
parentb6f6ead198c51e2144c5e880007e2f0a6ffcad3a (diff)
gallium: add CONSTBUF type to tgsi_file_type
This will be use to distinguish between load types when using the TGSI_OPCODE_LOAD opcode. Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_strings.c1
-rw-r--r--src/gallium/include/pipe/p_shader_tokens.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_strings.c b/src/gallium/auxiliary/tgsi/tgsi_strings.c
index 7ce12d36554..0872db9ce86 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_strings.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_strings.c
@@ -57,6 +57,7 @@ static const char *tgsi_file_names[] =
"SVIEW",
"BUFFER",
"MEMORY",
+ "CONSTBUF",
};
const char *tgsi_semantic_names[TGSI_SEMANTIC_COUNT] =
diff --git a/src/gallium/include/pipe/p_shader_tokens.h b/src/gallium/include/pipe/p_shader_tokens.h
index 9648f5ae8ae..fa73054e5fd 100644
--- a/src/gallium/include/pipe/p_shader_tokens.h
+++ b/src/gallium/include/pipe/p_shader_tokens.h
@@ -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 */
};