aco: remove needs_instance_id
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 15 Nov 2019 11:47:10 +0000 (11:47 +0000)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Jan 2020 13:35:07 +0000 (13:35 +0000)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2421>

src/amd/compiler/aco_instruction_selection.cpp
src/amd/compiler/aco_instruction_selection_setup.cpp

index 4d464cc..1792e83 100644 (file)
@@ -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);
index f8bfff0..7c53a0e 100644 (file)
@@ -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;