]> Git Repo - qemu.git/commitdiff
virtio-gpu-3d: Define VIRTIO_GPU_CAPSET_VIRGL2 elsewhere
authorAlex Williamson <[email protected]>
Fri, 25 May 2018 13:27:50 +0000 (14:27 +0100)
committerPaolo Bonzini <[email protected]>
Fri, 1 Jun 2018 13:14:31 +0000 (15:14 +0200)
Commit 5643cc94ac1c ("virtio-gpu-3d: add support for second capability
set (v4)") updated virtio_gpu.h with a define that does not yet(?)
exist upstream resulting in build breakage every time Linux headers
are updated via the standard update script.  Conditionally define this
within QEMU code instead to avoid future breakage.

Cc: Dave Airlie <[email protected]>
Cc: Gerd Hoffmann <[email protected]>
Fixes: 5643cc94ac1c ("virtio-gpu-3d: add support for second capability set (v4)")
Signed-off-by: Alex Williamson <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
Message-Id: <20180525132755[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
include/hw/virtio/virtio-gpu.h

index 79bb3fb3ddde9cbc061b1d965ac48856a9eba96a..d6ba61f2f1263a5aaebad860eafb83f9b8d5af78 100644 (file)
 #include "qemu/log.h"
 
 #include "standard-headers/linux/virtio_gpu.h"
+
+/* Not yet(?) defined in standard-headers, remove when possible */
+#ifndef VIRTIO_GPU_CAPSET_VIRGL2
+#define VIRTIO_GPU_CAPSET_VIRGL2 2
+#endif
+
 #define TYPE_VIRTIO_GPU "virtio-gpu-device"
 #define VIRTIO_GPU(obj)                                        \
         OBJECT_CHECK(VirtIOGPU, (obj), TYPE_VIRTIO_GPU)
This page took 0.02487 seconds and 4 git commands to generate.