freedreno/drm/virtio: Appease valgrind

Valgrind isn't seeing that the kernel is initializing the caps (or
returning an error).

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16086>
This commit is contained in:
Rob Clark 2022-04-21 11:39:08 -07:00 committed by Marge Bot
parent d79c71c705
commit 0004cae638

View file

@ -53,6 +53,8 @@ get_capset(int fd, struct virgl_renderer_capset_drm *caps)
.size = sizeof(*caps),
};
memset(caps, 0, sizeof(*caps));
return drmIoctl(fd, DRM_IOCTL_VIRTGPU_GET_CAPS, &args);
}