mirror of https://github.com/xemu-project/xemu.git
modules: build virtio-gpu-pci & virtio-vga modular.
modules: various bugfixes, mostly for macos. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAABCgAGBQJfmqL1AAoJEEy22O7T6HE4NYsQAKgWSaErawPwErBa2U8QwDwq fT+dsaMxoR3qvJNROydfe7rdelTP4Pk4m/2Ncp/MmhLAsoNouRR2PIZO/yBJPmaN xyvNPhOJhPqOk0XL4KDpcP4qoEf6v84vpcj6qhTSCdtLjLijdQTHwO4CGQCqPTkq e+j2X+KYuXX4BuXN0x2flko9u4sFhfcz5mh23ofRfrQYHF4A+fAB6SMoVdNgtkTr ViNjt2f16E90TJMFQaGTRXa5ZWe5QYKFgsGQkLB2SN3zt8K7nb3uUhSNANe9rqkH 80GP5YGAhqcUYKCAEbG4KXyuYe1Gks/ziyuUSMQJ5vr/z6OjlF4AkKN2t1DaTng3 O+apeHTAR2beffA2fWqOVryp8tJqBjpgnRxOp8RAY14E43J3uo/G/mQpzUrWOH4l Az1rCXjM7vZoAdY3tdlPB2cZPOiDliBgsWTuKLgaXhMzRm4Q7DHCPkxuicTBt7EE uQThJkeUucdyRg/CFdqqdwXKvr5L4NDEt9BeXhxPeoNPrV+aWVwPbjeMmtvI3+9B dI+tKuuZnHh4zBw8KzAB4kjP19/rXuz1vASuoN3foWw3VkYhL+PrJIgH2NmOjF6o Uvcd4opf7zWLj4XAebyaQcH6xGIdkIsYRoT3LQy3MnbvFKt/FFYNyecjRMEij7n6 BxleePsa6tHbgWDB6xGj =LouB -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/kraxel/tags/modules-20201029-pull-request' into staging modules: build virtio-gpu-pci & virtio-vga modular. modules: various bugfixes, mostly for macos. # gpg: Signature made Thu 29 Oct 2020 11:09:41 GMT # gpg: using RSA key 4CB6D8EED3E87138 # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>" [full] # gpg: aka "Gerd Hoffmann <gerd@kraxel.org>" [full] # gpg: aka "Gerd Hoffmann (private) <kraxel@gmail.com>" [full] # Primary key fingerprint: A032 8CFF B93A 17A7 9901 FE7D 4CB6 D8EE D3E8 7138 * remotes/kraxel/tags/modules-20201029-pull-request: modules: turn off lazy binding modules: unbreak them on macos virtio-gpu: only compile virtio-gpu-3d.c for CONFIG_VIRGL=y virtio-gpu: add virtio-vga module virtio-gpu: add virtio-gpu-pci module Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
2ab6c49433
|
@ -618,6 +618,7 @@ Darwin)
|
|||
if test -z "$cpu" && test "$(sysctl -n hw.optional.x86_64)" = "1"; then
|
||||
cpu="x86_64"
|
||||
fi
|
||||
HOST_DSOSUF=".dylib"
|
||||
;;
|
||||
SunOS)
|
||||
# $(uname -m) returns i86pc even on an x86_64 box, so default based on isainfo
|
||||
|
|
|
@ -57,15 +57,30 @@ softmmu_ss.add(when: [pixman, 'CONFIG_ATI_VGA'], if_true: files('ati.c', 'ati_2d
|
|||
if config_all_devices.has_key('CONFIG_VIRTIO_GPU')
|
||||
virtio_gpu_ss = ss.source_set()
|
||||
virtio_gpu_ss.add(when: 'CONFIG_VIRTIO_GPU',
|
||||
if_true: [files('virtio-gpu-base.c', 'virtio-gpu.c', 'virtio-gpu-3d.c'), pixman, virgl])
|
||||
if_true: [files('virtio-gpu-base.c', 'virtio-gpu.c'), pixman, virgl])
|
||||
virtio_gpu_ss.add(when: ['CONFIG_VIRTIO_GPU', 'CONFIG_VIRGL'],
|
||||
if_true: [files('virtio-gpu-3d.c'), pixman, virgl])
|
||||
virtio_gpu_ss.add(when: 'CONFIG_VHOST_USER_GPU', if_true: files('vhost-user-gpu.c'))
|
||||
hw_display_modules += {'virtio-gpu': virtio_gpu_ss}
|
||||
endif
|
||||
|
||||
softmmu_ss.add(when: ['CONFIG_VIRTIO_GPU', 'CONFIG_VIRTIO_PCI'], if_true: files('virtio-gpu-pci.c'))
|
||||
softmmu_ss.add(when: ['CONFIG_VHOST_USER_GPU', 'CONFIG_VIRTIO_PCI'], if_true: files('vhost-user-gpu-pci.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_VIRTIO_VGA', if_true: files('virtio-vga.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_VHOST_USER_VGA', if_true: files('vhost-user-vga.c'))
|
||||
if config_all_devices.has_key('CONFIG_VIRTIO_PCI')
|
||||
virtio_gpu_pci_ss = ss.source_set()
|
||||
virtio_gpu_pci_ss.add(when: ['CONFIG_VIRTIO_GPU', 'CONFIG_VIRTIO_PCI'],
|
||||
if_true: [files('virtio-gpu-pci.c'), pixman])
|
||||
virtio_gpu_pci_ss.add(when: ['CONFIG_VHOST_USER_GPU', 'CONFIG_VIRTIO_PCI'],
|
||||
if_true: files('vhost-user-gpu-pci.c'))
|
||||
hw_display_modules += {'virtio-gpu-pci': virtio_gpu_pci_ss}
|
||||
endif
|
||||
|
||||
if config_all_devices.has_key('CONFIG_VIRTIO_VGA')
|
||||
virtio_vga_ss = ss.source_set()
|
||||
virtio_vga_ss.add(when: 'CONFIG_VIRTIO_VGA',
|
||||
if_true: [files('virtio-vga.c'), pixman])
|
||||
virtio_vga_ss.add(when: 'CONFIG_VHOST_USER_VGA',
|
||||
if_true: files('vhost-user-vga.c'))
|
||||
hw_display_modules += {'virtio-vga': virtio_vga_ss}
|
||||
endif
|
||||
|
||||
specific_ss.add(when: [x11, opengl, 'CONFIG_MILKYMIST_TMU2'], if_true: files('milkymist-tmu2.c'))
|
||||
specific_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_lcdc.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 */
|
||||
|
|
|
@ -132,7 +132,7 @@ static int module_load_file(const char *fname, bool mayfail, bool export_symbols
|
|||
|
||||
assert(QTAILQ_EMPTY(&dso_init_list));
|
||||
|
||||
flags = G_MODULE_BIND_LAZY;
|
||||
flags = 0;
|
||||
if (!export_symbols) {
|
||||
flags |= G_MODULE_BIND_LOCAL;
|
||||
}
|
||||
|
@ -301,6 +301,12 @@ static struct {
|
|||
{ "qxl", "hw-", "display-qxl" },
|
||||
{ "virtio-gpu-device", "hw-", "display-virtio-gpu" },
|
||||
{ "vhost-user-gpu", "hw-", "display-virtio-gpu" },
|
||||
{ "virtio-gpu-pci-base", "hw-", "display-virtio-gpu-pci" },
|
||||
{ "virtio-gpu-pci", "hw-", "display-virtio-gpu-pci" },
|
||||
{ "vhost-user-gpu-pci", "hw-", "display-virtio-gpu-pci" },
|
||||
{ "virtio-vga-base", "hw-", "display-virtio-vga" },
|
||||
{ "virtio-vga", "hw-", "display-virtio-vga" },
|
||||
{ "vhost-user-vga", "hw-", "display-virtio-vga" },
|
||||
{ "chardev-braille", "chardev-", "baum" },
|
||||
{ "chardev-spicevmc", "chardev-", "spice" },
|
||||
{ "chardev-spiceport", "chardev-", "spice" },
|
||||
|
|
Loading…
Reference in New Issue