projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2b3036
)
nvk: Allocate descriptors for input attachments
author
Faith Ekstrand
<faith.ekstrand@collabora.com>
Tue, 31 Jan 2023 02:11:55 +0000
(20:11 -0600)
committer
Marge Bot
<emma+marge@anholt.net>
Fri, 4 Aug 2023 21:31:58 +0000
(21:31 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
src/nouveau/vulkan/nvk_image_view.c
patch
|
blob
|
history
diff --git
a/src/nouveau/vulkan/nvk_image_view.c
b/src/nouveau/vulkan/nvk_image_view.c
index
9b6be07
..
ce14307
100644
(file)
--- 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) {