diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-12-31 21:39:23 -0500 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2020-01-02 15:20:55 -0500 |
commit | db879b034a131694a819da16ddcb680cd81597a8 (patch) | |
tree | f6ed12fa855ca8a571200819cf8ba3174a16ae5c /src/panfrost/midgard/mir.c | |
parent | 66f98ffab095347d93e0310844e3037ab036c1b3 (diff) |
pan/midgard: Generalize IS_ALU and quadword_size
There are more ALU tags, let's do some cleanup while we're at it.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/mir.c')
-rw-r--r-- | src/panfrost/midgard/mir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/panfrost/midgard/mir.c b/src/panfrost/midgard/mir.c index f892094afce..506bcabe656 100644 --- a/src/panfrost/midgard/mir.c +++ b/src/panfrost/midgard/mir.c @@ -574,7 +574,7 @@ mir_insert_instruction_before_scheduled( memcpy(bundles + before, &new, sizeof(new)); list_addtail(&new.instructions[0]->link, &before_bundle->instructions[0]->link); - block->quadword_count += quadword_size(new.tag); + block->quadword_count += midgard_word_size[new.tag]; } void @@ -599,7 +599,7 @@ mir_insert_instruction_after_scheduled( midgard_bundle new = mir_bundle_for_op(ctx, ins); memcpy(bundles + after + 1, &new, sizeof(new)); list_add(&new.instructions[0]->link, &after_bundle->instructions[after_bundle->instruction_count - 1]->link); - block->quadword_count += quadword_size(new.tag); + block->quadword_count += midgard_word_size[new.tag]; } /* Flip the first-two arguments of a (binary) op. Currently ALU |