From de4ce66f5c94b307f60f84314350bb53e3ac18d6 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Fri, 15 Nov 2019 11:47:10 +0000 Subject: [PATCH] aco: remove needs_instance_id MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- src/amd/compiler/aco_instruction_selection.cpp | 1 - src/amd/compiler/aco_instruction_selection_setup.cpp | 5 ----- 2 files changed, 6 deletions(-) diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index 4d464cc935e..1792e831222 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -3397,7 +3397,6 @@ void visit_load_input(isel_context *ctx, nir_intrinsic_instr *instr) uint32_t divisor = ctx->options->key.vs.instance_rate_divisors[location]; Temp start_instance = get_arg(ctx, ctx->args->ac.start_instance); if (divisor) { - ctx->needs_instance_id = true; Temp instance_id = get_arg(ctx, ctx->args->ac.instance_id); if (divisor != 1) { Temp divided = bld.tmp(v1); diff --git a/src/amd/compiler/aco_instruction_selection_setup.cpp b/src/amd/compiler/aco_instruction_selection_setup.cpp index f8bfff0addf..7c53a0ecd3e 100644 --- a/src/amd/compiler/aco_instruction_selection_setup.cpp +++ b/src/amd/compiler/aco_instruction_selection_setup.cpp @@ -77,9 +77,6 @@ struct isel_context { /* FS inputs */ Temp persp_centroid, linear_centroid; - /* VS inputs */ - bool needs_instance_id; - /* GS inputs */ Temp gs_wave_id; @@ -688,8 +685,6 @@ setup_vs_variables(isel_context *ctx, nir_shader *nir) memset(outinfo->vs_output_param_offset, AC_EXP_PARAM_UNDEFINED, sizeof(outinfo->vs_output_param_offset)); - ctx->needs_instance_id = ctx->program->info->vs.needs_instance_id; - bool export_clip_dists = ctx->options->key.vs_common_out.export_clip_dists; outinfo->param_exports = 0; -- 2.30.2