From 32937b8804a46477cd489ab177979e305acbe8d1 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 21 Jul 2025 15:43:25 -0400 Subject: [PATCH] zink: simplify sampler bufferview change for non-db path all bufferviews are deduplicated now, so this deref is unnecessary Fixes: ef3f7989574 ("zink: prune zink_surface down to the imageview and create/fetch on demand") Part-of: --- src/gallium/drivers/zink/zink_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c index 5c253a6a528..eb9042b8758 100644 --- a/src/gallium/drivers/zink/zink_context.c +++ b/src/gallium/drivers/zink/zink_context.c @@ -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);