pan/midgard: Add schedule barrier after fragment writeout
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Sat, 23 Nov 2019 17:43:55 +0000 (12:43 -0500)
committerTomeu Vizoso <tomeu.vizoso@collabora.co.uk>
Mon, 16 Dec 2019 09:10:33 +0000 (09:10 +0000)
This is a branch, like discard, so we need a barrier to make it safe.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Tomeu Visoso <tomeu.vizoso@collabora.com>
src/panfrost/midgard/midgard_compile.c

index 5b018d86e50328c6953b0fc80e9e50b4dfd32974..8eb1b176e5ff2a4b15486e3dbdeda85254e7f708 100644 (file)
@@ -1374,6 +1374,7 @@ emit_fragment_store(compiler_context *ctx, unsigned src, unsigned rt)
 
         /* Emit the branch */
         emit_mir_instruction(ctx, ins);
+        schedule_barrier(ctx);
 }
 
 static void