Use hardware sprite plane as overlay
Jasper St. Pierre
jstpierre at mecheye.net
Fri Jan 1 19:24:35 PST 2016
Well, the X server shutdown process would have restored the fbcon
console and turned out KD_TEXT, I would have thought. I don't think
you can assume that the front buffer will stay exactly still quite
yet.
It also does mean that all clients that were previously running are
now dead, and you have to restart them. So you can't render to the
primary and sprite planes at the same time.
Again, I would really recommend you use Wayland or another system.
On Fri, Jan 1, 2016 at 6:06 PM, Cao Duc Quan <caoducquan at gmail.com> wrote:
> But I could run it!
> There is a trick for this: first I stop xorg by running this command:
> service xserver-nodm stop
>
> Than I run my tool
> ./modetest_x11 -s 9:XR24 -P 9:1280x720 at XR24
>
> After that I start xorg again
> service xserver-nodm start
>
> And it seems xserver start successful. And I have both xserver render to
> primary buffer and modetest render to Sprite Plane
>
> It is a bug in kernel ?
>
> On Fri, Jan 1, 2016 at 5:04 AM, Jasper St. Pierre <jstpierre at mecheye.net>
> wrote:
>>
>> You can't. The only client that is allowed to do modesets, either on
>> planes or on the primary buffer, is the DRM master, which in this case
>> is the Xorg server. It would be much easier and better to use Wayland
>> instead.
>>
>> On Thu, Dec 31, 2015 at 12:16 AM, Cao Duc Quan <caoducquan at gmail.com>
>> wrote:
>> > Thanks Jasper.
>> > I plan to hook to QT embedded to make it use sprite plane buffer.
>> > I could make a tool (customized from modetest.c of libdrm) to render to
>> > sprite plane which are running in xorg.
>> >
>> > Thanks and Happy New Year.
>> > cdq
>> >
>> > On Wed, Dec 30, 2015 at 2:52 AM, Jasper St. Pierre
>> > <jstpierre at mecheye.net>
>> > wrote:
>> >>
>> >> The only currently supported mechanism for using hardware overlays is
>> >> video planes through VDPAU / VA-API.
>> >>
>> >> Xorg does not have any other supported mechanism for using hardware
>> >> overlays. Try looking at Wayland, which can have support for hardware
>> >> planes.
>> >>
>> >> On Fri, Dec 25, 2015 at 8:29 AM, Cao Duc Quan <caoducquan at gmail.com>
>> >> wrote:
>> >> > Dear all,
>> >> > I am studying the Graphics stack in linux.
>> >> > I found that the Intel Baytrail E38xx support 2 pipe display and each
>> >> > pipe
>> >> > has
>> >> > - 1 x primary plane
>> >> > - 2 x sprite plane
>> >> > - 1 x cursor plane
>> >> >
>> >> > Is it possible to use sprite plane as overlay plane which means we
>> >> > can
>> >> > render UI to sprite plane (for example QT could render Widget to
>> >> > sprite
>> >> > plane) ? If so, could any one point me to some a sample code or any
>> >> > documents ?
>> >> >
>> >> > Many Thanks,
>> >> > --
>> >> > Quan Cao
>> >> > 0976574864
>> >> >
>> >> > _______________________________________________
>> >> > xorg-devel at lists.x.org: X.Org development
>> >> > Archives: http://lists.x.org/archives/xorg-devel
>> >> > Info: http://lists.x.org/mailman/listinfo/xorg-devel
>> >>
>> >>
>> >>
>> >> --
>> >> Jasper
>> >
>> >
>> >
>> >
>> > --
>> > Quan Cao
>> > 0976574864
>>
>>
>>
>> --
>> Jasper
>
>
>
>
> --
> Quan Cao
> 0976574864
--
Jasper
More information about the xorg-devel
mailing list