summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nv50/nv50_pc_print.c
diff options
context:
space:
mode:
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>2010-07-26 15:06:58 +0200
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>2010-07-31 18:32:34 +0200
commit582311ca979ac2316807cdffb15e7a25000693f4 (patch)
tree23484302afee0b2b135484e771aa3405656e996d /src/gallium/drivers/nv50/nv50_pc_print.c
parent28ded2585ca856b67b8cc0dd7c1de000b3fc729b (diff)
nv50: fix for empty BBs
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_pc_print.c')
-rw-r--r--src/gallium/drivers/nv50/nv50_pc_print.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/nv50/nv50_pc_print.c b/src/gallium/drivers/nv50/nv50_pc_print.c
index 82080779c3..c2c3eb25bc 100644
--- a/src/gallium/drivers/nv50/nv50_pc_print.c
+++ b/src/gallium/drivers/nv50/nv50_pc_print.c
@@ -291,6 +291,9 @@ nv_print_instruction(struct nv_instruction *i)
if (i->def[0])
nv_print_value(i->def[0], NULL, NV_TYPE_ANY);
else
+ if (i->target)
+ PRINT(" %s(BB:%i)", orng, i->target->id);
+ else
PRINT(" #");
for (j = 0; j < 4; ++j) {
@@ -304,7 +307,5 @@ nv_print_instruction(struct nv_instruction *i)
(j == nv50_indirect_opnd(i)) ?
i->src[4]->value : NULL);
}
- if (!i->is_long)
- PRINT(" %ss", norm);
- PRINT("\n");
+ PRINT(" %s%c\n", norm, i->is_long ? 'l' : 's');
}