mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-14 22:18:20 +02:00
zink: be even dumber about buffer refs when replacing storage
these extra checks can cause issues when multiple contexts and transfer
ops are involved
cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24141>
(cherry picked from commit d744bb5bfc)
This commit is contained in:
parent
186da6f7db
commit
d55b6ae40d
2 changed files with 2 additions and 4 deletions
|
|
@ -337,7 +337,7 @@
|
|||
"description": "zink: be even dumber about buffer refs when replacing storage",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -4706,9 +4706,7 @@ zink_context_replace_buffer_storage(struct pipe_context *pctx, struct pipe_resou
|
|||
assert(d->obj);
|
||||
assert(s->obj);
|
||||
util_idalloc_mt_free(&screen->buffer_ids, delete_buffer_id);
|
||||
/* add a ref just like check_resource_for_batch_ref() would've */
|
||||
if (zink_resource_has_binds(d) && zink_resource_has_usage(d))
|
||||
zink_batch_reference_resource(&ctx->batch, d);
|
||||
zink_batch_reference_resource(&ctx->batch, d);
|
||||
/* don't be too creative */
|
||||
zink_resource_object_reference(screen, &d->obj, s->obj);
|
||||
d->valid_buffer_range = s->valid_buffer_range;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue