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.
Showing the changes to include/uapi (2 of 2 files). Show all
Unified · Split
| @@ -163,6 +163,12 @@ struct drm_virtgpu_3d_wait { · 162 unmodified lines | ||
| 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; |
| @@ -309,8 +309,9 @@ struct virtio_gpu_cmd_submit { · 308 unmodified lines | ||
| 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 */ |