From c15e7ade4e27e1649d5b98f5854e9e52bb9e60ae Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 2 Feb 2024 22:04:40 -0800 Subject: Atomics+Wave ops intrinsics fixes. (#3542) * Fix atomics intrinsics, increase kMaxDescriptorSets. * Add SPIRVASM to known non-differentiable insts. * Support fp16 wave ops when targeting glsl. * Fixes. * Fix vk validation errors. * Fix. * Add to allowed failures. --- tools/gfx/vulkan/vk-descriptor-allocator.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools/gfx/vulkan/vk-descriptor-allocator.cpp') diff --git a/tools/gfx/vulkan/vk-descriptor-allocator.cpp b/tools/gfx/vulkan/vk-descriptor-allocator.cpp index d5e9b5863..49199091d 100644 --- a/tools/gfx/vulkan/vk-descriptor-allocator.cpp +++ b/tools/gfx/vulkan/vk-descriptor-allocator.cpp @@ -31,6 +31,10 @@ VkDescriptorPool DescriptorSetAllocator::newPool() descriptorPoolInfo.pPoolSizes = poolSizes.getBuffer(); descriptorPoolInfo.flags = VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT; + VkDescriptorPoolInlineUniformBlockCreateInfo inlineUniformBlockInfo = { VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_INLINE_UNIFORM_BLOCK_CREATE_INFO }; + inlineUniformBlockInfo.maxInlineUniformBlockBindings = 16; + descriptorPoolInfo.pNext = &inlineUniformBlockInfo; + VkDescriptorPool descriptorPool = VK_NULL_HANDLE; SLANG_VK_CHECK(m_api->vkCreateDescriptorPool( m_api->m_device, &descriptorPoolInfo, nullptr, &descriptorPool)); -- cgit v1.2.3