mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 06:30:10 +01:00
pan/mdg: Remove redundant redundancy
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5151>
This commit is contained in:
parent
1cd65353c9
commit
1e4793a95c
2 changed files with 0 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue