Re: device-specific "vdpau" support?

2019-07-02 Thread maya
On Sat, Jun 29, 2019 at 11:19:26PM +0100, Robert Swindells wrote:
> 
> Rhialto  wrote:
> >On Sat 29 Jun 2019 at 20:55:16 +, m...@netbsd.org wrote:
> >> Supposedly it's even more efficient video decoding, but I didn't do a
> >> comparison (It would be pretty easy to do, since pkgsrc mesa does build
> >> VDPAU).
> >
> >With the Linux I now have on my Pinebook, there are vdpau drivers for
> >the graphics chipset, but no "regular" acceleration. As a result, video
> >players can play 1080p videos perfectly, as long as you don't try to use
> >anything GUI-ish, because that is still slow as molasses...
> 
> Linux on the Pinebook should be able to have accelerated graphics. You
> may need to add some binary blobs for the GPU to enable it.
> 
> The Pinebook SoC has video decoder hardware that is separate from the
> Mali GPU. We probably need to decide which API to support for it.
> 
> I suspect the efficiency depends on whether you are doing both decode
> and display in hardware or GPU software or whether the main CPU is doing
> the decode part.
> 
> Latest x11 has broken accelerated video playback on my one Intel GPU
> system, it used to have a working XV driver.
> 
> Might be worth documenting which GPU models use particular acceleration
> methods to know what has been tested.

someone(tm) (who probably doesn't want to be identified) said, if you are
playing on pinebook with mpv, your best bet is mpv -vo drm outside of X.
and right now it wastes a lot of resources converting yuv to rgb,
because it doesn't detect yuv support.


Re: device-specific "vdpau" support?

2019-06-29 Thread Robert Swindells


Rhialto  wrote:
>On Sat 29 Jun 2019 at 20:55:16 +, m...@netbsd.org wrote:
>> Supposedly it's even more efficient video decoding, but I didn't do a
>> comparison (It would be pretty easy to do, since pkgsrc mesa does build
>> VDPAU).
>
>With the Linux I now have on my Pinebook, there are vdpau drivers for
>the graphics chipset, but no "regular" acceleration. As a result, video
>players can play 1080p videos perfectly, as long as you don't try to use
>anything GUI-ish, because that is still slow as molasses...

Linux on the Pinebook should be able to have accelerated graphics. You
may need to add some binary blobs for the GPU to enable it.

The Pinebook SoC has video decoder hardware that is separate from the
Mali GPU. We probably need to decide which API to support for it.

I suspect the efficiency depends on whether you are doing both decode
and display in hardware or GPU software or whether the main CPU is doing
the decode part.

Latest x11 has broken accelerated video playback on my one Intel GPU
system, it used to have a working XV driver.

Might be worth documenting which GPU models use particular acceleration
methods to know what has been tested.


Re: device-specific "vdpau" support?

2019-06-29 Thread Rhialto
On Sat 29 Jun 2019 at 20:55:16 +, m...@netbsd.org wrote:
> Supposedly it's even more efficient video decoding, but I didn't do a
> comparison (It would be pretty easy to do, since pkgsrc mesa does build
> VDPAU).

With the Linux I now have on my Pinebook, there are vdpau drivers for
the graphics chipset, but no "regular" acceleration. As a result, video
players can play 1080p videos perfectly, as long as you don't try to use
anything GUI-ish, because that is still slow as molasses...

That is the sort of difference it can make.

(Personally, I'd prefer the other way around, if I had to choose only
one...)

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- "What good is a Ring of Power
\X/ rhialto/at/falu.nl  -- if you're unable...to Speak." - Agent Elrond


signature.asc
Description: PGP signature


Re: device-specific "vdpau" support?

2019-06-29 Thread maya
On Sat, Jun 29, 2019 at 03:12:41PM -0500, John D. Baker wrote:
> Some time back I asked about what provided device-specific "vdpau"
> support after seeing a message from 'mplayer' about not finding
> "libvdpau_i965.so" when detecting the video capabilities of my
> intel-graphics-equipped system.
> 
> I was informed that "vdpau" support was part of Mesa.  With the import
> of the shiny new Mesa (and accompanying LLVM build overhead), I had been
> expecting to see such device-specific goodies become a part of the xorg
> sets in -current.  It appears this is not the case.
> 
> I tend to worry when I see messages about missing libraries, even if
> there is a fallback to do without them.  Is there some performance
> benefit being missed, or some other capability that can't be leveraged
> due to the missing library?  Or does it tend to be too small to be worth
> the effort of including the device-specific support?
> 
> Thanks.

The only motivation to skip VDPAU is wanting to get Mesa done in a
timely manner, since it's an optional feature.

Supposedly it's even more efficient video decoding, but I didn't do a
comparison (It would be pretty easy to do, since pkgsrc mesa does build
VDPAU).