test(gpu): the ANV sampler cap's bounds hold at compile time, where clippy's test lane refused an assertion on constants
This commit is contained in:
1 parent
570e6a050a
commit
a83916afc6
1 file changed
+3
-1
@@ -2670,7 +2670,9 @@ mod tests {
|
||||
physical.identity.driver_id = DriverId::IntelOpenSourceMesa;
|
||||
let anv = HeapLayout::of(&physical);
|
||||
assert_eq!(anv.count(HeapArray::Samplers), HeapLayout::ANV_MAX_SAMPLERS);
|
||||
assert!(HeapLayout::ANV_MAX_SAMPLERS >= 2 * 2048 && HeapLayout::ANV_MAX_SAMPLERS > 4000);
|
||||
const _: () = assert!(
|
||||
HeapLayout::ANV_MAX_SAMPLERS >= 2 * 2048 && HeapLayout::ANV_MAX_SAMPLERS > 4000
|
||||
);
|
||||
for array in [HeapArray::SampledImages, HeapArray::StorageImages] {
|
||||
assert_eq!(anv.count(array), other.count(array));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user