From 6fa60b5e409a514315ba787b33c80fd8b2e18d64 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Thu, 17 Aug 2017 16:50:01 +1000 Subject: [PATCH] gallium: add CONSTBUF type to tgsi_file_type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will be use to distinguish between load types when using the TGSI_OPCODE_LOAD opcode. Reviewed-by: Marek Olšák --- src/gallium/auxiliary/tgsi/tgsi_strings.c | 1 + src/gallium/include/pipe/p_shader_tokens.h | 1 + 2 files changed, 2 insertions(+) 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 */ };