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 <zdobersek@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38028>
This commit is contained in:
Zan Dobersek
2025-10-21 16:19:21 +02:00
committed by Marge Bot
parent 4799dc9447
commit dc60216470

View File

@@ -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++) {