Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/virtio: Add capset definitions to UAPI

Since the context-type additions to the virtio-gpu spec, these have been
defined locally in guest user-space, and virtio-gpu backend library code.

Now, these capsets have been stabilized, and should be defined in a
common space, in both the virtio_gpu header, and alongside the virtgpu_drm
interface that they apply to.

Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: Aaron Ruby <aruby@qnx.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
[dmitry.osipenko@collabora.com: edit commit title]
Link: https://patchwork.freedesktop.org/patch/msgid/YT3PR01MB5857E808EDF6949F2DF517FDAFA12@YT3PR01MB5857.CANPRD01.PROD.OUTLOOK.COM

authored by

Aaron Ruby and committed by
Dmitry Osipenko
d499effe c1031442

+8 -1
+6
include/uapi/drm/virtgpu_drm.h
··· 163 163 __u32 flags; 164 164 }; 165 165 166 + #define VIRTGPU_DRM_CAPSET_VIRGL 1 167 + #define VIRTGPU_DRM_CAPSET_VIRGL2 2 168 + #define VIRTGPU_DRM_CAPSET_GFXSTREAM_VULKAN 3 169 + #define VIRTGPU_DRM_CAPSET_VENUS 4 170 + #define VIRTGPU_DRM_CAPSET_CROSS_DOMAIN 5 171 + #define VIRTGPU_DRM_CAPSET_DRM 6 166 172 struct drm_virtgpu_get_caps { 167 173 __u32 cap_set_id; 168 174 __u32 cap_set_ver;
+2 -1
include/uapi/linux/virtio_gpu.h
··· 309 309 310 310 #define VIRTIO_GPU_CAPSET_VIRGL 1 311 311 #define VIRTIO_GPU_CAPSET_VIRGL2 2 312 - /* 3 is reserved for gfxstream */ 312 + #define VIRTIO_GPU_CAPSET_GFXSTREAM_VULKAN 3 313 313 #define VIRTIO_GPU_CAPSET_VENUS 4 314 + #define VIRTIO_GPU_CAPSET_CROSS_DOMAIN 5 314 315 #define VIRTIO_GPU_CAPSET_DRM 6 315 316 316 317 /* VIRTIO_GPU_CMD_GET_CAPSET_INFO */