[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:16:00 UTC 2019


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

--- Comment #2 from Julien Isorce <julien.isorce at gmail.com> ---
Thx for your comment. What about the following in vlVaDeriveImage:

-   w = align(surf->buffer->width, 2);
-   h = align(surf->buffer->height, 2);
+
+   alignment = screen->get_param(screen, PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT);
+   w = align(surf->buffer->width, alignment);
+   h = align(surf->buffer->height, alignment);

here
https://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/state_trackers/va/image.c#n235

This is not entirely right but I feel it has more chance to succeed than the
current align 2. At least it works on my GFX6 card.

-- 
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/ebc25027/attachment.html>


More information about the dri-devel mailing list