mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 09:40:08 +01:00
zink: unref image buffer descriptors on unbind
Fixes: 7ab5c5d36d ("zink: use EXT_descriptor_buffer with ZINK_DESCRIPTORS=db")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21229>
This commit is contained in:
parent
e5666fe7cc
commit
128192bffb
1 changed files with 2 additions and 0 deletions
|
|
@ -1671,6 +1671,8 @@ unbind_shader_image(struct zink_context *ctx, gl_shader_stage stage, unsigned sl
|
|||
unbind_buffer_descriptor_stage(res, stage);
|
||||
unbind_buffer_descriptor_reads(res, stage);
|
||||
zink_buffer_view_reference(zink_screen(ctx->base.screen), &image_view->buffer_view, NULL);
|
||||
if (zink_descriptor_mode == ZINK_DESCRIPTOR_MODE_DB)
|
||||
pipe_resource_reference(&image_view->base.resource, NULL);
|
||||
} else {
|
||||
unbind_descriptor_stage(res, stage);
|
||||
unbind_descriptor_reads(res, stage);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue