summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_asm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/r600/r600_asm.c')
-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) {