mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 07:20:10 +01:00
nak: silence clippy warning about x * 0
It is useful to keep here to show that there is an offset, even though it's zero on these two first lines. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38807>
This commit is contained in:
parent
85b7386158
commit
0a529a908f
1 changed files with 1 additions and 0 deletions
|
|
@ -1727,6 +1727,7 @@ fn test_op_ldsm() {
|
||||||
//
|
//
|
||||||
// and each thread loads from the address from thread (thread_id >> 4)
|
// and each thread loads from the address from thread (thread_id >> 4)
|
||||||
// plus the offset (thread_id & 0x3) * 2
|
// plus the offset (thread_id & 0x3) * 2
|
||||||
|
#[expect(clippy::erasing_op)]
|
||||||
for i in 0..32 {
|
for i in 0..32 {
|
||||||
assert_eq!(i * 2 + 64 * 0 + 0, data[i][8].into());
|
assert_eq!(i * 2 + 64 * 0 + 0, data[i][8].into());
|
||||||
assert_eq!(i * 2 + 64 * 0 + 1, data[i][9].into());
|
assert_eq!(i * 2 + 64 * 0 + 1, data[i][9].into());
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue