summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-08-23 23:59:30 -0700
committerMatt Turner <[email protected]>2014-08-28 19:06:27 -0700
commitfb2fddefce75078bf6b1a904a65efc46c9ee6088 (patch)
treedb9ee842836eed31640626012c77de8f1ad51eea /src/mesa
parentbef7a025ebd8bbe278b2740441db34484568021c (diff)
i965/disasm: Disassemble JMPI's source properly.
The source can be a register as well as an immediate, and disassembling a register as an immediate can have some strange results. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_disasm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c
index b73ada87c55..4374278bfa5 100644
--- a/src/mesa/drivers/dri/i965/brw_disasm.c
+++ b/src/mesa/drivers/dri/i965/brw_disasm.c
@@ -1264,7 +1264,8 @@ brw_disassemble_inst(FILE *file, struct brw_context *brw, brw_inst *inst,
pad(file, 16);
format(file, "Pop: %d", brw_inst_gen4_pop_count(brw, inst));
} else if (opcode == BRW_OPCODE_JMPI) {
- format(file, " %d", brw_inst_imm_d(brw, inst));
+ pad(file, 16);
+ err |= src1(file, brw, inst);
} else if (opcode_descs[opcode].nsrc == 3) {
pad(file, 16);
err |= dest_3src(file, brw, inst);