ac/gpu_info: silence a valgrind warning due to amdgpu_query_hw_ip_info

Reviewed-by: Mihai Preda <mhpreda@gmail.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16509>
This commit is contained in:
Marek Olšák 2022-05-14 02:21:30 -04:00 committed by Marge Bot
parent 9b4c346029
commit 0eb48fa4e9

View file

@ -538,7 +538,7 @@ bool ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info,
}
for (unsigned ip_type = 0; ip_type < AMD_NUM_IP_TYPES; ip_type++) {
struct drm_amdgpu_info_hw_ip ip_info;
struct drm_amdgpu_info_hw_ip ip_info = {0};
r = amdgpu_query_hw_ip_info(dev, ip_type, 0, &ip_info);
if (r || !ip_info.available_rings)