mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
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 <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
f2965fde9b
commit
863bdd1f8d
1 changed files with 4 additions and 4 deletions
|
|
@ -1338,9 +1338,6 @@ disassemble_midgard(uint8_t *code, size_t size)
|
||||||
case midgard_word_type_alu:
|
case midgard_word_type_alu:
|
||||||
print_alu_word(&words[i], num_quad_words, tabs);
|
print_alu_word(&words[i], num_quad_words, tabs);
|
||||||
|
|
||||||
if (prefetch_flag)
|
|
||||||
return;
|
|
||||||
|
|
||||||
/* Reset word static analysis state */
|
/* Reset word static analysis state */
|
||||||
is_embedded_constant_half = false;
|
is_embedded_constant_half = false;
|
||||||
is_embedded_constant_int = false;
|
is_embedded_constant_int = false;
|
||||||
|
|
@ -1355,6 +1352,9 @@ disassemble_midgard(uint8_t *code, size_t size)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (prefetch_flag && midgard_word_types[tag] == midgard_word_type_alu)
|
||||||
|
break;
|
||||||
|
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
unsigned next = (words[i] & 0xF0) >> 4;
|
unsigned next = (words[i] & 0xF0) >> 4;
|
||||||
|
|
@ -1367,7 +1367,7 @@ disassemble_midgard(uint8_t *code, size_t size)
|
||||||
prefetch_flag = true;
|
prefetch_flag = true;
|
||||||
|
|
||||||
if (midgard_word_types[words[i] & 0xF] != midgard_word_type_alu)
|
if (midgard_word_types[words[i] & 0xF] != midgard_word_type_alu)
|
||||||
return;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue