diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-02-11 21:20:30 -0500 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2020-02-16 09:16:47 -0500 |
commit | 453c64663ce938952588325ba4c960bc63297582 (patch) | |
tree | 9b586400362ab6d9f7026ba19ebb5f1276b0b90e /src/panfrost/midgard/mir.c | |
parent | 9168e7a65deefae7bb8a40c583c205c408cbecab (diff) |
pan/midgard: Overhaul tag handling
We unify disparate metadata about tags into a single structure to ensure
information is not left out.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3835>
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 5e9acc05dbd..f07a51a6e42 100644 --- a/src/panfrost/midgard/mir.c +++ b/src/panfrost/midgard/mir.c @@ -588,7 +588,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 += midgard_word_size[new.tag]; + block->quadword_count += midgard_tag_props[new.tag].size; } void @@ -613,7 +613,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 += midgard_word_size[new.tag]; + block->quadword_count += midgard_tag_props[new.tag].size; } /* Flip the first-two arguments of a (binary) op. Currently ALU |