From b8b51d96b0146028ecb5c58703707fe994540119 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 19 Feb 2024 10:23:20 -0500 Subject: [PATCH] zink: delete maxDescriptorBufferBindings checks only one descriptor buffer is used now Fixes: 13c6ad0038a ("zink: use a single descriptor buffer for all non-bindless types") Part-of: --- src/gallium/drivers/zink/zink_screen.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c index 09ce0dc4b4a..651c91269b0 100644 --- a/src/gallium/drivers/zink/zink_screen.c +++ b/src/gallium/drivers/zink/zink_screen.c @@ -3466,23 +3466,6 @@ zink_internal_create_screen(const struct pipe_screen_config *config, int64_t dev mesa_logw("zink: bug detected: inputAttachmentDescriptorSize(%u) > %u", (unsigned)screen->info.db_props.inputAttachmentDescriptorSize, ZINK_FBFETCH_DESCRIPTOR_SIZE); can_db = false; } - if (screen->compact_descriptors) { - if (screen->info.db_props.maxDescriptorBufferBindings < 3) { - if (zink_descriptor_mode == ZINK_DESCRIPTOR_MODE_DB) { - mesa_loge("Cannot use db descriptor mode with compact descriptors with maxDescriptorBufferBindings < 3"); - goto fail; - } - can_db = false; - } - } else { - if (screen->info.db_props.maxDescriptorBufferBindings < 5) { - if (zink_descriptor_mode == ZINK_DESCRIPTOR_MODE_DB) { - mesa_loge("Cannot use db descriptor mode with maxDescriptorBufferBindings < 5"); - goto fail; - } - can_db = false; - } - } } if (zink_descriptor_mode == ZINK_DESCRIPTOR_MODE_AUTO) { /* descriptor buffer is not performant with virt yet */