i965/vec4: Print the predicate in dump_instructions().
authorMatt Turner <mattst88@gmail.com>
Thu, 13 Mar 2014 18:22:08 +0000 (11:22 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 24 Mar 2014 18:06:25 +0000 (11:06 -0700)
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_vec4.cpp

index 0245f40330cedfa45b9db1c80daa777fae742a0d..702b182c579994cd1c944274f6de5c8f2a3d2fe7 100644 (file)
@@ -1122,6 +1122,11 @@ vec4_visitor::dump_instruction(backend_instruction *be_inst)
 {
    vec4_instruction *inst = (vec4_instruction *)be_inst;
 
+   if (inst->predicate) {
+      fprintf(stderr, "(%cf0) ",
+             inst->predicate_inverse ? '-' : '+');
+   }
+
    fprintf(stderr, "%s", brw_instruction_name(inst->opcode));
    if (inst->conditional_mod) {
       fprintf(stderr, "%s", conditional_modifier[inst->conditional_mod]);