All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: Lucas Amaral <lucaaamaral@gmail.com>
Cc: qemu-devel@nongnu.org,  qemu-arm@nongnu.org,
	dmitry.osipenko@collabora.com,  marcandre.lureau@redhat.com
Subject: Re: [PATCH v5 3/4] virtio-gpu: decouple Venus from CONFIG_OPENGL
Date: Tue, 19 May 2026 18:32:19 +0100	[thread overview]
Message-ID: <87qzn79ufw.fsf@draig.linaro.org> (raw)
In-Reply-To: <20260519164432.22759-1-lucaaamaral@gmail.com> (Lucas Amaral's message of "Tue, 19 May 2026 13:44:31 -0300")

Lucas Amaral <lucaaamaral@gmail.com> writes:

> Alex Bennée <alex.bennee@linaro.org> writes:
>
>> Isn't this entirely in QEMU's control? The Venus flag is checked
>> when needed and set by:
>>
>>     DEFINE_PROP_BIT("venus", VirtIOGPU, parent_obj.conf.flags,
>>                     VIRTIO_GPU_FLAG_VENUS_ENABLED, false),
>>
>> So do we just need to define:
>>
>>     DEFINE_PROP_BIT("virgl", VirtIOGPU, parent_obj.conf.flags,
>>                     VIRTIO_GPU_FLAG_VIRGL_ENABLED, true),
>>
>> and allow the user to squash it and drop the:
>>
>>     g->parent_obj.conf.flags |= (1 << VIRTIO_GPU_FLAG_VIRGL_ENABLED);
>>
>> I guess we need to drop the prop bit definition on platforms that
>> can't support OpenGL?
>
> Agreed -- making "virgl=on" a real OpenGL-only property bit, distinct
> from "venus=on" and no longer implicitly forced on whenever
> virglrenderer is initialized, is the right shape. Both TODOs in
> virtio_gpu_get_flags() resolve cleanly: the GL scanout test becomes
> a pure property check (no display_opengl runtime crutch), and the
> GRAPHIC_FLAGS_VK slot for Venus direct Vulkan scanout becomes a
> one-liner once a Vulkan-scanout path exists.
>
> My hesitation on folding it into this series is scope:
> VIRTIO_GPU_FLAG_VIRGL_ENABLED is currently forced on whenever
> virglrenderer is initialized (including Venus-only configs)

Venus-only configs being MacOS right? On Linux the default would for
virgl to be on unless the user explicitly turns it off (we can expand
the GPU functional tests to make sure this works).

> , so the
> cleanup touches property defaults and existing user expectations
> (virgl=on,venus=on vs venus=on only) -- probably wants its own
> changelog and review, somewhat outside the no-GL plumbing this
> series is about. I'd prefer to land this series as-is and follow up
> with a dedicated "split virgl/venus property bits" series
> afterwards.
>
> That said, if you'd rather see the split as a prep patch at the
> front of v6, happy to do it that way -- your call.

Yes - have it as a prep patch in the series. 

>
> Thanks,
> Lucas

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro


  reply	other threads:[~2026-05-19 17:32 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-17 18:20 [PATCH v5 0/4] virtio-gpu: enable Venus/Vulkan without OpenGL display Lucas Amaral
2026-03-17 18:20 ` [PATCH v5 1/4] ui: introduce GRAPHIC_FLAGS_VK for Vulkan scanout Lucas Amaral
2026-05-18 19:40   ` Alex Bennée
2026-03-17 18:20 ` [PATCH v5 2/4] virtio-gpu: add VIRTIO_GPU_F_BLOB_ALIGNMENT header definitions Lucas Amaral
2026-05-18 19:49   ` Alex Bennée
2026-03-17 18:20 ` [PATCH v5 3/4] virtio-gpu: decouple Venus from CONFIG_OPENGL Lucas Amaral
2026-05-19 10:56   ` Alex Bennée
2026-05-19 16:44     ` Lucas Amaral
2026-05-19 17:32       ` Alex Bennée [this message]
2026-03-17 18:20 ` [PATCH v5 4/4] virtio-gpu: advertise VIRTIO_GPU_F_BLOB_ALIGNMENT Lucas Amaral
2026-05-19 10:58   ` Alex Bennée
2026-05-19 14:30     ` Dmitry Osipenko
2026-05-26 10:44       ` Dmitry Osipenko
2026-04-09 17:52 ` [PATCH v5 0/4] virtio-gpu: enable Venus/Vulkan without OpenGL display Lucas Amaral
2026-04-23 18:03 ` Lucas Amaral
2026-05-19 10:44   ` Alex Bennée
2026-05-19 16:48     ` Lucas Amaral
2026-05-19 17:28       ` Alex Bennée

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=87qzn79ufw.fsf@draig.linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=dmitry.osipenko@collabora.com \
    --cc=lucaaamaral@gmail.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /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.