Dne sreda, 04. september 2019 ob 22:45:47 CEST je Ondřej Jirman napisal(a): > On Wed, Sep 04, 2019 at 07:29:39AM +0200, Jernej Škrabec wrote: > > Dne sreda, 04. september 2019 ob 05:08:14 CEST je 张宁 napisal(a): > > > just check drm_mode_cursor_universal, cursor plane needs to support > > > DRM_FORMAT_ARGB8888 > > > > > > but VI layer doesn't support alpha, directly change VI layer to cursor > > > plane is not possible. > > > > > > could we use UI layers? > > > > Sure, but note that second mixer usually supports only one VI and one UI > > plane. Note that primary plane is always on first UI, so you can run out > > of UI planes. > > > > Most notable example of that combination is A64 HDMI, while LCD output on > > A64 has one VI and three UI planes. There is a switch in hardware to > > connect 1 VI/ 3 UI mixer to A64 HDMI, but it's not implemented and user > > space would have to be aware of that. > > Each mixer channel has 4 sub-layers, so it should be possible even with one > UI channel to have a a cursor plane within it (with some constraints).
If it's acceptable that cursor is square image then yes. There is no blending between sub-layers. > > Best regards, > > Jernej > > > > > On Wednesday, September 4, 2019 at 9:26:03 AM UTC+8, 张宁 wrote: > > > > Hi, Vasily > > > > > > > > from source, it looks like VI layer is a video plane, right? > > > > > > > > let xf86-vidoe-modesetting driver support sun4i-drm's VI layer is a > > > > way to > > > > support HW cursor, > > > > I want to ask whether it's possible to change VI layer type to cursor > > > > plane, then no changes in modesetting driver? > > > > > > > > BR. > > > > Ning. > > > > > > > > On Tuesday, September 3, 2019 at 11:21:48 PM UTC+8, Vasily Khoruzhick > > > > > > > > wrote: > > > >> On Tue, Sep 3, 2019 at 1:49 AM 张宁 <zhang...@gmail.com> wrote: > > > >> > Hi, Maxime, Icenowy and other developers > > > >> > > > > >> > In https://linux-sunxi.org/Xorg, it says legacy display engine > > > >> > driver > > > >> > > > >> supports HW cursor, but there is no code actually creates a cursor > > > >> plane > > > >> in > > > >> mainline linux, this is also said in: > > > >> https://groups.google.com/forum/#!searchin/linux-sunxi/subject$3A$20c > > > >> urso > > > >> r|sort:date/linux-sunxi/6dZVBtNgh5Q/dpBDfvEjBgAJ>> > > > >> > > > >> > currently, lima usespace driver in mesa already has the basic > > > >> > function > > > >> > > > >> for desktop, if lima is enabled, cursor rendering will possibly go > > > >> GPU, > > > >> this will be less efficient than HW cursor. > > > >> > > > >> > do you have plan to enable cursor plane? > > > >> > > > >> That's up to X11 developers. sun4i-drm exposes UI and VI planes on > > > >> SoCs with DE2, and there's no dedicated cursor plane in hardware. > > > >> Basically sun4i-drm exposes what's available in hardware. But > > > >> xf86-video-modesetting doesn't use VI plane for anything while it > > > >> could use it for cursor. > > > >> > > > >> Groups "linux-sunxi" group. > > > >> > > > >> > To unsubscribe from this group and stop receiving emails from it, > > > >> > send > > > >> > > > >> an email to linux...@googlegroups.com. > > > >> > > > >> > To view this discussion on the web, visit > > > >> > > > >> https://groups.google.com/d/msgid/linux-sunxi/8d091584-8e01-431d-b9b0 > > > >> -93d > > > >> d7e0f0cec%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/97977693.n2Geb6WK63%40jernej-laptop.