From 34c3f986419340ae695d75103bcc7907a97d0f13 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 5 Apr 2013 14:22:42 +0200 Subject: r600g: fix valgrind warning on Cayman Warning: "Conditional jump or move depends on uninitialised value(s)". --- src/gallium/drivers/r600/r600_asm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium') diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c index 26a848ad1aa..64e052b6fca 100644 --- a/src/gallium/drivers/r600/r600_asm.c +++ b/src/gallium/drivers/r600/r600_asm.c @@ -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) { -- cgit v1.2.3