zink: flag bindless_init before calling zink_batch_bind_db() in init

this otherwise fails to bind the bindless buffer

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21216>
This commit is contained in:
Mike Blumenkrantz 2023-02-09 07:48:39 -05:00
parent 1fdf6e140d
commit f14571e393

View file

@ -1483,6 +1483,7 @@ zink_descriptors_init_bindless(struct zink_context *ctx)
return;
struct zink_screen *screen = zink_screen(ctx->base.screen);
assert(screen->bindless_layout);
ctx->dd.bindless_init = true;
if (zink_descriptor_mode == ZINK_DESCRIPTOR_MODE_DB) {
unsigned bind = ZINK_BIND_RESOURCE_DESCRIPTOR | ZINK_BIND_SAMPLER_DESCRIPTOR;
@ -1517,7 +1518,6 @@ zink_descriptors_init_bindless(struct zink_context *ctx)
zink_descriptor_util_alloc_sets(screen, screen->bindless_layout, ctx->dd.t.bindless_pool, &ctx->dd.t.bindless_set, 1);
}
ctx->dd.bindless_init = true;
}
/* called on context destroy */