Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2

2018-02-12 Thread rainer.hochec...@onlinehome.de
hec...@onlinehome.de" Cc: "Philipp Kerling" , s...@jkqxz.net, peter.fruehber...@gmail.com, mic...@daenzer.net, mesa-dev@lists.freedesktop.org, harry.wentl...@amd.com, lru...@libreelec.tv Betreff: Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2 Hi Rainer, well at the end of the p

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2

2018-02-12 Thread rainer.hochec...@onlinehome.de
König" An: "Philipp Kerling" , s...@jkqxz.net Cc: rainer.hochec...@onlinehome.de, peter.fruehber...@gmail.com, mic...@daenzer.net, mesa-dev@lists.freedesktop.org, harry.wentl...@amd.com, lru...@libreelec.tv Betreff: Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2 Am 09.02.2018 um 2

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2

2018-02-12 Thread rainer.hochec...@onlinehome.de
König" An: "rainer.hochec...@onlinehome.de" Cc: "Philipp Kerling" , s...@jkqxz.net, peter.fruehber...@gmail.com, mic...@daenzer.net, mesa-dev@lists.freedesktop.org, harry.wentl...@amd.com, lru...@libreelec.tv Betreff: Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2 Hi Rainer, th

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2

2018-02-11 Thread Christian König
r...@gmail.com, mic...@daenzer.net, mesa-dev@lists.freedesktop.org, harry.wentl...@amd.com, lru...@libreelec.tv *Betreff:* Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2 Hi Rainer, the render thread doesn't wait either. See when you dispatch some work the AMD drivers always wait for prerequisites in

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2

2018-02-11 Thread Christian König
mic...@daenzer.net, mesa-dev@lists.freedesktop.org, harry.wentl...@amd.com, lru...@libreelec.tv *Betreff:* Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2 Am 09.02.2018 um 21:35 schrieb Philipp Kerling: > Hi, > > resurrecting this thread again since there's been some progress on the &

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2

2018-02-11 Thread Christian König
Am 11.02.2018 um 11:35 schrieb Philipp Kerling: Hi, 2018-02-11 (日) の 11:02 +0100 に Christian König さんは書きました: Am 09.02.2018 um 21:35 schrieb Philipp Kerling: Hi, resurrecting this thread again since there's been some progress on the Kodi side. For the EGL part, see

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2

2018-02-11 Thread Philipp Kerling
Hi, 2018-02-11 (日) の 11:02 +0100 に Christian König さんは書きました: > Am 09.02.2018 um 21:35 schrieb Philipp Kerling: > > Hi, > > > > resurrecting this thread again since there's been some progress on > > the > > Kodi side. > > > > > For the EGL part, see > > >

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2

2018-02-11 Thread Christian König
Am 09.02.2018 um 21:35 schrieb Philipp Kerling: Hi, resurrecting this thread again since there's been some progress on the Kodi side. For the EGL part, see and . We recently sta

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2

2018-02-10 Thread Philipp Kerling
Hi, resurrecting this thread again since there's been some progress on the Kodi side. > For the EGL part, see > and > . We recently started testing vaExportSurfaceHandle support, s

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2

2017-10-01 Thread Mark Thompson
On 28/09/17 04:41, Lukas Rusak wrote: > Hello all, > > I'm bumping this to layout some progress that has been made on our (Kodi) > side and hopefully we can create a road map for what needs to be done on > the amd side to get it working with our vaapi implementation. > > I have merged the drm/kms

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2

2017-09-28 Thread Lukas Rusak
Hello all, I'm bumping this to layout some progress that has been made on our (Kodi) side and hopefully we can create a road map for what needs to be done on the amd side to get it working with our vaapi implementation. I have merged the drm/kms display code into kodi. So in master currently is a

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2

2017-06-25 Thread Peter Frühberger
Hi all, just as information: https://github.com/FernetMenta/kodi-agile/commit/ca8119b4e11a52415125af959f220b280f56ecae Rainer moved the specific parts of the buffer sharing into a separate infrastructure see the VAAPIEGL.cpp and VAAPIEGL.h in the above patch. This basically encapsulates the fourc

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2

2017-03-20 Thread Peter Frühberger
Hi Christian, we use it the following way: Dependend on the surface NV12 vs. P010 we use: https://github.com/FernetMenta/kodi-agile/blob/master/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp#L1416 R8 and GR88 or alternatively: https://github.com/FernetMenta/kodi-agile/blob/master/xbmc/cores/V

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2

2017-03-20 Thread Peter Frühberger
Hi Christian, thank you for your message. We are still wondering about the render part. How do you want us to display the decoded surfaces? Looking at mpv it seems it will only work via vaPutSurface and is therefore tight to X11. That means it's dependend on the visuals 8 bit only. We are working

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2

2017-03-20 Thread rainer.hochec...@onlinehome.de
> for example how does synchronization happen between the two APIs?   right, vaapi seems not as matured as vdpau in this regard. But Kodi's multithreading design does cope with this. We call vaSyncSurface before feeding vpp and before maping va buffers to GL.   I suggest to keep it simple fro

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2

