From: Markus Frank <m.frank@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH pve-manager v1 2/2] ui: qemu: add Vulkan option in DisplayEdit
Date: Mon, 10 Nov 2025 12:25:28 +0100 [thread overview]
Message-ID: <20251110114032.125526-3-m.frank@proxmox.com> (raw)
In-Reply-To: <20251110114032.125526-1-m.frank@proxmox.com>
The 'isVirgl' formula deactivates the Vulkan option if the type is not
'virtio-gl'. However, it does not reset the option to its default.
Therefore, also add a listener function to reset the Vulkan option.
Signed-off-by: Markus Frank <m.frank@proxmox.com>
---
www/manager6/qemu/DisplayEdit.js | 42 +++++++++++++++++++++++++++++++-
1 file changed, 41 insertions(+), 1 deletion(-)
diff --git a/www/manager6/qemu/DisplayEdit.js b/www/manager6/qemu/DisplayEdit.js
index a2c28ba7..c9a404c4 100644
--- a/www/manager6/qemu/DisplayEdit.js
+++ b/www/manager6/qemu/DisplayEdit.js
@@ -11,12 +11,30 @@ Ext.define('PVE.qemu.DisplayInputPanel', {
return { vga: ret };
},
+ controller: {
+ xclass: 'Ext.app.ViewController',
+
+ onTypeChange: function (type) {
+ let me = this;
+ let vm = me.getViewModel();
+
+ if (type.getValue() !== 'virtio-gl') {
+ vm.set('vulkan', '__default__');
+ vm.notify();
+ }
+ },
+ },
+
viewModel: {
data: {
type: '__default__',
clipboard: '__default__',
+ vulkan: '__default__',
},
formulas: {
+ isVirgl: function (get) {
+ return get('type') === 'virtio-gl';
+ },
matchNonGUIOption: function (get) {
return get('type').match(/^(serial\d|none)$/);
},
@@ -58,10 +76,32 @@ Ext.define('PVE.qemu.DisplayInputPanel', {
}
return true;
},
+ listeners: { change: 'onTypeChange' },
bind: {
value: '{type}',
},
},
+ {
+ xtype: 'proxmoxKVComboBox',
+ name: 'vulkan',
+ deleteEmpty: false,
+ fieldLabel: gettext('Vulkan'),
+ comboItems: [
+ [
+ '__default__',
+ Proxmox.Utils.defaultText + ' (' + Proxmox.Utils.disabledText + ')',
+ ],
+ ['venus-512', 'Venus (512 MiB memory window)'],
+ ['venus-1024', 'Venus (1024 MiB memory window)'],
+ ['venus-2048', 'Venus (2048 MiB memory window)'],
+ ['venus-4096', 'Venus (4096 MiB memory window)'],
+ ['venus-8192', 'Venus (8192 MiB memory window)'],
+ ],
+ bind: {
+ value: '{vulkan}',
+ disabled: '{!isVirgl}',
+ },
+ },
{
xtype: 'proxmoxintegerfield',
emptyText: Proxmox.Utils.defaultText,
@@ -139,7 +179,7 @@ Ext.define('PVE.qemu.DisplayEdit', {
vmconfig: undefined,
subject: gettext('Display'),
- width: 350,
+ width: 370,
items: [
{
--
2.47.3
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
next prev parent reply other threads:[~2025-11-10 11:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-10 11:25 [pve-devel] [PATCH qemu-server/pve-manager v1 0/2] add virtio-vga-gl Vulkan (venus) support Markus Frank
2025-11-10 11:25 ` [pve-devel] [PATCH qemu-server v1 1/2] virtio-vga-gl: add " Markus Frank
2025-11-10 14:27 ` Thomas Lamprecht
2025-11-11 11:06 ` Markus Frank
2025-11-10 11:25 ` Markus Frank [this message]
2025-11-10 14:30 ` [pve-devel] [PATCH pve-manager v1 2/2] ui: qemu: add Vulkan option in DisplayEdit Thomas Lamprecht
2025-11-10 13:54 ` [pve-devel] [PATCH qemu-server/pve-manager v1 0/2] add virtio-vga-gl Vulkan (venus) support Thomas Lamprecht
2025-11-10 15:30 ` Markus Frank
2025-11-13 15:13 ` Dominik Csapak
2025-11-13 16:21 ` Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251110114032.125526-3-m.frank@proxmox.com \
--to=m.frank@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox