diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-08-14 09:11:17 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-08-14 10:31:09 -0700 |
commit | 863bdd1f8dcb4b36b85f1ab80a3d44eea93a1663 (patch) | |
tree | 51ea0f2c8c2fba4a0b189a9a98d266f547c70d7a /src | |
parent | f2965fde9b334ba5c8f7bbef9d5c25158cfb901d (diff) |
pan/midgard: Break, not return, in disassembler
We'll want to dump some stats after the shader, and I refuse to use one
teensy little goto.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/panfrost/midgard/disassemble.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/panfrost/midgard/disassemble.c b/src/panfrost/midgard/disassemble.c index 6f4ea486915..8f2020c4c4c 100644 --- a/src/panfrost/midgard/disassemble.c +++ b/src/panfrost/midgard/disassemble.c @@ -1338,9 +1338,6 @@ disassemble_midgard(uint8_t *code, size_t size) case midgard_word_type_alu: print_alu_word(&words[i], num_quad_words, tabs); - if (prefetch_flag) - return; - /* Reset word static analysis state */ is_embedded_constant_half = false; is_embedded_constant_int = false; @@ -1355,6 +1352,9 @@ disassemble_midgard(uint8_t *code, size_t size) break; } + if (prefetch_flag && midgard_word_types[tag] == midgard_word_type_alu) + break; + printf("\n"); unsigned next = (words[i] & 0xF0) >> 4; @@ -1367,7 +1367,7 @@ disassemble_midgard(uint8_t *code, size_t size) prefetch_flag = true; if (midgard_word_types[words[i] & 0xF] != midgard_word_type_alu) - return; + break; } } |