summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-06-06 11:20:21 -0700
committerAlyssa Rosenzweig <[email protected]>2019-06-07 09:05:29 -0700
commitd415748955034b659c8b577adc727b1fd39948b8 (patch)
tree5b5295a12896152f694668d988363f3f5a4bdb17 /src
parentd3ad8d6b480266054f8045a4f3a8111aec2655db (diff)
panfrost/midgard: Cleanup tag fetch in disassembler
Trivial. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/panfrost/midgard/disassemble.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/panfrost/midgard/disassemble.c b/src/gallium/drivers/panfrost/midgard/disassemble.c
index dcab841b164..a2a0b0dba37 100644
--- a/src/gallium/drivers/panfrost/midgard/disassemble.c
+++ b/src/gallium/drivers/panfrost/midgard/disassemble.c
@@ -1114,9 +1114,10 @@ disassemble_midgard(uint8_t *code, size_t size)
unsigned i = 0;
while (i < num_words) {
- unsigned num_quad_words = midgard_word_size[words[i] & 0xF];
+ unsigned tag = words[i] & 0xF;
+ unsigned num_quad_words = midgard_word_size[tag];
- switch (midgard_word_types[words[i] & 0xF]) {
+ switch (midgard_word_types[tag]) {
case midgard_word_type_texture:
print_texture_word(&words[i], tabs);
break;