summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2016-11-30 11:30:06 -0800
committerEric Anholt <[email protected]>2016-11-30 19:58:09 -0800
commit1f9daf7cd1cf3d31571776a0142e9e339168a8df (patch)
tree799edd5f4f6d2d179fa06c593ccd5fd56fcb0a4d
parent98d7e874888db57841272402df4ce808c6271c99 (diff)
vc4: Fix stray "." on no-op MUL packs.
This happened when the PM bit was set for R4 unpacks, where the MUL pack was NOP.
-rw-r--r--src/gallium/drivers/vc4/vc4_qpu_disasm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qpu_disasm.c b/src/gallium/drivers/vc4/vc4_qpu_disasm.c
index 5294722722f..9ea26455b73 100644
--- a/src/gallium/drivers/vc4/vc4_qpu_disasm.c
+++ b/src/gallium/drivers/vc4/vc4_qpu_disasm.c
@@ -86,11 +86,11 @@ static const char *qpu_sig[] = {
static const char *qpu_pack_mul[] = {
[QPU_PACK_MUL_NOP] = "",
- [QPU_PACK_MUL_8888] = "8888",
- [QPU_PACK_MUL_8A] = "8a",
- [QPU_PACK_MUL_8B] = "8b",
- [QPU_PACK_MUL_8C] = "8c",
- [QPU_PACK_MUL_8D] = "8d",
+ [QPU_PACK_MUL_8888] = ".8888",
+ [QPU_PACK_MUL_8A] = ".8a",
+ [QPU_PACK_MUL_8B] = ".8b",
+ [QPU_PACK_MUL_8C] = ".8c",
+ [QPU_PACK_MUL_8D] = ".8d",
};
/* The QPU unpack for A and R4 files can be described the same, it's just that
@@ -264,7 +264,7 @@ get_special_write_desc(int reg, bool is_a)
void
vc4_qpu_disasm_pack_mul(FILE *out, uint32_t pack)
{
- fprintf(out, ".%s", DESC(qpu_pack_mul, pack));
+ fprintf(out, "%s", DESC(qpu_pack_mul, pack));
}
void