Mesa (master): pan/bi: Remove all-0's termination condition

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Dec 21 22:04:50 UTC 2020


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

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Wed Dec 16 15:14:14 2020 -0500

pan/bi: Remove all-0's termination condition

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8139>

---

 src/panfrost/bifrost/disassemble.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/panfrost/bifrost/disassemble.c b/src/panfrost/bifrost/disassemble.c
index 49bde8ca092..872b7771219 100644
--- a/src/panfrost/bifrost/disassemble.c
+++ b/src/panfrost/bifrost/disassemble.c
@@ -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) {



More information about the mesa-commit mailing list