<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - vaapi/vpp: wrong output for non 64-bytes align width (ex: 1200)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=110443#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - vaapi/vpp: wrong output for non 64-bytes align width (ex: 1200)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=110443">bug 110443</a>
              from <span class="vcard"><a class="email" href="mailto:maraeo@gmail.com" title="Marek Olšák <maraeo@gmail.com>"> <span class="fn">Marek Olšák</span></a>
</span></b>
        <pre>(In reply to Julien Isorce from <a href="show_bug.cgi?id=110443#c0">comment #0</a>)
<span class="quote">> vaDeriveImage reports wrong stride.

> Indeed Mesa's vlVaDeriveImage always sets the stride to w * 4 for RGBA
> format
> <a href="https://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/state_trackers/va/">https://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/state_trackers/va/</a>
> image.c#n259 

> This results in wrong video output, see
> <a href="https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/issues/100">https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/issues/100</a>

> Is there a way to know the pipe_resource's stride
> <a href="https://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/state_trackers/va/">https://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/state_trackers/va/</a>
> image.c#n283 without exporting it to dmabuf (through whandle.stride) and
> without mapping it (drv->pipe->transfer_map / pipe_transfer.stride) ?</span >

No, there isn't. whandle.stride is pipe_resource's stride and is for GPU
access. pipe_transfer.stride can be different and is for CPU access.</pre>
        </div>
      </p>


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

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