mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02:00
zink: add some asserts for buffer replacement
Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12822>
This commit is contained in:
parent
f44d8d8b74
commit
566771ee31
1 changed files with 2 additions and 0 deletions
|
|
@ -3443,6 +3443,8 @@ zink_context_replace_buffer_storage(struct pipe_context *pctx, struct pipe_resou
|
|||
struct zink_context *ctx = zink_context(pctx);
|
||||
|
||||
assert(d->internal_format == s->internal_format);
|
||||
assert(d->obj);
|
||||
assert(s->obj);
|
||||
util_idalloc_mt_free(&zink_screen(pctx->screen)->buffer_ids, delete_buffer_id);
|
||||
if (zink_resource_has_unflushed_usage(d))
|
||||
zink_batch_reference_resource(&ctx->batch, d);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue