[Mesa-dev] [PATCH 1/6] radeonsi: drop support for TGSI_SEMANTIC_VERTEXID_NOBASE

Nicolai Hähnle nhaehnle at gmail.com
Wed Apr 12 09:19:58 UTC 2017


From: Nicolai Hähnle <nicolai.haehnle at amd.com>

It is unused.
---
 src/gallium/drivers/radeonsi/si_shader.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index f5f86f9..c97e27d 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -1388,22 +1388,23 @@ static void declare_system_value(struct si_shader_context *ctx,
 
 	case TGSI_SEMANTIC_VERTEXID:
 		value = LLVMBuildAdd(gallivm->builder,
 				     LLVMGetParam(ctx->main_fn,
 						  ctx->param_vertex_id),
 				     LLVMGetParam(ctx->main_fn,
 						  SI_PARAM_BASE_VERTEX), "");
 		break;
 
 	case TGSI_SEMANTIC_VERTEXID_NOBASE:
-		value = LLVMGetParam(ctx->main_fn,
-				     ctx->param_vertex_id);
+		/* Unused. Clarify the meaning in indexed vs. non-indexed
+		 * draws if this is ever used again. */
+		assert(false);
 		break;
 
 	case TGSI_SEMANTIC_BASEVERTEX:
 		value = LLVMGetParam(ctx->main_fn,
 				     SI_PARAM_BASE_VERTEX);
 		break;
 
 	case TGSI_SEMANTIC_BASEINSTANCE:
 		value = LLVMGetParam(ctx->main_fn,
 				     SI_PARAM_START_INSTANCE);
-- 
2.9.3



More information about the mesa-dev mailing list