mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 12:08:06 +02:00
nak: Use c == 0x0 for shuffle_up
The bounds check on SHFL.UP is from below, so we actually want maxLane == 0. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26264>
This commit is contained in:
parent
8c79d616bd
commit
11bcce9461
1 changed files with 6 additions and 2 deletions
|
|
@ -1868,14 +1868,18 @@ impl<'a> ShaderFromNir<'a> {
|
|||
in_bounds: Dst::None,
|
||||
src: data,
|
||||
lane: idx,
|
||||
c: 0x1f.into(),
|
||||
c: if intrin.intrinsic == nir_intrinsic_shuffle_up {
|
||||
0.into()
|
||||
} else {
|
||||
0x1f.into()
|
||||
},
|
||||
op: match intrin.intrinsic {
|
||||
nir_intrinsic_read_invocation
|
||||
| nir_intrinsic_shuffle => ShflOp::Idx,
|
||||
nir_intrinsic_shuffle_down => ShflOp::Down,
|
||||
nir_intrinsic_shuffle_up => ShflOp::Up,
|
||||
nir_intrinsic_shuffle_xor => ShflOp::Bfly,
|
||||
_ => panic!("Unknown vote intrinsic"),
|
||||
op => panic!("Unknown shuffle intrinsic {}", op),
|
||||
},
|
||||
});
|
||||
self.set_dst(&intrin.def, dst);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue