zink: remove descriptor dummy_set
while well-intentioned, this didn't actually do anything Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18051>
This commit is contained in:
@@ -819,11 +819,8 @@ zink_descriptors_update_lazy(struct zink_context *ctx, bool is_compute)
|
||||
if (need_push && !have_KHR_push_descriptor) {
|
||||
struct zink_descriptor_pool *pool = check_push_pool_alloc(ctx, bdd->push_pool[pg->is_compute], bdd, pg->is_compute);
|
||||
push_set = get_descriptor_set_lazy(pool);
|
||||
if (!push_set) {
|
||||
mesa_loge("ZINK: failed to get push descriptor set!");
|
||||
/* just jam something in to avoid a hang */
|
||||
push_set = ctx->dd->dummy_set;
|
||||
}
|
||||
if (!push_set)
|
||||
mesa_loge("ZINK: failed to get push descriptor set! prepare to crash!");
|
||||
}
|
||||
/*
|
||||
* when binding a pipeline, the pipeline can correctly access any previously bound
|
||||
|
@@ -311,7 +311,6 @@ struct zink_descriptor_data {
|
||||
VkDescriptorUpdateTemplate push_template[2]; //gfx, compute
|
||||
|
||||
struct zink_descriptor_layout *dummy_dsl;
|
||||
VkDescriptorSet dummy_set;
|
||||
|
||||
VkDescriptorSetLayout bindless_layout;
|
||||
VkDescriptorPool bindless_pool;
|
||||
|
Reference in New Issue
Block a user