From: Timothy Arceri Date: Thu, 17 Aug 2017 06:50:01 +0000 (+1000) Subject: gallium: add CONSTBUF type to tgsi_file_type X-Git-Tag: android-x86-8.1-r1~9872 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=6fa60b5e409a514315ba787b33c80fd8b2e18d64;p=android-x86%2Fexternal-mesa.git 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 --- 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 */ };