i965/disasm: "Handle" Gen8+ HF/DF immediate cases.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 29 Jun 2014 02:29:08 +0000 (19:29 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 30 Jun 2014 21:05:28 +0000 (14:05 -0700)
We should print something properly, but I'm not sure how to properly
print an HF, and we don't have any DFs today to test with.

This is at least better than the current Gen8 disassembler, which would
simply assert fail.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_disasm.c

index 54435bef3b8357e1d3befdd6841aad2515c292aa..e2f2fd841034a7280401d1802ff79f091ee973ed 100644 (file)
@@ -981,6 +981,13 @@ imm(FILE *file, struct brw_context *brw, unsigned type, brw_inst *inst)
       break;
    case BRW_HW_REG_TYPE_F:
       format(file, "%-gF", brw_inst_imm_f(brw, inst));
+      break;
+   case GEN8_HW_REG_IMM_TYPE_DF:
+      string(file, "Double IMM");
+      break;
+   case GEN8_HW_REG_IMM_TYPE_HF:
+      string(file, "Half Float IMM");
+      break;
    }
    return 0;
 }