<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - amdgpu hevc encoding problems: segment fault and contents of garbage"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=110673#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - amdgpu hevc encoding problems: segment fault and contents of garbage"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=110673">bug 110673</a>
              from <span class="vcard"><a class="email" href="mailto:gregor@outlook.com" title="gregory shu <gregor@outlook.com>"> <span class="fn">gregory shu</span></a>
</span></b>
        <pre>(In reply to zhoulei from <a href="show_bug.cgi?id=110673#c8">comment #8</a>)
<span class="quote">> Issues have been fixed with these two set of patches:

> <a href="https://lists.freedesktop.org/archives/mesa-dev/2019-May/219673.html">https://lists.freedesktop.org/archives/mesa-dev/2019-May/219673.html</a>

> <a href="https://lists.freedesktop.org/archives/mesa-dev/2019-June/220450.html">https://lists.freedesktop.org/archives/mesa-dev/2019-June/220450.html</a>

> Mark as RESOLVED.</span >

Not sure if I should post new one as it seems related, I'm on 2200G I'm still
getting garbled green encode output with the patches applied, when input needs
conversion from 10bit.


libva info: VA-API version 1.6.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/va/drivers/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_6
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.6 (libva 2.6.0.pre1)
vainfo: Driver version: Mesa Gallium driver 19.2.0-devel for AMD RAVEN (DRM
3.32.0, 5.2.0-gentoo, LLVM 8.0.0)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc

E.g. this command:

ffmpeg -threads 4 \
-init_hw_device vaapi=amd:/dev/dri/renderD128 -hwaccel vaapi
-hwaccel_output_format vaapi -hwaccel_device amd -filter_hw_device amd \
-i nexp.mkv'     \
-vf "scale_vaapi=format=nv12" \
-c:v h264_vaapi -profile:v 578 \
-c:a copy  -c:s copy \
-f mpegts -y plop.mkv

input file is a 10bit hevc</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>