harness: a buffer copy's whole-texel check uses is_multiple_of
Clippy's manual_is_multiple_of stopped the harness (lint m3-max-43622) on the two remainder tests of BufferCopy::problem; is_multiple_of says the same.
This commit is contained in:
1 parent
b00be4734d
commit
75bfbbb062
1 file changed
+3
-2
@@ -474,8 +474,9 @@ impl BufferCopy {
|
||||
let element = u64::from(element);
|
||||
let row = u64::from(self.size[0]) * element;
|
||||
let rows = u64::from(self.size[1]);
|
||||
if self.offset % element != 0
|
||||
|| (rows > 1 && (self.bytes_per_row % element != 0 || self.bytes_per_row < row))
|
||||
if !self.offset.is_multiple_of(element)
|
||||
|| (rows > 1
|
||||
&& (!self.bytes_per_row.is_multiple_of(element) || self.bytes_per_row < row))
|
||||
{
|
||||
return Some(format!(
|
||||
"an offset of {} and rows {} bytes apart are not whole rows of {row} bytes of \
|
||||
|
||||
Reference in new issue
Block a user