drm/virtio: add define for second capset to the virgl code.
authorDave Airlie <airlied@redhat.com>
Thu, 3 May 2018 02:10:21 +0000 (12:10 +1000)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 14 May 2018 09:01:29 +0000 (11:01 +0200)
Although the kernel doesn't use this, qemu imports these headers
and it's best to keep them consistent.

This define is also something userspace may want to use.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20180503021021.10694-1-airlied@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
include/uapi/linux/virtio_gpu.h

index 4b04ead26cd9c8cd14f81c4b3eabab00590e0b87..f43c3c6171ffeb3725ef4d55e4f22b99a8f86a51 100644 (file)
@@ -260,6 +260,7 @@ struct virtio_gpu_cmd_submit {
 };
 
 #define VIRTIO_GPU_CAPSET_VIRGL 1
+#define VIRTIO_GPU_CAPSET_VIRGL2 2
 
 /* VIRTIO_GPU_CMD_GET_CAPSET_INFO */
 struct virtio_gpu_get_capset_info {