aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-05-07 19:11:38 -0400
committerMarge Bot <[email protected]>2020-05-21 17:49:14 +0000
commit1e4793a95c2ead611b81365ea57789bff326d7db (patch)
treed06a7f353d250b68f2f6638bcbf7733a87ea105c /src/panfrost/midgard
parent1cd65353c9dce4fcb3dd70733b5366b04765caaa (diff)
pan/mdg: Remove redundant redundancy
Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5151>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r--src/panfrost/midgard/midgard_compile.c7
-rw-r--r--src/panfrost/midgard/midgard_ra.c3
2 files changed, 0 insertions, 10 deletions
diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c
index 730452fc940..070b6e32c2d 100644
--- a/src/panfrost/midgard/midgard_compile.c
+++ b/src/panfrost/midgard/midgard_compile.c
@@ -2144,13 +2144,6 @@ embedded_to_inline_constant(compiler_context *ctx, midgard_block *block)
}
if (ins->src[1] == SSA_FIXED_REGISTER(REGISTER_CONSTANT)) {
- /* Extract the source information */
-
- midgard_vector_alu_src *src;
- int q = ins->alu.src2;
- midgard_vector_alu_src *m = (midgard_vector_alu_src *) &q;
- src = m;
-
/* Component is from the swizzle. Take a nonzero component */
assert(ins->mask);
unsigned first_comp = ffs(ins->mask) - 1;
diff --git a/src/panfrost/midgard/midgard_ra.c b/src/panfrost/midgard/midgard_ra.c
index f4976560a35..e293fb43164 100644
--- a/src/panfrost/midgard/midgard_ra.c
+++ b/src/panfrost/midgard/midgard_ra.c
@@ -660,10 +660,7 @@ install_registers_instr(
ins->alu.src2 = imm << 2;
} else {
- midgard_vector_alu_src mod2 =
- vector_alu_from_unsigned(ins->alu.src2);
offset_swizzle(ins->swizzle[1], src2.offset, src2.size, dest.size, dest_offset);
- ins->alu.src2 = vector_alu_srco_unsigned(mod2);
ins->registers.src2_reg = src2.reg;
}