zink: merge copy-to-scanout path into non-deferred flush path
this eliminates any desync between scanout presentation and clears
Fixes: 104603fa76 ("zink: create separate linear tiling image for scanout")
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10239>
This commit is contained in:
committed by
Marge Bot
parent
05cf1e7f36
commit
2138aef7c9
@@ -1836,12 +1836,10 @@ zink_flush(struct pipe_context *pctx,
|
||||
struct zink_fence *fence = NULL;
|
||||
struct zink_screen *screen = zink_screen(ctx->base.screen);
|
||||
|
||||
if (!deferred && ctx->clears_enabled) {
|
||||
/* start rp to do all the clears */
|
||||
zink_begin_render_pass(ctx, batch);
|
||||
}
|
||||
|
||||
if (flags & PIPE_FLUSH_END_OF_FRAME) {
|
||||
if (!deferred) {
|
||||
if (ctx->clears_enabled)
|
||||
/* start rp to do all the clears */
|
||||
zink_begin_render_pass(ctx, batch);
|
||||
zink_end_render_pass(ctx, batch);
|
||||
if (ctx->flush_res) {
|
||||
copy_scanout(ctx, ctx->flush_res);
|
||||
|
||||
Reference in New Issue
Block a user