aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard/midgard_ra_pipeline.c
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-03-11 08:36:31 -0400
committerMarge Bot <[email protected]>2020-03-11 20:28:20 +0000
commit5aaaf7b12c037b25f4c0a06af4744a8893c25e50 (patch)
treeb3cd38e37fb0828a23317fcf796f6acde8da57d2 /src/panfrost/midgard/midgard_ra_pipeline.c
parentc5dd1d542dea49a19ad3686d26a895395f7f7849 (diff)
pan/midgard: Subclass midgard_block from pan_block
Promote as much as we feasibly can while keeping it Midgard/Bifrost agnostic. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4150>
Diffstat (limited to 'src/panfrost/midgard/midgard_ra_pipeline.c')
-rw-r--r--src/panfrost/midgard/midgard_ra_pipeline.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/panfrost/midgard/midgard_ra_pipeline.c b/src/panfrost/midgard/midgard_ra_pipeline.c
index 7a8c7b118e2..48f45cb9adb 100644
--- a/src/panfrost/midgard/midgard_ra_pipeline.c
+++ b/src/panfrost/midgard/midgard_ra_pipeline.c
@@ -108,7 +108,9 @@ mir_create_pipeline_registers(compiler_context *ctx)
{
mir_invalidate_liveness(ctx);
- mir_foreach_block(ctx, block) {
+ mir_foreach_block(ctx, _block) {
+ midgard_block *block = (midgard_block *) _block;
+
mir_foreach_bundle_in_block(block, bundle) {
if (!mir_is_alu_bundle(bundle)) continue;
if (bundle->instruction_count < 2) continue;