2017-03-20 Thread Marek Olšák
On Sun, Mar 19, 2017 at 2:49 PM, Christian König wrote: > Hi Peter, > > Adding Michel and Marek for the Mesa interop side and Harry for the display > side. > > How do you want us to display the decoded surfaces? > > Well to make a long story short: I don't have the slightest idea. Ideally we > wou

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2

2017-03-20 Thread Alex Deucher
On Sun, Mar 19, 2017 at 9:49 AM, Christian König wrote: > Hi Peter, > > Adding Michel and Marek for the Mesa interop side and Harry for the display > side. > > How do you want us to display the decoded surfaces? > > Well to make a long story short: I don't have the slightest idea. Ideally we > wou

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2

2017-03-19 Thread Christian König
I suggest to keep it simple from a driver perspective and require applications to use vaSyncSurface Currently our vaSyncSurface doesn't really do what the name suggests. All what we do is flushing the command buffers and that for good reasons. That the application waits for all decoding to comp

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2

2017-03-19 Thread Christian König
What do you think? In general that it might work, but basic problem is the API design once more. While with VDPAU the steps where applications asks OpenGL to interop with VDPAU and the two APIs can do all the handshaking internally. With VA-API we have Application exporting buffers from VA-A

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2

2017-03-19 Thread Christian König
Hi Peter, Adding Michel and Marek for the Mesa interop side and Harry for the display side. How do you want us to display the decoded surfaces? Well to make a long story short: I don't have the slightest idea. Ideally we would of the same handling as Intel so that you guys don't have anythi

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2

2017-03-13 Thread rainer.hochec...@onlinehome.de
Hi Christian,   I already removed the check for Intel in my dev branch. On startup Kodi does a functional test if vaapi works. If the test passes, it is availalbe regarless of the underlying type of hardware/driver.   Regards, Rainer   Gesendet: Mittwoch, 08. März 2017 um 13:29 Uhr Von: "

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI v2

2017-03-08 Thread Mark Thompson
On 08/03/17 12:29, Christian König wrote: > Hi guys, > > I finally found time testing this and hammering out (hopefully) all the > remaining bugs. Playing a 10bit HEVC file through VAAPI with mpv/ffmpeg git > master from about two days ago now works flawlessly and has only about 15% CPU > load on

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI

2017-01-30 Thread Andy Furniss
Rainer Hochecker wrote: On 27.01.2017 12:26, Andy Furniss wrote: Peter Frühberger wrote: just tell us when we can remove: https://github.com/FernetMenta/kodi-agile/blob/master/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp#L534 Maybe I mis-remember, but doesn't AMD also need some EGL wo

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI

2017-01-29 Thread Rainer Hochecker
On 27.01.2017 12:26, Andy Furniss wrote: Peter Frühberger wrote: just tell us when we can remove: https://github.com/FernetMenta/kodi-agile/blob/master/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp#L534 Maybe I mis-remember, but doesn't AMD also need some EGL work for VAAPI display wi

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI

2017-01-28 Thread Christian König
Am 27.01.2017 um 20:44 schrieb Mark Thompson: On 27/01/17 14:27, Christian König wrote: Am 27.01.2017 um 13:51 schrieb Mark Thompson: On 26/01/17 16:59, Christian König wrote: [SNIP] (For that matter, is there a list somewhere of the set of formats/layouts and what they are used for?) Well ta

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI

2017-01-27 Thread Mark Thompson
On 27/01/17 14:27, Christian König wrote: > Am 27.01.2017 um 13:51 schrieb Mark Thompson: >> On 26/01/17 16:59, Christian König wrote: >>> Am 26.01.2017 um 13:14 schrieb Mark Thompson: [SNIP] >>> The problem here is I need to know what will be done with the surface from >>> the very beginning

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI

2017-01-27 Thread Christian König
Am 27.01.2017 um 13:51 schrieb Mark Thompson: On 26/01/17 16:59, Christian König wrote: Am 26.01.2017 um 13:14 schrieb Mark Thompson: [SNIP] The problem here is I need to know what will be done with the surface from the very beginning. E.g. if you want to scan it out directly to hardware you

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI

2017-01-27 Thread Mark Thompson
On 26/01/17 16:59, Christian König wrote: > Am 26.01.2017 um 13:14 schrieb Mark Thompson: >> On 26/01/17 11:00, Christian König wrote: >>> Hi Peter, >>> >>> Am 25.01.2017 um 19:45 schrieb Peter Frühberger: Peter, Rainer any idea what I'm missing here? Do you guys use some m

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI

2017-01-27 Thread Andy Furniss
Peter Frühberger wrote: just tell us when we can remove: https://github.com/FernetMenta/kodi-agile/blob/master/xbmc/cores/VideoPlayer/DVDCodecs/Video/VAAPI.cpp#L534 Maybe I mis-remember, but doesn't AMD also need some EGL work for VAAPI display with kodi? Would be handy to get kodi to work

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI

