mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
nak: rewrite repeat().take() into repeat_n()
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38807>
This commit is contained in:
parent
f571428274
commit
e0c5b40561
1 changed files with 1 additions and 1 deletions
|
|
@ -3261,7 +3261,7 @@ impl<'a> ShaderFromNir<'a> {
|
||||||
// for 32-bit we have 2x32 return type,
|
// for 32-bit we have 2x32 return type,
|
||||||
// for 64-bit we need 2x64, so is_locked must be a 64-bit val.
|
// for 64-bit we need 2x64, so is_locked must be a 64-bit val.
|
||||||
// we can fill the remaining SSAValue with a copy of is_locked
|
// we can fill the remaining SSAValue with a copy of is_locked
|
||||||
let locked_dst = std::iter::repeat(locked_gpr).take(dst.len());
|
let locked_dst = std::iter::repeat_n(locked_gpr, dst.len());
|
||||||
let nir_dst: Vec<_> =
|
let nir_dst: Vec<_> =
|
||||||
dst.iter().copied().chain(locked_dst).collect();
|
dst.iter().copied().chain(locked_dst).collect();
|
||||||
self.set_ssa(intrin.def.as_def(), nir_dst);
|
self.set_ssa(intrin.def.as_def(), nir_dst);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue