From 0be1dd856445cf30acc0a7ca74b662f6c21512b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timur=20Krist=C3=B3f?= Date: Tue, 27 Aug 2019 16:27:41 +0200 Subject: [PATCH] aco: Fix VS input VGPRs on GFX10. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Timur Kristóf Reviewed-by: Daniel Schürmann --- src/amd/compiler/aco_instruction_selection_setup.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_instruction_selection_setup.cpp b/src/amd/compiler/aco_instruction_selection_setup.cpp index 06c697ccdc4..c72d5c23834 100644 --- a/src/amd/compiler/aco_instruction_selection_setup.cpp +++ b/src/amd/compiler/aco_instruction_selection_setup.cpp @@ -836,7 +836,11 @@ declare_vs_input_vgprs(isel_context *ctx, struct arg_info *args) { unsigned vgpr_idx = 0; add_arg(args, v1, &ctx->vertex_id, vgpr_idx++); -/* if (!ctx->is_gs_copy_shader) */ { + if (ctx->options->chip_class >= GFX10) { + add_arg(args, v1, NULL, vgpr_idx++); /* unused */ + add_arg(args, v1, &ctx->vs_prim_id, vgpr_idx++); + add_arg(args, v1, &ctx->instance_id, vgpr_idx++); + } else { if (ctx->options->key.vs.out.as_ls) { add_arg(args, v1, &ctx->rel_auto_id, vgpr_idx++); add_arg(args, v1, &ctx->instance_id, vgpr_idx++); -- 2.30.2