i965: Print conditional mod in dump_instruction().
authorMatt Turner <mattst88@gmail.com>
Sun, 20 Oct 2013 22:48:14 +0000 (15:48 -0700)
committerMatt Turner <mattst88@gmail.com>
Thu, 5 Dec 2013 04:05:43 +0000 (20:05 -0800)
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_vec4.cpp

index f10f5c0de184b0cb66a939dc72c9fac510107647..f3b121acfc34821306a75dee362a294e428a71c6 100644 (file)
@@ -2831,7 +2831,7 @@ fs_visitor::dump_instruction(backend_instruction *be_inst)
    if (inst->saturate)
       printf(".sat");
    if (inst->conditional_mod) {
-      printf(".cmod");
+      printf("%s", conditional_modifier[inst->conditional_mod]);
       if (!inst->predicate &&
           (brw->gen < 5 || (inst->opcode != BRW_OPCODE_SEL &&
                               inst->opcode != BRW_OPCODE_IF &&
index 06ae0524c41eeb5db61f8d672b8126b84fb0064e..962b4cf08a422d8334a67231dc2374212ffc02c2 100644 (file)
@@ -1109,7 +1109,11 @@ vec4_visitor::dump_instruction(backend_instruction *be_inst)
 {
    vec4_instruction *inst = (vec4_instruction *)be_inst;
 
-   printf("%s ", brw_instruction_name(inst->opcode));
+   printf("%s", brw_instruction_name(inst->opcode));
+   if (inst->conditional_mod) {
+      printf("%s", conditional_modifier[inst->conditional_mod]);
+   }
+   printf(" ");
 
    switch (inst->dst.file) {
    case GRF: