
On Fri, Jun 11, 2021 at 17:05:00 +0200, Michal Privoznik wrote:
Now we have everything prepared so that @model doesn't have to be rewritten. The correct model can be chosen right from the beginning.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com> --- src/qemu/qemu_command.c | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-)
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index c9e152324d..22cc383f33 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -4164,6 +4164,12 @@ qemuDeviceVideoGetModel(virQEMUCaps *qemuCaps, { const char *model = NULL; bool primaryVga = false; + virTristateSwitch accel3d = VIR_TRISTATE_SWITCH_ABSENT; + + *virtio = false;
You've already have this ...
+ + if (video->accel) + accel3d = video->accel->accel3d;
*virtio = false;
... here.