r600g: add missing printf operand
[mesa.git] / src / gallium / drivers / r600 / r600_asm.c
index 1a354a6293bc0bff263954e846a696b8f0be2e8c..bf3d31cd2b0c2be1d4facc73e90f0963f387be94 100644 (file)
@@ -375,6 +375,9 @@ static int r600_bc_alu_build(struct r600_bc *bc, struct r600_bc_alu *alu, unsign
                                        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];
                }