[Bug 110443] vaapi/vpp: wrong output for non 64-bytes align width (ex: 1200)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Apr 16 20:02:08 UTC 2019


https://bugs.freedesktop.org/show_bug.cgi?id=110443

--- Comment #1 from Marek Olšák <maraeo at gmail.com> ---
(In reply to Julien Isorce from comment #0)
> vaDeriveImage reports wrong stride.
> 
> Indeed Mesa's vlVaDeriveImage always sets the stride to w * 4 for RGBA
> format
> https://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/state_trackers/va/
> image.c#n259 
> 
> This results in wrong video output, see
> https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/issues/100
> 
> Is there a way to know the pipe_resource's stride
> https://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/state_trackers/va/
> image.c#n283 without exporting it to dmabuf (through whandle.stride) and
> without mapping it (drv->pipe->transfer_map / pipe_transfer.stride) ?

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20190416/6642ee3b/attachment.html>


More information about the dri-devel mailing list