From: Eric Anholt Date: Wed, 30 Nov 2016 19:30:06 +0000 (-0800) Subject: vc4: Fix stray "." on no-op MUL packs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f9daf7cd1cf3d31571776a0142e9e339168a8df;p=mesa.git 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. --- 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