<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Arial;font-size:10pt;color:#0078D7;margin:15pt;" align="Left">
[AMD Official Use Only - Internal Distribution Only]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Daniel,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Unfortunately, I wasn't able to recreate the issue on a Polaris card, so the issue might only be with older hardware. I'll see if there's any updated firmware for the Carizzo devices.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Regards,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thong Thai<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Daniel Gomez <daniel@qtec.com><br>
<b>Sent:</b> August 4, 2020 9:48 AM<br>
<b>To:</b> Liu, Leo <Leo.Liu@amd.com><br>
<b>Cc:</b> mesa-dev@lists.freedesktop.org <mesa-dev@lists.freedesktop.org>; Zhang, Boyuan <Boyuan.Zhang@amd.com>; Thai, Thong <Thong.Thai@amd.com><br>
<b>Subject:</b> Re: [Mesa-dev] VAAPI encoder and OpenGL</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hi guys,<br>
<br>
any update on this?<br>
<br>
Thanks<br>
<br>
<br>
<br>
On Mon, 27 Apr 2020 at 16:23, Daniel Gomez <daniel@qtec.com> wrote:<br>
><br>
> Hi,<br>
><br>
> We have also try to use VAAPI decoder + OpenGL with mpv with the same effects:<br>
><br>
> VAAPI + OpenGL example:<br>
> DISPLAY=:0 mpv --hwdec=vaapi --vo=opengl  The\ Simpsons\ Movie\ -\<br>
> 1080p\ Trailer.mp4<br>
> Playing: The Simpsons Movie - 1080p Trailer.mp4<br>
> [osd/libass] Error opening memory font 'fonts.conf'<br>
> [ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: stream 0, timescale not set<br>
>  (+) Video --vid=1 (*) (h264 1920x800 23.976fps)<br>
>      Video --vid=2 [P] (png)<br>
>  (+) Audio --aid=1 --alang=und (*) (aac 2ch 44100Hz)<br>
> File tags:<br>
>  Artist: 20th Century Fox<br>
>  Genre: Trailer<br>
>  Title: The Simpsons Movie - Trailer<br>
> [vo/opengl/x11] XOpenIM() failed. Unicode input will not work.<br>
> [vo/opengl/x11] XOpenIM() failed. Unicode input will not work.<br>
> [vo/opengl/vaapi-egl] vaDeriveImage(): invalid VASurfaceID<br>
> [vo/opengl/vaapi-egl] vaDeriveImage(): invalid VAImageFormat<br>
> [ffmpeg] AVHWFramesContext: Failed to create surface: 2 (resource<br>
> allocation failed).<br>
> [ffmpeg] AVHWFramesContext: Unable to allocate a surface from internal<br>
> buffer pool.<br>
> [vo/opengl/vaapi-egl] vaDeriveImage(): invalid VASurfaceID<br>
> [vo/opengl/vaapi-egl] vaDeriveImage(): invalid VAImageFormat<br>
> [ffmpeg] AVHWFramesContext: Failed to create surface: 2 (resource<br>
> allocation failed).<br>
> [ffmpeg] AVHWFramesContext: Unable to allocate a surface from internal<br>
> buffer pool.<br>
> VO does not support requested hardware decoder, or loading it failed.<br>
> ALSA lib ../../../alsa-lib-1.1.8/src/pcm/pcm_dmix.c:1108:(snd_pcm_dmix_open)<br>
> unable to open slave<br>
> [ao/alsa] Playback open error: No such file or directory<br>
> [ao/oss] Can't open audio device /dev/dsp: No such file or directory<br>
> [ao] Failed to initialize audio driver 'oss'<br>
> Could not open/initialize audio device -> no sound.<br>
> Audio: no audio<br>
> VO: [opengl] 1920x800 yuv420p<br>
> V: 00:00:06 / 00:02:17 (4%)<br>
><br>
> Just opengl or vappi works fine.<br>
><br>
> VAAPI  example:<br>
> DISPLAY=:0 mpv --hwdec=vaapi --vo=xv  The\ Simpsons\ Movie\ -\ 1080p\<br>
> Trailer.mp4<br>
> Playing: The Simpsons Movie - 1080p Trailer.mp4<br>
> [osd/libass] Error opening memory font 'fonts.conf'<br>
> [ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: stream 0, timescale not set<br>
>  (+) Video --vid=1 (*) (h264 1920x800 23.976fps)<br>
>      Video --vid=2 [P] (png)<br>
>  (+) Audio --aid=1 --alang=und (*) (aac 2ch 44100Hz)<br>
> File tags:<br>
>  Artist: 20th Century Fox<br>
>  Genre: Trailer<br>
>  Title: The Simpsons Movie - Trailer<br>
> [vo/xv/x11] XOpenIM() failed. Unicode input will not work.<br>
> [vo/xv] Warning: this legacy VO has bad quality and performance, and<br>
> will in particular result in blurry OSD and subtitles. You should fix<br>
> your graphics drivers, or not force the xv VO.<br>
> VO does not support requested hardware decoder, or loading it failed.<br>
> ALSA lib ../../../alsa-lib-1.1.8/src/pcm/pcm_dmix.c:1108:(snd_pcm_dmix_open)<br>
> unable to open slave<br>
> [ao/alsa] Playback open error: No such file or directory<br>
> [ao/oss] Can't open audio device /dev/dsp: No such file or directory<br>
> [ao] Failed to initialize audio driver 'oss'<br>
> Could not open/initialize audio device -> no sound.<br>
> Audio: no audio<br>
> VO: [xv] 1920x800 yuv420p<br>
> V: 00:00:09 / 00:02:17 (6%)<br>
> Exiting... (Quit)<br>
><br>
> OpenGL example:<br>
> DISPLAY=:0 mpv --hwdec=no --vo=opengl  The\ Simpsons\ Movie\ -\ 1080p\<br>
> Trailer.mp4<br>
> Playing: The Simpsons Movie - 1080p Trailer.mp4<br>
> [osd/libass] Error opening memory font 'fonts.conf'<br>
> [ffmpeg/demuxer] mov,mp4,m4a,3gp,3g2,mj2: stream 0, timescale not set<br>
>  (+) Video --vid=1 (*) (h264 1920x800 23.976fps)<br>
>      Video --vid=2 [P] (png)<br>
>  (+) Audio --aid=1 --alang=und (*) (aac 2ch 44100Hz)<br>
> File tags:<br>
>  Artist: 20th Century Fox<br>
>  Genre: Trailer<br>
>  Title: The Simpsons Movie - Trailer<br>
> [vo/opengl/x11] XOpenIM() failed. Unicode input will not work.<br>
> [vo/opengl/x11] XOpenIM() failed. Unicode input will not work.<br>
> ALSA lib ../../../alsa-lib-1.1.8/src/pcm/pcm_dmix.c:1108:(snd_pcm_dmix_open)<br>
> unable to open slave<br>
> [ao/alsa] Playback open error: No such file or directory<br>
> [ao/oss] Can't open audio device /dev/dsp: No such file or directory<br>
> [ao] Failed to initialize audio driver 'oss'<br>
> Could not open/initialize audio device -> no sound.<br>
> Audio: no audio<br>
> VO: [opengl] 1920x800 yuv420p<br>
> V: 00:00:01 / 00:02:17 (1%)<br>
> Exiting... (Quit)<br>
><br>
> On Mon, 27 Apr 2020 at 15:13, Leo Liu <leo.liu@amd.com> wrote:<br>
> ><br>
> > +Thong.<br>
> ><br>
> > On 2020-04-27 8:29 a.m., Daniel Gomez wrote:<br>
> > > Adding Boyuan Zhang to the thread.<br>
> > ><br>
> > > On Mon, 27 Apr 2020 at 14:00, Daniel Gomez <daniel@qtec.com> wrote:<br>
> > >> Hi guys,<br>
> > >><br>
> > >> We have found a limitation on the usage of the GPU and the encoder<br>
> > >> when you run it simultaneously in a gstreamer pipeline and we would like to<br>
> > >> report it and try to find a solution.<br>
> > >><br>
> > >> Besides encoding the video frame, the following gstreamer pipeline shows the<br>
> > >> usage of the GPU in two ways:<br>
> > >> 1. OpenGL color conversion.<br>
> > >> 2. Render to the display using OpenGL.<br>
> > >><br>
> > >> DISPLAY=:0 \<br>
> > >> GST_DEBUG="*:3,GST_TRACER:7" GST_TRACERS="queuelevel"  \<br>
> > >> gst-launch-1.0 videotestsrc ! video/x-raw,format=RGBA ! \<br>
> > >> glupload ! glcolorconvert !  gldownload  ! \<br>
> > >> queue max-size-bytes=279936000 max-size-time=3000000000 leaky=2 ! \<br>
> > >> vaapih264enc ! \<br>
> > >> fakesink \<br>
> > >> videotestsrc ! video/x-raw ! glimagesink sync=false<br>
> > >><br>
> > >> By running the above pipeline you can see how the encoder queue fills up to the<br>
> > >> maximum and never consumes the incoming data.<br>
> > >><br>
> > >> Hardware information:<br>
> > >><br>
> > >> AMD Embedded R-Series RX-421BD Radeon R7<br>
> > >><br>
> > >> lspci -v -s 00:01.0<br>
> > >> 00:01.0 VGA compatible controller: Advanced Micro Devices, Inc.<br>
> > >> [AMD/ATI] Wani [Radeon R5/R6/R7 Graphics] (rev 84) (prog-if 00 [VGA<br>
> > >> controller])<br>
> > >> Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Wani [Radeon<br>
> > >> R5/R6/R7 Graphics]<br>
> > >> Flags: bus master, fast devsel, latency 0, IRQ 53<br>
> > >> Memory at e0000000 (64-bit, prefetchable) [size=256M]<br>
> > >> Memory at f2000000 (64-bit, prefetchable) [size=8M]<br>
> > >> I/O ports at 5000 [size=256]<br>
> > >> Memory at f2c00000 (32-bit, non-prefetchable) [size=256K]<br>
> > >> Expansion ROM at 000c0000 [disabled] [size=128K]<br>
> > >> Capabilities: [48] Vendor Specific Information: Len=08 <?><br>
> > >> Capabilities: [50] Power Management version 3<br>
> > >> Capabilities: [58] Express Root Complex Integrated Endpoint, MSI 00<br>
> > >> Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+<br>
> > >> Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?><br>
> > >> Capabilities: [270] Secondary PCI Express <?><br>
> > >> Capabilities: [2b0] Address Translation Service (ATS)<br>
> > >> Capabilities: [2c0] Page Request Interface (PRI)<br>
> > >> Capabilities: [2d0] Process Address Space ID (PASID)<br>
> > >> Kernel driver in use: amdgpu<br>
> > >> Kernel modules: amdgpu<br>
> > >><br>
> > >> DISPLAY=:0 glxinfo -B<br>
> > >> name of display: :0<br>
> > >> display: :0  screen: 0<br>
> > >> direct rendering: Yes<br>
> > >> Extended renderer info (GLX_MESA_query_renderer):<br>
> > >>      Vendor: X.Org (0x1002)<br>
> > >>      Device: AMD Radeon R7 Graphics (CARRIZO, DRM 3.36.0,<br>
> > >> 5.5.0-qtec-standard, LLVM 8.0.0) (0x9874)<br>
> > >>      Version: 19.0.1<br>
> > >>      Accelerated: yes<br>
> > >>      Video memory: 1024MB<br>
> > >>      Unified memory: no<br>
> > >>      Preferred profile: core (0x1)<br>
> > >>      Max core profile version: 4.5<br>
> > >>      Max compat profile version: 4.5<br>
> > >>      Max GLES1 profile version: 1.1<br>
> > >>      Max GLES[23] profile version: 3.2<br>
> > >> OpenGL vendor string: X.Org<br>
> > >> OpenGL renderer string: AMD Radeon R7 Graphics (CARRIZO, DRM 3.36.0,<br>
> > >> 5.5.0-qtec-standard, LLVM 8.0.0)<br>
> > >> OpenGL core profile version string: 4.5 (Core Profile) Mesa 19.0.1<br>
> > >> OpenGL core profile shading language version string: 4.50<br>
> > >> OpenGL core profile context flags: (none)<br>
> > >> OpenGL core profile profile mask: core profile<br>
> > >><br>
> > >> OpenGL version string: 4.5 (Compatibility Profile) Mesa 19.0.1<br>
> > >> OpenGL shading language version string: 4.50<br>
> > >> OpenGL context flags: (none)<br>
> > >> OpenGL profile mask: compatibility profile<br>
> > >><br>
> > >> OpenGL ES profile version string: OpenGL ES 3.2 Mesa 19.0.1<br>
> > >> OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20<br>
> > >><br>
> > >> Any idea/suggestion why is this happening?<br>
> > >><br>
> > >> Thanks!<br>
> > >> Daniel<br>
> > > _______________________________________________<br>
> > > mesa-dev mailing list<br>
> > > mesa-dev@lists.freedesktop.org<br>
> > > <a href="https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fmesa-dev&amp;data=02%7C01%7Cthong.thai%40amd.com%7C32c8ff9995e94a08af8408d8387d21bf%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637321457379677028&amp;sdata=GROopf9IjsCCRwP2c6SU2LHQUvSgBQvF8RkqxpSeN68%3D&amp;reserved=0">
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fmesa-dev&amp;data=02%7C01%7Cthong.thai%40amd.com%7C32c8ff9995e94a08af8408d8387d21bf%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637321457379677028&amp;sdata=GROopf9IjsCCRwP2c6SU2LHQUvSgBQvF8RkqxpSeN68%3D&amp;reserved=0</a><br>
</div>
</span></font></div>
</div>
</body>
</html>