zink: always flag xfb barrier on gfx flush when appropriate

we need this to be set for internal flushes too

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9726>
This commit is contained in:
Mike Blumenkrantz 2020-11-02 13:35:54 -05:00 committed by Marge Bot
parent e7362a9cbd
commit 01790bfd45
1 changed files with 2 additions and 3 deletions

View File

@ -1342,6 +1342,8 @@ flush_batch(struct zink_context *ctx, enum zink_queue queue)
incr_curr_batch(ctx);
zink_start_batch(ctx, batch);
if (queue == ZINK_QUEUE_GFX && zink_screen(ctx->base.screen)->info.have_EXT_transform_feedback && ctx->num_so_targets)
ctx->dirty_so_targets = true;
}
struct zink_batch *
@ -1795,9 +1797,6 @@ zink_flush(struct pipe_context *pctx,
batch->state->flush_res = zink_resource(ctx->fb_state.cbufs[0]->texture);
}
flush_batch(ctx, ZINK_QUEUE_GFX);
if (zink_screen(pctx->screen)->info.have_EXT_transform_feedback && ctx->num_so_targets)
ctx->dirty_so_targets = true;
}
if (!pfence)