mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
r600g: fix valgrind warning on Cayman
Warning: "Conditional jump or move depends on uninitialised value(s)".
This commit is contained in:
parent
fe29f99293
commit
34c3f98641
1 changed files with 1 additions and 1 deletions
|
|
@ -524,7 +524,7 @@ static int check_and_set_bank_swizzle(struct r600_bytecode *bc,
|
|||
} else
|
||||
r = 0;
|
||||
|
||||
if (!r && slots[4] && max_slots == 5) {
|
||||
if (!r && max_slots == 5 && slots[4]) {
|
||||
r = check_scalar(bc, slots[4], &bs, bank_swizzle[4]);
|
||||
}
|
||||
if (!r) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue