Module: Mesa Branch: main Commit: d637eee212cc27bc35fe784aeee2d33105c36a34 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d637eee212cc27bc35fe784aeee2d33105c36a34
Author: Mike Blumenkrantz <[email protected]> Date: Mon Apr 11 15:07:50 2022 -0400 zink: create pipeline layout if only bindless descriptor set is used bindless descriptors are descriptors too. cc: mesa-stable Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15853> --- src/gallium/drivers/zink/zink_descriptors_lazy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_descriptors_lazy.c b/src/gallium/drivers/zink/zink_descriptors_lazy.c index 9fc3f052d8f..a07c1d47f74 100644 --- a/src/gallium/drivers/zink/zink_descriptors_lazy.c +++ b/src/gallium/drivers/zink/zink_descriptors_lazy.c @@ -232,7 +232,7 @@ zink_descriptor_program_init_lazy(struct zink_context *ctx, struct zink_program if (pg->dd->bindless) zink_descriptors_init_bindless(ctx); pg->dd->binding_usage = has_bindings; - if (!has_bindings && !push_count) { + if (!has_bindings && !push_count && !pg->dd->bindless) { ralloc_free(pg->dd); pg->dd = NULL;
