all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Proxmox VE development discussion <pve-devel@lists.proxmox.com>,
	Markus Frank <m.frank@proxmox.com>
Subject: Re: [pve-devel] [PATCH pve-manager v1 2/2] ui: qemu: add Vulkan option in DisplayEdit
Date: Mon, 10 Nov 2025 15:30:10 +0100	[thread overview]
Message-ID: <5595ba2c-b804-4b2c-bc5e-18c6141a9555@proxmox.com> (raw)
In-Reply-To: <20251110114032.125526-3-m.frank@proxmox.com>

Am 10.11.25 um 12:40 schrieb Markus Frank:
> 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)'],
> +            ],


might be nicer to virtually split the option into two here, i.e. a checkbox
for vulkan/venus and a dedicated combobox for the memory window size (or
just leave that out for now if it doesn't make a measurable difference anyway.

> +            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: [
>          {


_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


  reply	other threads:[~2025-11-10 14:29 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 ` [pve-devel] [PATCH pve-manager v1 2/2] ui: qemu: add Vulkan option in DisplayEdit Markus Frank
2025-11-10 14:30   ` Thomas Lamprecht [this message]
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=5595ba2c-b804-4b2c-bc5e-18c6141a9555@proxmox.com \
    --to=t.lamprecht@proxmox.com \
    --cc=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.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal