pan/bi: Remove all-0's termination condition
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 16 Dec 2020 20:14:14 +0000 (15:14 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 21 Dec 2020 21:54:50 +0000 (21:54 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8139>

src/panfrost/bifrost/disassemble.c

index 49bde8c..872b777 100644 (file)
@@ -696,11 +696,6 @@ void disassemble_bifrost(FILE *fp, uint8_t *code, size_t size, bool verbose)
         // used for displaying branch targets
         unsigned offset = 0;
         while (words != words_end) {
-                // we don't know what the program-end bit is quite yet, so for now just
-                // assume that an all-0 quadword is padding
-                uint32_t zero[4] = {};
-                if (memcmp(words, zero, 4 * sizeof(uint32_t)) == 0)
-                        break;
                 fprintf(fp, "clause_%d:\n", offset);
                 unsigned size;
                 if (dump_clause(fp, words, &size, offset, verbose) == true) {