aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard/compiler.h
diff options
context:
space:
mode:
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;