[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 12/15] virtio-gpu: drop VIRGL() macro
From: |
Gerd Hoffmann |
Subject: |
[PATCH 12/15] virtio-gpu: drop VIRGL() macro |
Date: |
Fri, 19 Mar 2021 12:21:44 +0100 |
Drops last virgl/opengl dependency from virtio-gpu-device.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
hw/display/virtio-gpu.c | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c
index 2c0065277ffd..34cf35127a3d 100644
--- a/hw/display/virtio-gpu.c
+++ b/hw/display/virtio-gpu.c
@@ -39,23 +39,6 @@ virtio_gpu_find_resource(VirtIOGPU *g, uint32_t resource_id);
static void virtio_gpu_cleanup_mapping(VirtIOGPU *g,
struct virtio_gpu_simple_resource *res);
-#ifdef CONFIG_VIRGL
-#include <virglrenderer.h>
-#define VIRGL(_g, _virgl, _simple, ...) \
- do { \
- if (_g->parent_obj.use_virgl_renderer) { \
- _virgl(__VA_ARGS__); \
- } else { \
- _simple(__VA_ARGS__); \
- } \
- } while (0)
-#else
-#define VIRGL(_g, _virgl, _simple, ...) \
- do { \
- _simple(__VA_ARGS__); \
- } while (0)
-#endif
-
void virtio_gpu_update_cursor_data(VirtIOGPU *g,
struct virtio_gpu_scanout *s,
uint32_t resource_id)
--
2.30.2
- [PATCH 00/15] virtio-gpu: split into two devices., Gerd Hoffmann, 2021/03/19
- [PATCH 03/15] virtio-gpu: add virtio-gpu-gl-pci, Gerd Hoffmann, 2021/03/19
- [PATCH 01/15] virtio-gpu: rename virgl source file., Gerd Hoffmann, 2021/03/19
- [PATCH 02/15] virtio-gpu: add virtio-gpu-gl-device, Gerd Hoffmann, 2021/03/19
- [PATCH 04/15] virtio-gpu: add virtio-vga-gl, Gerd Hoffmann, 2021/03/19
- [PATCH 12/15] virtio-gpu: drop VIRGL() macro,
Gerd Hoffmann <=
- [PATCH 07/15] virtio-gpu: use class function for ctrl queue handlers, Gerd Hoffmann, 2021/03/19
- [PATCH 11/15] virtio-gpu: move update_cursor_data, Gerd Hoffmann, 2021/03/19
- [PATCH 09/15] virtio-gpu: move virgl gl_flushed, Gerd Hoffmann, 2021/03/19
- [PATCH 05/15] virtio-gpu: move virgl realize + properties, Gerd Hoffmann, 2021/03/19
- [PATCH 06/15] virtio-gpu: move virgl reset, Gerd Hoffmann, 2021/03/19
- [PATCH 08/15] virtio-gpu: move virgl handle_ctrl, Gerd Hoffmann, 2021/03/19
- [PATCH 13/15] virtio-gpu: move virtio-gpu-gl-device to separate module, Gerd Hoffmann, 2021/03/19
- [PATCH 15/15] virtio-gpu: move fields to struct VirtIOGPUGL, Gerd Hoffmann, 2021/03/19
- [PATCH 10/15] virtio-gpu: move virgl process_cmd, Gerd Hoffmann, 2021/03/19
- [PATCH 14/15] virtio-gpu: drop use_virgl_renderer, Gerd Hoffmann, 2021/03/19