diff options
author | Gerd Hoffmann | 2020-10-26 15:28:51 +0100 |
---|---|---|
committer | Gerd Hoffmann | 2020-10-29 06:37:24 +0100 |
commit | 43376ccc8d2ceb64e281f0032897df80b6d0251a (patch) | |
tree | b0108d84b0a7de0b54341c4028937fd7e613c88e /hw/display/virtio-gpu-3d.c | |
parent | virtio-gpu: add virtio-vga module (diff) | |
download | qemu-43376ccc8d2ceb64e281f0032897df80b6d0251a.tar.gz qemu-43376ccc8d2ceb64e281f0032897df80b6d0251a.tar.xz qemu-43376ccc8d2ceb64e281f0032897df80b6d0251a.zip |
virtio-gpu: only compile virtio-gpu-3d.c for CONFIG_VIRGL=y
There is no actual code in the CONFIG_VIRGL=n case. So building is
(a) pointless and (b) makes macos ranlib complain.
Reported-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20201026142851.28735-1-kraxel@redhat.com
Diffstat (limited to 'hw/display/virtio-gpu-3d.c')
-rw-r--r-- | hw/display/virtio-gpu-3d.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/hw/display/virtio-gpu-3d.c b/hw/display/virtio-gpu-3d.c index 1bd33d7aed..0b0c11474d 100644 --- a/hw/display/virtio-gpu-3d.c +++ b/hw/display/virtio-gpu-3d.c @@ -17,8 +17,6 @@ #include "hw/virtio/virtio.h" #include "hw/virtio/virtio-gpu.h" -#ifdef CONFIG_VIRGL - #include <virglrenderer.h> static struct virgl_renderer_callbacks virtio_gpu_3d_cbs; @@ -633,5 +631,3 @@ int virtio_gpu_virgl_get_num_capsets(VirtIOGPU *g) return capset2_max_ver ? 2 : 1; } - -#endif /* CONFIG_VIRGL */ |