r600g: fix valgrind warning on Cayman

Warning: "Conditional jump or move depends on uninitialised value(s)".
This commit is contained in:
Marek Olšák 2013-04-05 14:22:42 +02:00
parent fe29f99293
commit 34c3f98641

View file

@ -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) {