From 089ea130a7aed0dec235b0564c44fc0a078a251a Mon Sep 17 00:00:00 2001 From: yuchuyang Date: Fri, 28 Oct 2022 11:02:37 -0700 Subject: [PATCH] config-tools: fix virio GPU rendering issue Fix the following issues: 1. and elements are added to scenario XML when they are not configured. 2. Virtio GPU components disappears after switching to another tab and switching back to previous tab. 3. Wrong error message of vertical offset checking. Improve the error check in virtio_devices.xsd: 1. Every window virtual display need to configure window resolution, horizontal offset and vertical offset. 2. Any display's elements need to be configured. The existing code only check the first window resolution, horizontal offset, vertical offset and monitor id. Tracked-On: #8292 Signed-off-by: yuchuyang Reviewed-by: Junjie Mao --- .../src/pages/Config/ConfigForm.vue | 2 +- .../ConfigForm/CustomWidget/Virtio/GPU.vue | 33 ++++++++++--------- .../launch_config/launch_cfg_gen.py | 2 +- .../schema/checks/virtio_devices.xsd | 19 ++++++++--- misc/config_tools/schema/config.xsd | 2 +- 5 files changed, 35 insertions(+), 23 deletions(-) diff --git a/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm.vue b/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm.vue index 2ce959adc..661a76c28 100644 --- a/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm.vue +++ b/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm.vue @@ -93,7 +93,7 @@ export default { 'ui:field': Input, }, "gpu": { - "ui:title": "Virtio GPU device", + "ui:title": "", "ui:field": GPU, }, }, diff --git a/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/Virtio/GPU.vue b/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/Virtio/GPU.vue index 7720c632c..578b98cc7 100644 --- a/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/Virtio/GPU.vue +++ b/misc/config_tools/configurator/packages/configurator/src/pages/Config/ConfigForm/CustomWidget/Virtio/GPU.vue @@ -1,8 +1,8 @@