History

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.

Aaron Ruby committed 1 year ago

Commit d499eff1 parent c1031442 files · +8 −1Browse files

Showing the changes to include/uapi (2 of 2 files). Show all

Unified · Split

2 files
  1. include/uapi/drm/virtgpu_drm.h +6 −0
  2. include/uapi/linux/virtio_gpu.h +2 −1
include/uapi/drm/virtgpu_drm.h+6−0
@@ -163,6 +163,12 @@ struct drm_virtgpu_3d_wait { · 162 unmodified lines
163163 __u32 flags;
164164 };
165165
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
166172 struct drm_virtgpu_get_caps {
167173 __u32 cap_set_id;
168174 __u32 cap_set_ver;
include/uapi/linux/virtio_gpu.h+2−1
@@ -309,8 +309,9 @@ struct virtio_gpu_cmd_submit { · 308 unmodified lines
309309
310310 #define VIRTIO_GPU_CAPSET_VIRGL 1
311311 #define VIRTIO_GPU_CAPSET_VIRGL2 2
312−/* 3 is reserved for gfxstream */
312+#define VIRTIO_GPU_CAPSET_GFXSTREAM_VULKAN 3
313313 #define VIRTIO_GPU_CAPSET_VENUS 4
314+#define VIRTIO_GPU_CAPSET_CROSS_DOMAIN 5
314315 #define VIRTIO_GPU_CAPSET_DRM 6
315316
316317 /* VIRTIO_GPU_CMD_GET_CAPSET_INFO */