I have the answer for 2 from a friend. and for question 1: default zpos for UI layer is channel = mixer->cfg->vi_num + index; does it means UI layers are higher layers than VI layer?
could we use VI layer as crtc's primary plane, and topest UI layer as cursor plane. then all mixers has cursor plane. On Wednesday, September 4, 2019 at 2:15:09 PM UTC+8, 张宁 wrote: > > thanks for the explain, I want to have a try on H3 (orangepipc, armbian) > > before testing, there are 2 questions in my mind. > > 1, what's the Z-order of UI/VI layers? > 2, can Xserver use overlays? > > > > On Wednesday, September 4, 2019 at 1:29:42 PM UTC+8, 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. >> >> 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 张宁 <[email protected]> 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$20curso >> > >> 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 [email protected]. >> > >> >> > >> > 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 [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/11e7e4f8-089a-430c-a37b-4096901f90b8%40googlegroups.com.
