From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 110327] [exynos-drm] failed to presentate a dumb buffer format NV12 with modifier DRM_FORMAT_MOD_SAMSUNG_64_32_TILE Date: Thu, 04 Apr 2019 16:32:07 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1515415799==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 397216E1D6 for ; Thu, 4 Apr 2019 16:32:07 +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 --===============1515415799== Content-Type: multipart/alternative; boundary="15543955270.f43106d2.4392" Content-Transfer-Encoding: 7bit --15543955270.f43106d2.4392 Date: Thu, 4 Apr 2019 16:32:07 +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=3D110327 Bug ID: 110327 Summary: [exynos-drm] failed to presentate a dumb buffer format NV12 with modifier DRM_FORMAT_MOD_SAMSUNG_64_32_TILE Product: DRI Version: unspecified Hardware: ARM OS: Linux (All) Status: NEW Severity: blocker Priority: medium Component: DRM/other Assignee: dri-devel@lists.freedesktop.org Reporter: zillevdr@gmx.de Created attachment 143863 --> https://bugs.freedesktop.org/attachment.cgi?id=3D143863&action=3Dedit picture from screen I want to decode a H264 1280x720 video with v4l2 decoder and present this on DRM with a dumb buffer. On screen the Y plane is correct but UV plane have the doubled height. Pitc= h is correct. But looks like a line from uv plane is used for 4 lines on y plane instead of 2. Attached are a picture from the screen. I use the format describtion from: https://www.linuxtv.org/downloads/v4l-dvb-apis-new/uapi/v4l/pixfmt-nv12mt.h= tml.=20 For dumb buffer configuration the height must aligned to 64 instead of to 3= 2. If align height to 32 EINVAL is returned from AddFB2. OK, the UV plane have= the half height from Y plane and must aligned to 32. The size from DRM_IOCTL_CREATE_DUMB_BUFFER is to big. IOCTL returned a dumb buffer size from 1966080. width =3D 1280 =3D> aligned to 128 width =3D 1280 height =3D 720 =3D> aligned to 64 height =3D 768 Y plane 1280 * 768 =3D 983040 UV plane 1280 * 768 / 2 =3D 491520 Dumb buffer size should be 1474560. Looks like the UV plane have doubled si= ze as it should be. The device is a Odroid-U3 with Exynos4412. Kernel version is 5.0.5. --=20 You are receiving this mail because: You are the assignee for the bug.= --15543955270.f43106d2.4392 Date: Thu, 4 Apr 2019 16:32:07 +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 110327
Summary [exynos-drm] failed to presentate a dumb buffer format NV12 w= ith modifier DRM_FORMAT_MOD_SAMSUNG_64_32_TILE
Product DRI
Version unspecified
Hardware ARM
OS Linux (All)
Status NEW
Severity blocker
Priority medium
Component DRM/other
Assignee dri-devel@lists.freedesktop.org
Reporter zillevdr@gmx.de

Created attachment 143863 [details]
picture from screen

I want to decode a H264 1280x720 video with v4l2 decoder and present this on
DRM with a dumb buffer.

On screen the Y plane is correct but UV plane have the doubled height. Pitc=
h is
correct. But looks like a line from uv plane is used for 4 lines on y plane
instead of 2. Attached are a picture from the screen. I use the format
describtion from:
https://www.linuxtv.org/downloads/v4l-dvb-apis-new/uapi/v4l=
/pixfmt-nv12mt.html.=20

For dumb buffer configuration the height must aligned to 64 instead of to 3=
2.
If align height to 32 EINVAL is returned from AddFB2. OK, the UV plane have=
 the
half height from Y plane and must aligned to 32.

The size from DRM_IOCTL_CREATE_DUMB_BUFFER is to big. IOCTL returned a dumb
buffer size from 1966080.
width =3D 1280 =3D> aligned to 128 width =3D 1280
height =3D 720 =3D> aligned to 64 height =3D 768
Y plane 1280 * 768 =3D 983040
UV plane 1280 * 768 / 2 =3D 491520
Dumb buffer size should be 1474560. Looks like the UV plane have doubled si=
ze
as it should be.

The device is a Odroid-U3 with Exynos4412.
Kernel version is 5.0.5.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15543955270.f43106d2.4392-- --===============1515415799== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1515415799==--