radeonsi: drop support for TGSI_SEMANTIC_VERTEXID_NOBASE
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 12 Apr 2017 08:58:37 +0000 (10:58 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 13 Apr 2017 15:30:11 +0000 (17:30 +0200)
It is unused.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader.c

index 3622acb3181aa3910f3163f510aa45839e6734c3..a1dc4b34702bcaca40625d154674ad3fb2d5dab3 100644 (file)
@@ -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: