summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2010-09-06 10:38:29 +1000
committerDave Airlie <[email protected]>2010-09-06 10:38:29 +1000
commit35e01b79cb576503fc6c7cd5759b379c26ecb5ee (patch)
treed1adbf04e4d8a714e88a4a7f751dc0d658dc9b12 /src
parent2caf6f5e84df97f71856574f1e2a8240fb18d9b6 (diff)
r600g: add error print for no literals for r700s as well
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r600/r700_asm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r700_asm.c b/src/gallium/drivers/r600/r700_asm.c
index cf08c88a19d..aaeaff59636 100644
--- a/src/gallium/drivers/r600/r700_asm.c
+++ b/src/gallium/drivers/r600/r700_asm.c
@@ -66,6 +66,9 @@ int r700_bc_alu_build(struct r600_bc *bc, struct r600_bc_alu *alu, unsigned id)
S_SQ_ALU_WORD1_OP2_UPDATE_PRED(alu->predicate);
}
if (alu->last) {
+ if (alu->nliteral && !alu->literal_added) {
+ R600_ERR("Bug in ALU processing for instruction 0x%08x, literal not added correctly\n", alu->inst);
+ }
for (i = 0; i < alu->nliteral; i++) {
bc->bytecode[id++] = alu->value[i];
}