mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
zink: also refcount needs_present from frontbuffer flush
Fixes:4b0f2d1a2b("zink: refcount needs_present resource") Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33324> (cherry picked from commit41296aab47)
This commit is contained in:
parent
c96c123114
commit
ab687c3983
2 changed files with 2 additions and 2 deletions
|
|
@ -844,7 +844,7 @@
|
|||
"description": "zink: also refcount needs_present from frontbuffer flush",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "4b0f2d1a2b30e5a288f909683203bfa3bbfacf50",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1820,7 +1820,7 @@ zink_flush_frontbuffer(struct pipe_screen *pscreen,
|
|||
if (!zink_kopper_acquired(res->obj->dt, res->obj->dt_idx)) {
|
||||
/* swapbuffers to an undefined surface: acquire and present garbage */
|
||||
zink_kopper_acquire(ctx, res, UINT64_MAX);
|
||||
ctx->needs_present = res;
|
||||
zink_resource_reference(&ctx->needs_present, res);
|
||||
/* set batch usage to submit acquire semaphore */
|
||||
zink_batch_resource_usage_set(ctx->bs, res, true, false);
|
||||
/* ensure the resource is set up to present garbage */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue