r600g: fix valgrind warning on Cayman
Warning: "Conditional jump or move depends on uninitialised value(s)".
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user