From e38e2d417717f4cf23aeb818999f5b1bb12eac7d Mon Sep 17 00:00:00 2001 From: baldurk Date: Sat, 25 Jan 2025 15:06:36 +0000 Subject: [PATCH] Fix VK_Descriptor_Index test declaring too large array * This was variably sized so in practice we didn't use it, but the spec still requires us to respect the max sizes that could be used for the upper bound and this lead to the wrong texture being sampled on NV. --- util/test/demos/vk/vk_descriptor_index.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/test/demos/vk/vk_descriptor_index.cpp b/util/test/demos/vk/vk_descriptor_index.cpp index a762e811a..7e96ab25e 100644 --- a/util/test/demos/vk/vk_descriptor_index.cpp +++ b/util/test/demos/vk/vk_descriptor_index.cpp @@ -372,7 +372,8 @@ void main() { 4, VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, - UINT32_MAX, + 1000000, // this must still be under the maxDescriptorSet* counts even though + // we'll trim this massively on allocation VK_SHADER_STAGE_FRAGMENT_BIT | VK_SHADER_STAGE_COMPUTE_BIT, }, })