From: bugzilla-daemon@freedesktop.org Subject: [Bug 110443] vaapi/vpp: wrong output for non 64-bytes align width (ex: 1200) Date: Tue, 16 Apr 2019 20:16:00 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1961893009==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 3F9E689C48 for ; Tue, 16 Apr 2019 20:16:00 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1961893009== Content-Type: multipart/alternative; boundary="15554457600.DcA1d6c.19603" Content-Transfer-Encoding: 7bit --15554457600.DcA1d6c.19603 Date: Tue, 16 Apr 2019 20:16:00 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D110443 --- Comment #2 from Julien Isorce --- Thx for your comment. What about the following in vlVaDeriveImage: - w =3D align(surf->buffer->width, 2); - h =3D align(surf->buffer->height, 2); + + alignment =3D screen->get_param(screen, PIPE_CAP_MIN_MAP_BUFFER_ALIGNME= NT); + w =3D align(surf->buffer->width, alignment); + h =3D align(surf->buffer->height, alignment); here https://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/state_trackers/va/i= mage.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. --=20 You are receiving this mail because: You are the assignee for the bug.= --15554457600.DcA1d6c.19603 Date: Tue, 16 Apr 2019 20:16:00 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 2 on bug 11044= 3 from Julien Isorce
Thx for your comment. What about the following in vlVaDeriveIm=
age:

-   w =3D align(surf->buffer->width, 2);
-   h =3D align(surf->buffer->height, 2);
+
+   alignment =3D screen->get_param(screen, PIPE_CAP_MIN_MAP_BUFFER_ALIG=
NMENT);
+   w =3D align(surf->buffer->width, alignment);
+   h =3D align(surf->buffer->height, alignment);

here
https://cgit.freedesktop.org/mesa/mesa/tree/src/gal=
lium/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.
= --15554457600.DcA1d6c.19603-- --===============1961893009== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1961893009==--