summaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-03-10 16:19:33 -0400
committerMarge Bot <[email protected]>2020-03-11 20:28:20 +0000
commitb756a66607d1870f96470dc121e73a95d71f04d4 (patch)
treed24ea2b450aab02b1d2b598a8e11cd256c93ef17 /src/panfrost/midgard
parentc2ff3bb0fea546015755914ac7bdb477c2007da3 (diff)
pan/midgard: Remove dest_override sysval argument
Unused, noticed while working on porting over to Bifrost. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4150>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r--src/panfrost/midgard/midgard_compile.c13
1 files 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);