Mesa (master): radeonsi: drop support for TGSI_SEMANTIC_VERTEXID_NOBASE
Nicolai Hähnle
nh at kemper.freedesktop.org
Thu Apr 13 15:31:44 UTC 2017
Module: Mesa
Branch: master
Commit: 215ceb37b9195ade291c4758abaf27fe61ae28cd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=215ceb37b9195ade291c4758abaf27fe61ae28cd
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date: Wed Apr 12 10:58:37 2017 +0200
radeonsi: drop support for TGSI_SEMANTIC_VERTEXID_NOBASE
It is unused.
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
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 3622acb318..a1dc4b3470 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -1395,8 +1395,9 @@ static void declare_system_value(struct si_shader_context *ctx,
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:
More information about the mesa-commit
mailing list