From dc60216470e17d9191644a67dc51fb04446e02e5 Mon Sep 17 00:00:00 2001 From: Zan Dobersek Date: Tue, 21 Oct 2025 16:19:21 +0200 Subject: [PATCH] tu: remove data size assert in tu_GetQueryPoolResults tu_GetQueryPoolResults() currently asserts that the passed-in data size is larger than the multiplication result of the specified stride and query count. Such assert isn't useful when retrieving results for a single query since the specified stride isn't important and can be any value. The assert is removed, incorrect data sizing should be easily detectable by existing validation tools. Fixes dEQP-VK.query_pool.occlusion_query.stride_max in VKCTS 1.4.4.0. Signed-off-by: Zan Dobersek Part-of: --- src/freedreno/vulkan/tu_query_pool.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/freedreno/vulkan/tu_query_pool.cc b/src/freedreno/vulkan/tu_query_pool.cc index f1dbbcb0c6f..4f12bb6dce9 100644 --- a/src/freedreno/vulkan/tu_query_pool.cc +++ b/src/freedreno/vulkan/tu_query_pool.cc @@ -598,8 +598,6 @@ get_query_pool_results(struct tu_device *device, VkDeviceSize stride, VkQueryResultFlags flags) { - assert(dataSize >= stride * queryCount); - char *result_base = (char *) pData; VkResult result = VK_SUCCESS; for (uint32_t i = 0; i < queryCount; i++) {