v3d: initialize value in query info

Explicitly initialize max_value to 0.

Found when running valgrind with some piglit tests.

Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/42319>
This commit is contained in:
Juan A. Suarez Romero 2026-06-15 14:22:42 +02:00 committed by Marge Bot
parent cfafa79447
commit da56dfbd22

View file

@ -69,6 +69,7 @@ v3d_get_driver_query_info(struct pipe_screen *pscreen, unsigned index,
info->query_type = PIPE_QUERY_DRIVER_SPECIFIC + index;
info->result_type = PIPE_DRIVER_QUERY_RESULT_TYPE_CUMULATIVE;
info->type = PIPE_DRIVER_QUERY_TYPE_UINT64;
info->max_value.u64 = 0;
info->flags = PIPE_DRIVER_QUERY_FLAG_BATCH;
return 1;