<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi Peter,<br>
      <br>
      Adding Michel and Marek for the Mesa interop side and Harry for
      the display side.<br>
      <br>
      <blockquote type="cite">How do you want us to display the decoded
        surfaces?</blockquote>
      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 anything vendor dependent in your code.<br>
      <br>
      The first step would be to get the VA-API DRM extension to work
      with EGL. So that Kodi is able to export the YUV surfaces and
      import parts of them as separate R8/R16 or R8G8/R16G16 surfaces,
      right?<br>
      <br>
      What EGL/GL extension do you guys use to import the surfaces?
      Marek is that stuff fully supported, e.g. do we also handle the
      offsets correctly? I've added the backend code for this while
      doing VDPAU interop, but the EGL/GL frontend code needs to handle
      it gracefully as well.<br>
      <br>
      The second step is then to teach our DC how to handle RGB surfaces
      with 10bit. I doubt the old code has support for that and we
      probably don't want to add it. So Harry can you comment on how far
      along we got with that in DC?<br>
      <br>
      Regards,<br>
      Christian.<br>
      <br>
      Am 19.03.2017 um 13:26 schrieb Peter Frühberger:<br>
    </div>
    <blockquote
cite="mid:CAMQ1+vxrsp22kFgoO-MnNe==R1Jb=oS2m5o3zAg-VavN=Beu0A@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Christian,
        <div><br>
        </div>
        <div>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.</div>
        <div><br>
        </div>
        <div>We are working on a drm-only kodi and now ask ourselves: Is
          there a possibility to interop with a drm extension and
          eglCreateImage on AMD hw, too? With the intel only R32, R8
          linux buf methods we are also running succesfully on MIR now,
          wayland would work the very same.</div>
        <div><br>
        </div>
        <div>Best regards</div>
        <div>Peter</div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">2017-03-10 17:25 GMT+01:00 <a
            moz-do-not-send="true"
            href="mailto:rainer.hochecker@onlinehome.de">rainer.hochecker@onlinehome.de</a>
          <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:rainer.hochecker@onlinehome.de"
              target="_blank">rainer.hochecker@onlinehome.de</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div>
              <div style="font-family:Verdana;font-size:12.0px">
                <div>
                  <div>Hi Christian,</div>
                  <div> </div>
                  <div>I already removed the check for Intel in my dev
                    branch. On startup</div>
                  <div>Kodi does a functional test if vaapi works. If
                    the test passes, it is availalbe</div>
                  <div>regarless of the underlying type of
                    hardware/driver.</div>
                  <div> </div>
                  <div>Regards,</div>
                  <div>Rainer</div>
                  <div> 
                    <div name="quote" style="margin:10px 5px 5px
                      10px;padding:10px 0 10px 10px;border-left:2px
                      solid #c3d9e5;word-wrap:break-word">
                      <div style="margin:0 0 10px 0"><b>Gesendet:</b> Mittwoch,
                        08. März 2017 um 13:29 Uhr<br>
                        <b>Von:</b> "Christian König" <<a
                          moz-do-not-send="true"
                          href="mailto:deathsimple@vodafone.de"
                          target="_blank">deathsimple@vodafone.de</a>><br>
                        <b>An:</b> <a moz-do-not-send="true"
                          href="mailto:mesa-dev@lists.freedesktop.org"
                          target="_blank">mesa-dev@lists.<wbr>freedesktop.org</a><br>
                        <b>Cc:</b> <a moz-do-not-send="true"
                          href="mailto:rainer.hochecker@onlinehome.de"
                          target="_blank">rainer.hochecker@<wbr>onlinehome.de</a>,
                        <a moz-do-not-send="true"
                          href="mailto:peter.fruehberger@gmail.com"
                          target="_blank">peter.fruehberger@gmail.com</a><br>
                        <b>Betreff:</b> 10bit HEVC decoding for RadeonSI
                        v2</div>
                      <div>
                        <div class="h5">
                          <div name="quoted-content">Hi guys,<br>
                            <br>
                            I finally found time testing this and
                            hammering out (hopefully) all the<br>
                            remaining bugs. Playing a 10bit HEVC file
                            through VAAPI with mpv/ffmpeg git<br>
                            master from about two days ago now works
                            flawlessly and has only about 15% CPU<br>
                            load on one core on a Kaveri system.<br>
                            <br>
                            The VDPAU path should work as well, but
                            NVidias implementation of this is still<br>
                            completely broken and so nobody enables it
                            and we don't have a way to test it.<br>
                            <br>
                            Rainer/Peter maybe you guys want to take a
                            look and enable it in Kodi.<br>
                            <br>
                            The next logical step is to get our display
                            code paths to be 10bit ready.<br>
                            <br>
                            Please review and comment,<br>
                            Christian.<br>
                             </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature" data-smartmail="gmail_signature"> 
                           Key-ID:     0x1A995A9B<br>
                             keyserver: <a moz-do-not-send="true"
            href="http://pgp.mit.edu" target="_blank">pgp.mit.edu</a><br>
          ==============================================================<br>
          Fingerprint: 4606 DA19 EC2E 9A0B 0157  C81B DA07 CF63 1A99
          5A9B</div>
      </div>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>