From ad7157c1e84a0672d36b6f5cd952452fa035a0bb Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Fri, 20 Jan 2023 10:12:15 -0800 Subject: [PATCH] dzn: A single sampler descriptor set needs to support 1024 samplers Part-of: --- src/microsoft/vulkan/dzn_descriptor_set.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/microsoft/vulkan/dzn_descriptor_set.c b/src/microsoft/vulkan/dzn_descriptor_set.c index e0efea2292b..0aecf3485ed 100644 --- a/src/microsoft/vulkan/dzn_descriptor_set.c +++ b/src/microsoft/vulkan/dzn_descriptor_set.c @@ -479,8 +479,8 @@ dzn_GetDescriptorSetLayoutSupport(VkDevice device, } pSupport->supported = - sampler_count <= (MAX_DESCS_PER_SAMPLER_HEAP / MAX_SETS) && - other_desc_count <= (MAX_DESCS_PER_CBV_SRV_UAV_HEAP / MAX_SETS); + sampler_count <= MAX_DESCS_PER_SAMPLER_HEAP && + other_desc_count <= MAX_DESCS_PER_CBV_SRV_UAV_HEAP; } static void