From: Daniel Vetter <daniel@ffwll.ch>
To: John Cox <jc@kynesim.co.uk>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: How to obtain a drm lease from X for overlay planes as well as a primary plane?
Date: Wed, 11 Aug 2021 11:43:15 +0200 [thread overview]
Message-ID: <YRObs1/iDhgCbMo8@phenom.ffwll.local> (raw)
In-Reply-To: <34a5hg1rb804h8d1471apktsgl5v9n9u1e@4ax.com>
On Tue, Aug 10, 2021 at 05:57:31PM +0100, John Cox wrote:
> Hi all
>
> I am on a Raspberry Pi, I want to display fullscreen video and have a
> couple of overlay planes to display controls / subtitles etc. The h/w
> can certainly do this. I need to be able to do this from a starting
> point where X is running.
>
> I can successfully find X's output & crtc and grab that using
> xcb_randr_create_lease and use that handle to display video. So far so
> good. But I also want to have overlay planes for subtitles etc. The
> handle I've got from the lease only seems to have a PRIMARY & a CURSOR
> plane attached so I can't get anything there.
I think X just gives you a legacy lease for the crtc, and the kernel
automatically adds the primary plane and cursor plane (if they exist) to
that lease. Unless X is patched to enable plane support and add those all
explicitly to the lease I don't think there's a way for that.
For wayland this is still in the works, so might be good if you check
there that your use-case is properly supported. Protocol MR is here:
https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/67
> How should I be going about getting some more planes to use for
> overlays? Pointers to documentation / examples gratefully received - so
> far my google-foo has failed to find anything that works.
>
> I'm sorry if this is the wrong place to ask, but if there is a better
> place please say and I'll go there.
>
> Many thanks
>
> John Cox
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
next prev parent reply other threads:[~2021-08-11 9:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-10 16:57 How to obtain a drm lease from X for overlay planes as well as a primary plane? John Cox
2021-08-11 9:43 ` Daniel Vetter [this message]
2021-08-11 10:19 ` John Cox
2021-08-11 10:22 ` Simon Ser
2021-08-11 10:21 ` Simon Ser
2021-08-11 11:40 ` John Cox
2021-08-11 21:44 ` Simon Ser
2021-08-12 9:41 ` John Cox
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=YRObs1/iDhgCbMo8@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=jc@kynesim.co.uk \
/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.