summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/ir3/disasm-a3xx.c
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2015-04-22 13:11:33 -0400
committerRob Clark <[email protected]>2015-04-22 13:20:28 -0400
commitcb24d3b7ad2f6c03edd86d827db2b308670ae8a7 (patch)
tree411b2dfe3d553bed4e7f26fe1465af328a7621b0 /src/gallium/drivers/freedreno/ir3/disasm-a3xx.c
parent1b58d8c2bf6136af2a89178f9da4e5f0631d2909 (diff)
freedreno: misc minor cleanups
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/ir3/disasm-a3xx.c')
-rw-r--r--src/gallium/drivers/freedreno/ir3/disasm-a3xx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/disasm-a3xx.c b/src/gallium/drivers/freedreno/ir3/disasm-a3xx.c
index 22e0dc2044c..a5136c6bd3d 100644
--- a/src/gallium/drivers/freedreno/ir3/disasm-a3xx.c
+++ b/src/gallium/drivers/freedreno/ir3/disasm-a3xx.c
@@ -516,7 +516,8 @@ static void print_instr_cat6(instr_t *instr)
printf("%c[", ss);
print_reg_src((reg_t)(cat6->a.src1), true,
false, false, cat6->a.src1_im, false, false, false);
- printf("%+d", cat6->a.off);
+ if (cat6->a.off)
+ printf("%+d", cat6->a.off);
if (ss)
printf("]");
printf(", ");