Message ID | 24b39b36de3a13d50b5ae29a778ed12e2a386249.1462729517.git.crobinso@redhat.com |
---|---|
State | Accepted |
Commit | f0187c1f27df61d77a0934c0cf9344717c7ac1b8 |
Headers | show |
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 2966b07..c26715f 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -4125,7 +4125,7 @@ qemuBuildDeviceVideoStr(const virDomainDef *def, virBufferAsprintf(&buf, "%s,id=%s", model, video->info.alias); 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)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", _("virtio-gpu 3d acceleration is not supported"));