pan/midgard: Remove dest_override sysval argument
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 10 Mar 2020 20:19:33 +0000 (16:19 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 11 Mar 2020 20:28:20 +0000 (20:28 +0000)
Unused, noticed while working on porting over to Bifrost.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4150>

src/panfrost/midgard/midgard_compile.c

index 1088e0d3e01d0545e150fa232733613e746cf25a..f2a69ebdfca40663f6f8e0e50b7af97a691e5cec 100644 (file)
@@ -1367,7 +1367,7 @@ emit_attr_read(
 }
 
 static void
-emit_sysval_read(compiler_context *ctx, nir_instr *instr, signed dest_override,
+emit_sysval_read(compiler_context *ctx, nir_instr *instr,
                 unsigned nr_components, unsigned offset)
 {
         nir_dest nir_dest;
@@ -1378,9 +1378,6 @@ emit_sysval_read(compiler_context *ctx, nir_instr *instr, signed dest_override,
 
         unsigned dest = nir_dest_index(&nir_dest);
 
-        if (dest_override >= 0)
-                dest = dest_override;
-
         /* Sysvals are prefix uniforms */
         unsigned uniform = ((uintptr_t) val) - 1;
 
@@ -1770,18 +1767,18 @@ emit_intrinsic(compiler_context *ctx, nir_intrinsic_instr *instr)
                 break;
 
         case nir_intrinsic_load_ssbo_address:
-                emit_sysval_read(ctx, &instr->instr, ~0, 1, 0);
+                emit_sysval_read(ctx, &instr->instr, 1, 0);
                 break;
 
         case nir_intrinsic_get_buffer_size:
-                emit_sysval_read(ctx, &instr->instr, ~0, 1, 8);
+                emit_sysval_read(ctx, &instr->instr, 1, 8);
                 break;
  
         case nir_intrinsic_load_viewport_scale:
         case nir_intrinsic_load_viewport_offset:
         case nir_intrinsic_load_num_work_groups:
         case nir_intrinsic_load_sampler_lod_parameters_pan:
-                emit_sysval_read(ctx, &instr->instr, ~0, 3, 0);
+                emit_sysval_read(ctx, &instr->instr, 3, 0);
                 break;
 
         case nir_intrinsic_load_work_group_id:
@@ -2085,7 +2082,7 @@ emit_tex(compiler_context *ctx, nir_tex_instr *instr)
                 emit_texop_native(ctx, instr, TEXTURE_OP_TEXEL_FETCH);
                 break;
         case nir_texop_txs:
-                emit_sysval_read(ctx, &instr->instr, ~0, 4, 0);
+                emit_sysval_read(ctx, &instr->instr, 4, 0);
                 break;
         default: {
                 fprintf(stderr, "Unhandled texture op: %d\n", instr->op);