mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
qemu: command: unconditionally allow accel3d='no'
This matches how we handle spice gl='no' even if spice GL isn't supported. Not too interesting in practice but I figure we should be consistent
This commit is contained in:
parent
5ed235c68f
commit
f0187c1f27
@ -4116,7 +4116,7 @@ qemuBuildDeviceVideoStr(const virDomainDef *def,
|
|||||||
virBufferAsprintf(&buf, "%s,id=%s", model, video->info.alias);
|
virBufferAsprintf(&buf, "%s,id=%s", model, video->info.alias);
|
||||||
|
|
||||||
if (video->type == VIR_DOMAIN_VIDEO_TYPE_VIRTIO) {
|
if (video->type == VIR_DOMAIN_VIDEO_TYPE_VIRTIO) {
|
||||||
if (video->accel && video->accel->accel3d) {
|
if (video->accel && video->accel->accel3d == VIR_TRISTATE_SWITCH_ON) {
|
||||||
if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_VIRTIO_GPU_VIRGL)) {
|
if (!virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_VIRTIO_GPU_VIRGL)) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
"%s", _("virtio-gpu 3d acceleration is not supported"));
|
"%s", _("virtio-gpu 3d acceleration is not supported"));
|
||||||
|
Loading…
Reference in New Issue
Block a user