summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2014-06-28 19:29:08 -0700
committerKenneth Graunke <[email protected]>2014-06-30 14:05:28 -0700
commit4fe78f4cc2fac1781a315151add77793adc61669 (patch)
tree3daeea452ea3a43520fade926a92c590496cf45c
parentf36bebcd5c9d3f23d611c59a97ab49e93c8850ee (diff)
i965/disasm: "Handle" Gen8+ HF/DF immediate cases.
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 <[email protected]> Reviewed-by: Matt Turner <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/brw_disasm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c
index 54435bef3b8..e2f2fd84103 100644
--- a/src/mesa/drivers/dri/i965/brw_disasm.c
+++ b/src/mesa/drivers/dri/i965/brw_disasm.c
@@ -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;
}