zink: simplify sampler bufferview change for non-db path

all bufferviews are deduplicated now, so this deref is unnecessary

Fixes: ef3f798957 ("zink: prune zink_surface down to the imageview and create/fetch on demand")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36269>
This commit is contained in:
Mike Blumenkrantz
2025-07-21 15:43:25 -04:00
committed by Marge Bot
parent bca1acbb42
commit 32937b8804
+1 -1
View File
@@ -2252,7 +2252,7 @@ zink_set_sampler_views(struct pipe_context *pctx,
b->buffer_view = get_buffer_view(ctx, res, b->base.format, b->base.u.buf.offset, b->base.u.buf.size);
b->rebind_count = res->rebind_count;
update = true;
} else if (!a || a->buffer_view->buffer_view != b->buffer_view->buffer_view)
} else if (!a || a->buffer_view != b->buffer_view)
update = true;
zink_screen(ctx->base.screen)->buffer_barrier(ctx, res, VK_ACCESS_SHADER_READ_BIT,
res->gfx_barrier);