[Libva] How to implement a EGL or DRM display in VA-API driver
Sean V Kelley
seanvk at posteo.de
Fri Oct 28 20:09:27 UTC 2016
On Fri, 2016-10-28 at 10:05 +0800, Randy Li wrote:
>
> On 10/27/2016 11:03 PM, Xiang, Haihao wrote:
> > > -----Original Message-----
> > > From: dri-devel [mailto:dri-devel-bounces at lists.freedesktop.org]
> > > On Behalf
> > > Of Randy Li
> > > Sent: Monday, October 24, 2016 3:59 PM
> > > To: libva at lists.freedesktop.org
> > > Cc: gwenole.beauchesne at intel.com; dri-devel at lists.freedesktop.org
> > > ; linux-
> > > rockchip at lists.infradead.org; Jaquez, VictorX <victorx.jaquez at int
> > > el.com>;
> > > eddie.cai <eddie.cai at rock-chips.com>; 林金发 <alpha.lin at rock-chips.c
> > > om>;
> > > herman.chen at rock-chips.com; vjaquez at igalia.com
> > > Subject: How to implement a EGL or DRM display in VA-API driver
> > >
> > > Hello:
> > > I am going to implement a EGL and DRM display for Rockchip VA-
> > > API driver.
> > > We do have a EGL implementation in Rockchip VA-API driver, but it
> > > is
> > > implemented in the standard way, we did that as a X11 display.
> > > I didn't see the usage of struct VADriverVTableEGL in
> > > gstreamer, and I have
> > > no idea about where should I implement something functions like
> > > eglExportDRMImageMESA().
> >
> > VADriverVTableEGL is deprecated in libva, we has a more efficient
> > way to use vaapi and egl.
> > You can refer to the examples in libyami-utils (https://github.com/
> > 01org/libyami-utils.git) for
> > how to use vaapi and egl.
>
> I see, thank you.
> >
> > > The DRM seems more complex, the reason I want to use the DRM is
> > > that,
> > > GPU would not work with the 4K video rendering, so the DRM means
> > > that
> > > directly output the video into video controller in our platform.
> > > But still have no
> > > idea what kind of thing I should implement in the VA-API driver.
> > > It seems that
> > > the VA-API base library would open a DRM instance for the driver,
> > > but leaving
> > > those configure for connector, encoder, planes to VA-API driver?
>
> About the DRM, I have implemented a version which pretends a X
> output, I
> would like to know a better way.
Connector properties and their configuration are entirely display port
oriented. "Pretending an X output" is independent of KMS configuration
for your display port.
Sean
> >
> > configure for connector, encoder, planes aren't a part of va-api
> > driver. You should check libdrm and drm/i915.
> > You can refer to the test case of modetest in libdrm
> > (git.freedesktop.org/git/mesa/drm)
> >
> >
> > > Could you guys give me same sample code or example of those
> > > kind of
> > > display in VA-API or the documents would help(I would not image
> > > there is a
> > > VA-API documents)
> > >
> > > --
> > > Randy Li
> > > The third produce department
> > >
> > > _______________________________________________
> > > dri-devel mailing list
> > > dri-devel at lists.freedesktop.org
> > > https://lists.freedesktop.org/mailman/listinfo/dri-devel
> >
> > _______________________________________________
> > dri-devel mailing list
> > dri-devel at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/dri-devel
> >
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/libva/attachments/20161028/019a8aa4/attachment.sig>
More information about the Libva
mailing list