nak/hw_tests: Explicitly test equal cases in test_isetp64

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30402>
This commit is contained in:
Faith Ekstrand
2024-07-26 20:55:01 -05:00
committed by Marge Bot
parent 957e7b3451
commit 10701ac331

View File

@@ -829,17 +829,27 @@ fn test_isetp64() {
let mut a = Acorn::new();
let mut data = Vec::new();
for _ in 0..invocations {
if a.get_bool() {
let high = a.get_u32();
data.push([a.get_u32(), high, a.get_u32(), high, 0]);
} else {
data.push([
a.get_u32(),
a.get_u32(),
a.get_u32(),
a.get_u32(),
0,
]);
match a.get_u32() % 4 {
0 => {
// Equal
let high = a.get_u32();
let low = a.get_u32();
data.push([low, high, low, high, 0]);
}
1 => {
// High bits are equal
let high = a.get_u32();
data.push([a.get_u32(), high, a.get_u32(), high, 0]);
}
_ => {
data.push([
a.get_u32(),
a.get_u32(),
a.get_u32(),
a.get_u32(),
0,
]);
}
}
}