panfrost: Flush with offscreen rendering
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Mon, 4 Mar 2019 05:01:45 +0000 (05:01 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Mon, 4 Mar 2019 05:01:45 +0000 (05:01 +0000)
This special-case was needlessly added and breaks purely offscreen
rendering (when there is no scanout involved)

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com
src/gallium/drivers/panfrost/pan_context.c

index f3d5366214521ab969980f3ba0c95d8b875c5b55..4c41969fd0515f1bc78e20b8efaa718a33fdd825 100644 (file)
@@ -1560,14 +1560,14 @@ panfrost_submit_frame(struct panfrost_context *ctx, bool flush_immediate)
 
         /* If visual, we can stall a frame */
 
-        if (panfrost_is_scanout(ctx) && !flush_immediate)
+        if (!flush_immediate)
                 screen->driver->force_flush_fragment(ctx);
 
         screen->last_fragment_id = fragment_id;
         screen->last_fragment_flushed = false;
 
         /* If readback, flush now (hurts the pipelined performance) */
-        if (panfrost_is_scanout(ctx) && flush_immediate)
+        if (flush_immediate)
                 screen->driver->force_flush_fragment(ctx);
 
         if (screen->driver->dump_counters && pan_counters_base) {