summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-04-05 14:22:42 +0200
committerMarek Olšák <[email protected]>2013-04-10 21:56:51 +0200
commit34c3f986419340ae695d75103bcc7907a97d0f13 (patch)
tree93314416048f4cc276f5856907e4ea916c35a5fc
parentfe29f99293cb3bbc834f4d4d65e87ac7c734615d (diff)
r600g: fix valgrind warning on Cayman
Warning: "Conditional jump or move depends on uninitialised value(s)".
-rw-r--r--src/gallium/drivers/r600/r600_asm.c2
1 files changed, 1 insertions, 1 deletions
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) {