From f3d43c2a86afdd230690dbba2bec895d8c9a545c Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Mon, 30 Jan 2023 20:11:55 -0600 Subject: [PATCH] nvk: Allocate descriptors for input attachments Part-of: --- src/nouveau/vulkan/nvk_image_view.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nouveau/vulkan/nvk_image_view.c b/src/nouveau/vulkan/nvk_image_view.c index 9b6be07..ce14307 100644 --- a/src/nouveau/vulkan/nvk_image_view.c +++ b/src/nouveau/vulkan/nvk_image_view.c @@ -85,7 +85,8 @@ nvk_CreateImageView(VkDevice _device, }, }; - if (view->vk.usage & VK_IMAGE_USAGE_SAMPLED_BIT) { + if (view->vk.usage & (VK_IMAGE_USAGE_SAMPLED_BIT | + VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT)) { uint32_t *desc_map = nvk_descriptor_table_alloc(device, &device->images, &view->sampled_desc_index); if (desc_map == NULL) { -- 2.7.4