[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC QEMU PATCH 09/18] meson: Enable virglrenderer unstable APIs
From: |
Huang Rui |
Subject: |
[RFC QEMU PATCH 09/18] meson: Enable virglrenderer unstable APIs |
Date: |
Sun, 12 Mar 2023 17:22:35 +0800 |
From: Antonio Caggiano <antonio.caggiano@collabora.com>
Also, use alternatives to meson compiler has_function, which does not
work properly on my development environment.
Signed-off-by: Antonio Caggiano <antonio.caggiano@collabora.com>
---
meson.build | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/meson.build b/meson.build
index 826b3473c4..8cd453844f 100644
--- a/meson.build
+++ b/meson.build
@@ -774,13 +774,16 @@ if not get_option('virglrenderer').auto() or have_system
or have_vhost_user_gpu
method: 'pkg-config',
required: get_option('virglrenderer'),
kwargs: static_kwargs)
+ virgl = declare_dependency(compile_args: '-DVIRGL_RENDERER_UNSTABLE_APIS',
+ dependencies: virgl)
+
config_host_data.set('HAVE_VIRGL_RESOURCE_BLOB',
- cc.has_function('virgl_renderer_resource_create_blob',
+ cc.has_type('struct
virgl_renderer_resource_create_blob_args',
prefix: '#include <virglrenderer.h>',
dependencies: virgl))
config_host_data.set('HAVE_VIRGL_CONTEXT_INIT',
-
cc.has_function('virgl_renderer_context_create_with_flags',
- prefix: '#include <virglrenderer.h>',
+ cc.has_header_symbol('virglrenderer.h',
+
'VIRGL_RENDERER_CONTEXT_FLAG_CAPSET_ID_MASK',
dependencies: virgl))
endif
blkio = not_found
--
2.25.1
- [RFC QEMU PATCH 05/18] virtio-gpu: Unrealize, (continued)
[RFC QEMU PATCH 09/18] meson: Enable virglrenderer unstable APIs,
Huang Rui <=
[RFC QEMU PATCH 10/18] virtio-gpu: Handle set scanout blob command, Huang Rui, 2023/03/12
[RFC QEMU PATCH 11/18] virtio-gpu: make blob scanout use dmabuf fd, Huang Rui, 2023/03/12
[RFC QEMU PATCH 12/18] softmmu: Fix the size to map cache with xen for host virtual address, Huang Rui, 2023/03/12
[RFC QEMU PATCH 13/18] hw/i386/xen/xen-hvm: Introduce xen_ram_block_check function, Huang Rui, 2023/03/12
[RFC QEMU PATCH 14/18] softmmu: Add ram block check to map the xen ram memory, Huang Rui, 2023/03/12
[RFC QEMU PATCH 16/18] virtio-gpu: fix hw-display-virtio-gpu.so undefined symbol virtio_gpu_virgl_resource_unmap, Huang Rui, 2023/03/12
[RFC QEMU PATCH 17/18] virtio-gpu: Add video hardware accelerate support for virgl, Huang Rui, 2023/03/12
[RFC QEMU PATCH 18/18] xen: translate irq of host pci device to gsi, Huang Rui, 2023/03/12