From 5643cc94ac1cbc23e1ba6b16b6a88e1ce7b3f6a9 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 23 Feb 2018 12:38:14 +1000 Subject: virtio-gpu-3d: add support for second capability set (v4) Due to a kernel bug we can never increase the size of capability set 1, so introduce a new capability set in parallel, old userspace will continue to use the old set, new userspace will start using the new one when it detects a fixed kernel. v2: don't use a define from virglrenderer, just probe it. v3: fix compilation when virglrenderer disabled v4: fix style warning, just use ?: op instead. Signed-off-by: Dave Airlie Message-id: 20180223023814.24459-1-airlied@gmail.com Signed-off-by: Gerd Hoffmann --- include/standard-headers/linux/virtio_gpu.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/standard-headers/linux/virtio_gpu.h') diff --git a/include/standard-headers/linux/virtio_gpu.h b/include/standard-headers/linux/virtio_gpu.h index c1c8f0751d..52a830dcf8 100644 --- a/include/standard-headers/linux/virtio_gpu.h +++ b/include/standard-headers/linux/virtio_gpu.h @@ -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 { -- cgit 1.4.1