From 34c3f986419340ae695d75103bcc7907a97d0f13 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 5 Apr 2013 14:22:42 +0200 Subject: [PATCH] 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(-) 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) { -- 2.30.2