diff options
author | Timur Kristóf <[email protected]> | 2019-08-27 16:27:41 +0200 |
---|---|---|
committer | Timur Kristóf <[email protected]> | 2019-10-10 09:57:53 +0200 |
commit | 0be1dd856445cf30acc0a7ca74b662f6c21512b8 (patch) | |
tree | 958d8e87e918a981a6d2529360a2e5d17a784650 /src | |
parent | c24cd975159b7053aaf51ca3b684f23890a6b07e (diff) |
aco: Fix VS input VGPRs on GFX10.
Signed-off-by: Timur Kristóf <[email protected]>
Reviewed-by: Daniel Schürmann <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/compiler/aco_instruction_selection_setup.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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++); |