freedreno/afuc: Fix printing preemptleave on a5xx
authorConnor Abbott <cwabbott0@gmail.com>
Mon, 17 Aug 2020 12:11:39 +0000 (14:11 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 18 Aug 2020 16:17:31 +0000 (16:17 +0000)
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

index ae7abddaab03134541152393704a664a793bc409..d170b152fad08deb531f699d8c5472901e241f0c 100644 (file)
@@ -667,9 +667,10 @@ static void disasm(uint32_t *buf, int sizedwords)
                case OPC_PREEMPTLEAVE6:
                        if (gpuver < 6) {
                                printf("[%08x]  ; op38", instrs[i]);
                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]);
                        break;
                default:
                        printerr("[%08x]", instrs[i]);