aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard/compiler.h
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-08-27 12:20:06 -0700
committerAlyssa Rosenzweig <[email protected]>2019-08-30 15:50:24 -0700
commita8eafb0b74ace2564bb02c060529f2404bd67251 (patch)
tree605377d9151bb884888ecbd3f96914bbca939d6b /src/panfrost/midgard/compiler.h
parentcfd5bd2c7d114dd29f5bebdd12362a416d4d3bde (diff)
pan/midgard: Ensure fragment writeout is in the final block
This ensures the block only has exactly one branch, which makes scheduling happy. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/compiler.h')
-rw-r--r--src/panfrost/midgard/compiler.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/panfrost/midgard/compiler.h b/src/panfrost/midgard/compiler.h
index e6b90e4aa48..7747764791f 100644
--- a/src/panfrost/midgard/compiler.h
+++ b/src/panfrost/midgard/compiler.h
@@ -427,8 +427,9 @@ mir_exit_block(struct compiler_context *ctx)
midgard_block *last = list_last_entry(&ctx->blocks,
struct midgard_block, link);
- /* The last block must be empty (the exit block) */
- assert(list_empty(&last->instructions));
+ /* The last block must be empty logically but contains branch writeout
+ * for fragment shaders */
+
assert(last->nr_successors == 0);
return last;