diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index 52ca07929fc..f557e077dc2 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -2079,15 +2079,6 @@ zink_create_logical_device(struct zink_screen *screen) return dev; } -static void -pre_hash_descriptor_states(struct zink_screen *screen) -{ - VkImageViewCreateInfo null_info = {.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO}; - VkBufferViewCreateInfo null_binfo = {.sType = VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO}; - screen->null_descriptor_hashes.image_view = _mesa_hash_data(&null_info, sizeof(VkImageViewCreateInfo)); - screen->null_descriptor_hashes.buffer_view = _mesa_hash_data(&null_binfo, sizeof(VkBufferViewCreateInfo)); -} - static void check_base_requirements(struct zink_screen *screen) { @@ -2385,7 +2376,6 @@ zink_internal_create_screen(const struct pipe_screen_config *config) UTIL_QUEUE_INIT_RESIZE_IF_FULL | UTIL_QUEUE_INIT_SCALE_THREADS, screen)) goto fail; populate_format_props(screen); - pre_hash_descriptor_states(screen); slab_create_parent(&screen->transfer_pool, sizeof(struct zink_transfer), 16); diff --git a/src/gallium/drivers/zink/zink_types.h b/src/gallium/drivers/zink/zink_types.h index 52d26c6a4df..8a9936919ba 100644 --- a/src/gallium/drivers/zink/zink_types.h +++ b/src/gallium/drivers/zink/zink_types.h @@ -1139,10 +1139,6 @@ struct zink_screen { VkFormatProperties format_props[PIPE_FORMAT_COUNT]; struct zink_modifier_prop modifier_props[PIPE_FORMAT_COUNT]; - struct { - uint32_t image_view; - uint32_t buffer_view; - } null_descriptor_hashes; VkExtent2D maxSampleLocationGridSize[5];