瀏覽代碼

panfrost: Skip flushes only for wallpapers, not any blit

We need the flush from u_blitter for a normal blit (e.g. for mipmaps);
it's only wallpaper-related blits that are special-cased.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
tags/19.2-branchpoint
Alyssa Rosenzweig 6 年之前
父節點
當前提交
4ac42f2b38
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/gallium/drivers/panfrost/pan_context.c

+ 1
- 1
src/gallium/drivers/panfrost/pan_context.c 查看文件

@@ -2313,7 +2313,7 @@ panfrost_set_framebuffer_state(struct pipe_context *pctx,
bool is_scanout = panfrost_is_scanout(ctx);
bool has_draws = job->last_job.gpu;

if (!ctx->blitter->running && (!is_scanout || has_draws)) {
if (!ctx->wallpaper_batch && (!is_scanout || has_draws)) {
panfrost_flush(pctx, NULL, PIPE_FLUSH_END_OF_FRAME);
}


Loading…
取消
儲存