Mesa (master): panfrost: Flush with offscreen rendering

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Mar 4 05:05:26 UTC 2019


Module: Mesa
Branch: master
Commit: 25bbb44dce347b37caa5efdb7d5dfccbe593427e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=25bbb44dce347b37caa5efdb7d5dfccbe593427e

Author: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Date:   Mon Mar  4 05:01:45 2019 +0000

panfrost: Flush with offscreen rendering

This special-case was needlessly added and breaks purely offscreen
rendering (when there is no scanout involved)

Signed-off-by: Alyssa Rosenzweig <alyssa at rosenzweig.io>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso at collabora.com

---

 src/gallium/drivers/panfrost/pan_context.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c
index f3d53662145..4c41969fd05 100644
--- a/src/gallium/drivers/panfrost/pan_context.c
+++ b/src/gallium/drivers/panfrost/pan_context.c
@@ -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) {




More information about the mesa-commit mailing list