From: Markus Frank <m.frank@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH pve-manager v4 2/3] ui: qemu: add VirGl feature selection in DisplayEdit
Date: Mon, 31 Aug 2026 11:38:10 +0200 [thread overview]
Message-ID: <20260831094605.114396-3-m.frank@proxmox.com> (raw)
In-Reply-To: <20260831094605.114396-1-m.frank@proxmox.com>
The user can choose which feature set to use:
- the default option with OpenGL 4.3 support
- a option with OpenGL 4.6 support
- a option with both OpenGL 4.6 and Vulkan support
As the feature sets other than the default require a VirGL memory
window, the user can change the size of the default window in a
different combo box.
Add a controller to reset the combo boxes when they cannot be used and
add formulars to disable them.
Signed-off-by: Markus Frank <m.frank@proxmox.com>
---
v4: change the memory label to '2D Memory Limit' when using VirtIO to
make the difference to the 'Host Memory Window' clearer.
www/manager6/qemu/DisplayEdit.js | 79 +++++++++++++++++++++++++++++++-
1 file changed, 77 insertions(+), 2 deletions(-)
diff --git a/www/manager6/qemu/DisplayEdit.js b/www/manager6/qemu/DisplayEdit.js
index 3f583adb..62624589 100644
--- a/www/manager6/qemu/DisplayEdit.js
+++ b/www/manager6/qemu/DisplayEdit.js
@@ -11,10 +11,37 @@ 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('virglMemoryWindow', '__default__');
+ vm.set('virglFeatures', '__default__');
+ vm.notify();
+ }
+ },
+
+ onFeaturesChange: function (features) {
+ let me = this;
+ let vm = me.getViewModel();
+
+ if (features.getValue() === '__default__') {
+ vm.set('virglMemoryWindow', '__default__');
+ vm.notify();
+ }
+ },
+ },
+
viewModel: {
data: {
type: '__default__',
clipboard: '__default__',
+ virglFeatures: '__default__',
+ virglMemoryWindow: '__default__',
},
formulas: {
matchNonGUIOption: function (get) {
@@ -35,6 +62,15 @@ Ext.define('PVE.qemu.DisplayInputPanel', {
return Proxmox.Utils.defaultText;
}
},
+ memoryLabel: function (get) {
+ if (get('type').match(/^virtio/)) {
+ return gettext('2D Memory Limit') + ' (MiB)';
+ } else {
+ return gettext('Memory') + ' (MiB)';
+ }
+ },
+ isVirgl: (get) => get('type') === 'virtio-gl',
+ virglIsDefault: (get) => get('virglFeatures') === '__default__',
isVNC: (get) => get('clipboard') === 'vnc',
hideDefaultHint: (get) => get('isVNC') || get('matchNonGUIOption'),
hideVNCHint: (get) => !get('isVNC') || get('matchNonGUIOption'),
@@ -58,6 +94,7 @@ Ext.define('PVE.qemu.DisplayInputPanel', {
}
return true;
},
+ listeners: { change: 'onTypeChange' },
bind: {
value: '{type}',
},
@@ -65,16 +102,50 @@ Ext.define('PVE.qemu.DisplayInputPanel', {
{
xtype: 'proxmoxintegerfield',
emptyText: Proxmox.Utils.defaultText,
- fieldLabel: gettext('Memory') + ' (MiB)',
minValue: 4,
maxValue: 512,
step: 4,
name: 'memory',
bind: {
+ fieldLabel: '{memoryLabel}',
emptyText: '{memoryEmptyText}',
disabled: '{matchNonGUIOption}',
},
},
+ {
+ xtype: 'proxmoxKVComboBox',
+ name: 'virgl-features',
+ deleteEmpty: false,
+ fieldLabel: gettext('VirGL Features'),
+ listeners: { change: 'onFeaturesChange' },
+ comboItems: [
+ ['__default__', Proxmox.Utils.defaultText + ' (OpenGL 4.3)'],
+ ['opengl4.6', 'OpenGL 4.6 support'],
+ ['opengl4.6+vulkan', 'OpenGL 4.6 and Vulkan support'],
+ ],
+ bind: {
+ value: '{virglFeatures}',
+ disabled: '{!isVirgl}',
+ },
+ },
+ {
+ xtype: 'proxmoxKVComboBox',
+ name: 'virgl-memory-window',
+ deleteEmpty: false,
+ fieldLabel: gettext('VirGL Host Memory Window'),
+ comboItems: [
+ ['__default__', Proxmox.Utils.defaultText + ' (2048 MiB)'],
+ ['512', '512 MiB'],
+ ['1024', '1024 MiB'],
+ ['2048', '2048 MiB'],
+ ['4096', '4096 MiB'],
+ ['8192', '8192 MiB'],
+ ],
+ bind: {
+ value: '{virglMemoryWindow}',
+ disabled: '{virglIsDefault}',
+ },
+ },
],
advancedItems: [
@@ -141,7 +212,11 @@ Ext.define('PVE.qemu.DisplayEdit', {
vmconfig: undefined,
subject: gettext('Display'),
- width: 350,
+ width: 450,
+
+ fieldDefaults: {
+ labelWidth: 180,
+ },
items: [
{
--
2.47.3
next prev parent reply other threads:[~2026-08-31 9:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-31 9:38 [PATCH qemu-server/pve-manager/docs v4 0/1] add virtio-vga-gl OpenGL 4.6 & Vulkan (venus) support Markus Frank
2026-08-31 9:38 ` [PATCH qemu-server v4 1/3] fix #6277: virtio-vga-gl: add OpenGL 4.6 and Vulkan (Venus) support Markus Frank
2026-08-31 15:29 ` DERUMIER, Alexandre
2026-08-31 15:43 ` DERUMIER, Alexandre
2026-09-01 6:24 ` Dominik Csapak
2026-09-01 11:28 ` Dominik Csapak
2026-08-31 9:38 ` Markus Frank [this message]
2026-09-01 11:35 ` [PATCH pve-manager v4 2/3] ui: qemu: add VirGl feature selection in DisplayEdit Dominik Csapak
2026-08-31 9:38 ` [PATCH docs v4 3/3] VirGL: add info about feature sets with OpenGL4.6 and vulkan Markus Frank
2026-09-01 11:39 ` Dominik Csapak
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=20260831094605.114396-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.