zink: call flush_resource when presenting garbage
this ensures the resource is queued for presentation
fixes #7359
Fixes: babf9474c4
("zink: rework flush_frontbuffer to always flush")
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18899>
This commit is contained in:

committed by
Marge Bot

parent
0a6aa58aca
commit
a47b9f2b6f
@@ -1512,6 +1512,8 @@ zink_flush_frontbuffer(struct pipe_screen *pscreen,
|
||||
ctx->needs_present = res;
|
||||
/* set batch usage to submit acquire semaphore */
|
||||
zink_batch_resource_usage_set(&ctx->batch, res, true, false);
|
||||
/* ensure the resource is set up to present garbage */
|
||||
ctx->base.flush_resource(&ctx->base, pres);
|
||||
}
|
||||
|
||||
/* handle any outstanding acquire submits (not just from above) */
|
||||
|
Reference in New Issue
Block a user