2017-01-26 Thread Peter Frühberger
Hi Christian, 2017-01-26 12:00 GMT+01:00 Christian König : > Hi Peter, > > Am 25.01.2017 um 19:45 schrieb Peter Frühberger: > >> >> >> Peter, Rainer any idea what I'm missing here? Do you guys use some >> modified ffmpeg for Kodi or how does that work for you? >> >> >> do you set the form

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI

2017-01-26 Thread Peter Frühberger
2017-01-26 16:36 GMT+01:00 Christian König : > Am 26.01.2017 um 12:16 schrieb Peter Frühberger: > > Hi Christian, > > 2017-01-26 12:00 GMT+01:00 Christian König : > >> Hi Peter, >> >> Am 25.01.2017 um 19:45 schrieb Peter Frühberger: >> >>> >>> >>> Peter, Rainer any idea what I'm missing here?

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI

2017-01-26 Thread Peter Frühberger
Hi Christian, 2017-01-26 19:34 GMT+01:00 Christian König : > Am 26.01.2017 um 16:59 schrieb Peter Frühberger: > > > > 2017-01-26 16:36 GMT+01:00 Christian König : > >> Am 26.01.2017 um 12:16 schrieb Peter Frühberger: >> >> Hi Christian, >> >> 2017-01-26 12:00 GMT+01:00 Christian König < >> death

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI

2017-01-26 Thread Andy Furniss
Andy Furniss wrote: Andy Furniss wrote: Christian König wrote: Hi guys, ok this is completely work in progress and untested except for a compile run. Most of the stuff necessary should be there for VDPAU, but I'm honestly not sure how to approach VAAPI. These regress R9 285 8bit h264 vaapi

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI

2017-01-26 Thread Christian König
Am 26.01.2017 um 16:59 schrieb Peter Frühberger: 2017-01-26 16:36 GMT+01:00 Christian König >: Am 26.01.2017 um 12:16 schrieb Peter Frühberger: Hi Christian, 2017-01-26 12:00 GMT+01:00 Christian König mailto:deathsim...@vodafone.de>>:

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI

2017-01-26 Thread Christian König
Am 26.01.2017 um 13:14 schrieb Mark Thompson: On 26/01/17 11:00, Christian König wrote: Hi Peter, Am 25.01.2017 um 19:45 schrieb Peter Frühberger: Peter, Rainer any idea what I'm missing here? Do you guys use some modified ffmpeg for Kodi or how does that work for you? do you set

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI

2017-01-26 Thread Andy Furniss
Andy Furniss wrote: Christian König wrote: Hi guys, ok this is completely work in progress and untested except for a compile run. Most of the stuff necessary should be there for VDPAU, but I'm honestly not sure how to approach VAAPI. These regress R9 285 8bit h264 vaapi decode with mpv, [vd

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI

2017-01-26 Thread Christian König
Am 26.01.2017 um 12:16 schrieb Peter Frühberger: Hi Christian, 2017-01-26 12:00 GMT+01:00 Christian König >: Hi Peter, Am 25.01.2017 um 19:45 schrieb Peter Frühberger: Peter, Rainer any idea what I'm missing here? Do you guys use

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI

2017-01-26 Thread Mark Thompson
On 25/01/17 14:41, Christian König wrote: > Hi guys, > > ok this is completely work in progress and untested except for a compile run. > > Most of the stuff necessary should be there for VDPAU, but I'm honestly not > sure how to approach VAAPI. > > My main problem at the moment is that I can't

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI

2017-01-26 Thread Mark Thompson
On 26/01/17 11:00, Christian König wrote: > Hi Peter, > > Am 25.01.2017 um 19:45 schrieb Peter Frühberger: >> >> >> Peter, Rainer any idea what I'm missing here? Do you guys use some >> modified ffmpeg for Kodi or how does that work for you? >> >> >> do you set the format correctly, e.g.:

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI

2017-01-26 Thread Christian König
Hi Peter, Am 25.01.2017 um 19:45 schrieb Peter Frühberger: Peter, Rainer any idea what I'm missing here? Do you guys use some modified ffmpeg for Kodi or how does that work for you? do you set the format correctly, e.g.: https://github.com/FernetMenta/kodi-agile/blob/master/xbmc/cor

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI

2017-01-25 Thread Peter Frühberger
Hi Christian, 2017-01-25 15:41 GMT+01:00 Christian König : > Hi guys, > > ok this is completely work in progress and untested except for a compile > run. > > Most of the stuff necessary should be there for VDPAU, but I'm honestly > not sure how to approach VAAPI. > > My main problem at the moment

Re: [Mesa-dev] 10bit HEVC decoding for RadeonSI

2017-01-25 Thread Andy Furniss
Christian König wrote: Hi guys, ok this is completely work in progress and untested except for a compile run. Most of the stuff necessary should be there for VDPAU, but I'm honestly not sure how to approach VAAPI. These regress R9 285 8bit h264 vaapi decode with mpv, [vd] Pixel formats supp