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:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user