mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 07:20:10 +01:00
nak: drop redundant closure
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38807>
This commit is contained in:
parent
8a35fc9500
commit
97a7592557
2 changed files with 2 additions and 3 deletions
|
|
@ -211,8 +211,7 @@ fn sched_buffer(
|
||||||
let (new_order, cycle_count) = generate_order(&mut g, init_ready_list);
|
let (new_order, cycle_count) = generate_order(&mut g, init_ready_list);
|
||||||
|
|
||||||
// Apply the new instruction order
|
// Apply the new instruction order
|
||||||
let mut instrs: Vec<Option<Instr>> =
|
let mut instrs: Vec<Option<Instr>> = instrs.into_iter().map(Some).collect();
|
||||||
instrs.into_iter().map(|instr| Some(instr)).collect();
|
|
||||||
let instrs = new_order.into_iter().rev().map(move |i| {
|
let instrs = new_order.into_iter().rev().map(move |i| {
|
||||||
std::mem::take(&mut instrs[i]).expect("Instruction scheduled twice")
|
std::mem::take(&mut instrs[i]).expect("Instruction scheduled twice")
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -358,7 +358,7 @@ impl SM32Encoder<'_> {
|
||||||
RRR,
|
RRR,
|
||||||
}
|
}
|
||||||
let src1 = AluSrc::from_src(src1);
|
let src1 = AluSrc::from_src(src1);
|
||||||
let src2 = src2.map(|s| AluSrc::from_src(s));
|
let src2 = src2.map(AluSrc::from_src);
|
||||||
|
|
||||||
if let Some(dst) = dst {
|
if let Some(dst) = dst {
|
||||||
self.set_dst(dst);
|
self.set_dst(dst);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue