From 7bdcbe11ac507b0b96d2333aaeab5cf63de9ad10 Mon Sep 17 00:00:00 2001 From: Karmjit Mahil Date: Mon, 27 May 2024 11:55:10 +0100 Subject: [PATCH] turnip: Remove workaround for CTS bug zero-sized inline uniform block The cts issue was addressed in: https://github.com/KhronosGroup/VK-GL-CTS/commit/ae8b8a07118a4e0dfc185a531abe234e9956725b Affected: dEQP-VK.binding_model.descriptorset_random.*.iublimit* Signed-off-by: Karmjit Mahil Part-of: --- src/freedreno/vulkan/tu_shader.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/freedreno/vulkan/tu_shader.cc b/src/freedreno/vulkan/tu_shader.cc index 18e8a3c5205..5e49e1db69d 100644 --- a/src/freedreno/vulkan/tu_shader.cc +++ b/src/freedreno/vulkan/tu_shader.cc @@ -860,14 +860,6 @@ tu_lower_io(nir_shader *shader, struct tu_device *dev, mesa_to_vk_shader_stage(shader->info.stage))) continue; - /* Workaround a CTS bug by ignoring zero-sized inline uniform - * blocks that aren't being properly filtered out when creating the - * descriptor set layout, see - * https://gitlab.khronos.org/Tracker/vk-gl-cts/-/issues/4115 - */ - if (binding->size == 0) - continue; - /* If we don't know the size at compile time due to a variable * descriptor count, then with descriptor buffers we cannot know * how much space the real inline uniform has. In this case we fall