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@rosenzweig.io>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com
This commit is contained in:
Alyssa Rosenzweig 2019-03-04 05:01:45 +00:00
parent 4f7460297b
commit 25bbb44dce
1 changed files with 2 additions and 2 deletions

View 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) {