zink. Added storage CISto descriptor pool.
authorDuncan Hopkins <duncan@duncanhopkins.me.uk>
Wed, 4 Mar 2020 11:24:24 +0000 (11:24 +0000)
committerDuncan Hopkins <duncan@duncanhopkins.me.uk>
Wed, 4 Mar 2020 15:59:16 +0000 (15:59 +0000)
Added storage in descriptor pool for combined image samplers as well as uniform buffers.
Stops some shaders from running through a pools storage faster than zinks internal tracking.

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4045>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4045>

src/gallium/drivers/zink/zink_context.c

index c5fb0e2e0b0d5f5816ce8b31958c678a8b2c64e3..0580d234fec8ff62dc069c372ea8eec1dd37029d 100644 (file)
@@ -1127,7 +1127,8 @@ zink_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags)
    cbai.commandBufferCount = 1;
 
    VkDescriptorPoolSize sizes[] = {
-      {VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, ZINK_BATCH_DESC_SIZE}
+      {VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER,         ZINK_BATCH_DESC_SIZE},
+      {VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, ZINK_BATCH_DESC_SIZE}
    };
    VkDescriptorPoolCreateInfo dpci = {};
    dpci.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO;