From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 97116] mpv needs VAAPI_DISABLE_INTERLACE=1 for swdecode -vo vaapi since st/va: add conversion for yv12 to nv12in putimage v2 Date: Thu, 28 Jul 2016 17:02:33 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1827296491==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id C47E16E259 for ; Thu, 28 Jul 2016 17:02:33 +0000 (UTC) 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 --===============1827296491== Content-Type: multipart/alternative; boundary="14697253530.BE0c2762C.24529"; charset="UTF-8" --14697253530.BE0c2762C.24529 Date: Thu, 28 Jul 2016 17:02:33 +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=3D97116 Bug ID: 97116 Summary: mpv needs VAAPI_DISABLE_INTERLACE=3D1 for swdecode -vo vaapi since st/va: add conversion for yv12 to nv12in putimage v2 Product: Mesa Version: git Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: adf.lists@gmail.com QA Contact: dri-devel@lists.freedesktop.org since=20 mesa commit 34f46348438b29e20d06cca312616cfba8ee05f6 For putimage call, if image format is yv12 (or IYUV with U V field swap) and surface format is nv12, then we need to convert yv12 to nv12 and then copy = the converted data from image to surface. We can't use the existing logic where surface is destroyed and re-created with yv12 format. v2 (chk): fix some compiler warnings and commit message=20 mpv --vo=3Dvaapi will produce corrupted output without the new env VAAPI_DISABLE_INTERLACE=3D1 This only applies to s/w decode as hwdec uses nv12 and avoids the conversio= n. Gstreamer vaapisink is not affected as (from what little debugging I did) it doesn't seem to use interlaced buffers doing putimage. --=20 You are receiving this mail because: You are the assignee for the bug.= --14697253530.BE0c2762C.24529 Date: Thu, 28 Jul 2016 17:02:33 +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
Bug ID 97116
Summary mpv needs VAAPI_DISABLE_INTERLACE=3D1 for swdecode -vo vaapi= since st/va: add conversion for yv12 to nv12in putimage v2
Product Mesa
Version git
Hardware Other
OS All
Status NEW
Severity normal
Priority medium
Component Drivers/Gallium/radeonsi
Assignee dri-devel@lists.freedesktop.org
Reporter adf.lists@gmail.com
QA Contact dri-devel@lists.freedesktop.org

since=20

mesa commit     34f46348438b29e20d06cca312616cfba8ee05f6

For putimage call, if image format is yv12 (or IYUV with U V field swap) and
surface format is nv12, then we need to convert yv12 to nv12 and then copy =
the
converted data from image to surface. We can't use the existing logic where
surface is destroyed and re-created with yv12 format.

v2 (chk): fix some compiler warnings and commit message=20

mpv --vo=3Dvaapi will produce corrupted output without the new env
VAAPI_DISABLE_INTERLACE=3D1

This only applies to s/w decode as hwdec uses nv12 and avoids the conversio=
n.

Gstreamer vaapisink is not affected as (from what little debugging I did) it
doesn't seem to use interlaced buffers doing putimage.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14697253530.BE0c2762C.24529-- --===============1827296491== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1827296491==--