Mesa (master): freedreno/afuc: Fix printing preemptleave on a5xx

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Aug 18 16:27:31 UTC 2020


Module: Mesa
Branch: master
Commit: 0acc394486fcf8b4dc4cde268b621e89d7f4a0bd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0acc394486fcf8b4dc4cde268b621e89d7f4a0bd

Author: Connor Abbott <cwabbott0 at gmail.com>
Date:   Mon Aug 17 14:11:39 2020 +0200

freedreno/afuc: Fix printing preemptleave on a5xx

This opcode is actually used on a5xx, but I'm not sure what it's for.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6368>

---

 src/freedreno/afuc/disasm.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/freedreno/afuc/disasm.c b/src/freedreno/afuc/disasm.c
index ae7abddaab0..d170b152fad 100644
--- a/src/freedreno/afuc/disasm.c
+++ b/src/freedreno/afuc/disasm.c
@@ -667,9 +667,10 @@ static void disasm(uint32_t *buf, int sizedwords)
 		case OPC_PREEMPTLEAVE6:
 			if (gpuver < 6) {
 				printf("[%08x]  ; op38", instrs[i]);
+			} else {
+				printf("preemptleave #");
+				printlbl("%s", label_name(instr->call.uoff, true));
 			}
-			printf("preemptleave #");
-			printlbl("%s", label_name(instr->call.uoff, true));
 			break;
 		default:
 			printerr("[%08x]", instrs[i]);



More information about the mesa-commit mailing list