mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-22 23:08:24 +02:00
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:
parent
957e7b3451
commit
10701ac331
1 changed files with 21 additions and 11 deletions
|
|
@ -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,
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue