drm/virtio: Support sync objects
authorDmitry Osipenko <dmitry.osipenko@collabora.com>
Thu, 23 Mar 2023 23:07:55 +0000 (02:07 +0300)
committerDmitry Osipenko <dmitry.osipenko@collabora.com>
Mon, 31 Jul 2023 22:41:04 +0000 (01:41 +0300)
commit7cb8d1ab8cbda554341dac8b54fd135dedff4245
tree70796cde2abee0584f228fa2eea21735bba6b0e7
parent744d35d3436fbeed9131f6ab717aeb3f775b19c4
drm/virtio: Support sync objects

Add sync object DRM UAPI support to VirtIO-GPU driver. Sync objects
support is needed by native context VirtIO-GPU Mesa drivers, it also will
be used by Venus and Virgl contexts.

Reviewed-by; Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Tested-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> # amdgpu nctx
Tested-by: Rob Clark <robdclark@gmail.com> # freedreno nctx
Reviewed-by: Rob Clark <robdclark@gmail.com>
Acked-by: Gurchetan Singh <gurchetansingh@chromium.org>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230416115237.798604-4-dmitry.osipenko@collabora.com
drivers/gpu/drm/virtio/virtgpu_drv.c
drivers/gpu/drm/virtio/virtgpu_submit.c
include/uapi/drm/virtgpu_drm.h