From: Nicolai Hähnle <nicolai.haeh...@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 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev