From b756a66607d1870f96470dc121e73a95d71f04d4 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 10 Mar 2020 16:19:33 -0400 Subject: [PATCH] pan/midgard: Remove dest_override sysval argument Unused, noticed while working on porting over to Bifrost. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/midgard/midgard_compile.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c index 1088e0d3e01..f2a69ebdfca 100644 --- a/src/panfrost/midgard/midgard_compile.c +++ b/src/panfrost/midgard/midgard_compile.c @@ -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); -- 2.30.2