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

Author: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com>
Date:   Wed Aug 14 14:42:07 2019 -0700

pan/midgard: Fix disassembly termination condition

Fixes: 863bdd1f8dc ("pan/midgard: Break, not return, in disassembler")

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzw...@collabora.com>

---

 src/panfrost/midgard/disassemble.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/panfrost/midgard/disassemble.c 
b/src/panfrost/midgard/disassemble.c
index 3e18c19593b..28f0b40e476 100644
--- a/src/panfrost/midgard/disassemble.c
+++ b/src/panfrost/midgard/disassemble.c
@@ -1387,8 +1387,6 @@ disassemble_midgard(uint8_t *code, size_t size, bool 
stats, unsigned nr_register
 
                 unsigned next = (words[i] & 0xF0) >> 4;
 
-                i += 4 * num_quad_words;
-
                 /* We are parsing per bundle anyway */
                 nr_bundles++;
                 nr_quadwords += num_quad_words;
@@ -1401,6 +1399,8 @@ disassemble_midgard(uint8_t *code, size_t size, bool 
stats, unsigned nr_register
                         if (midgard_word_types[words[i] & 0xF] != 
midgard_word_type_alu)
                                 break;
                 }
+
+                i += 4 * num_quad_words;
         }
 
         if (stats) {

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to