dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.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	[thread overview]
Message-ID: <bug-110327-502@http.bugs.freedesktop.org/> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1830 bytes --]

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

            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=143863&action=edit
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. Pitch 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. 

For dumb buffer configuration the height must aligned to 64 instead of to 32.
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 = 1280 => aligned to 128 width = 1280
height = 720 => aligned to 64 height = 768
Y plane 1280 * 768 = 983040
UV plane 1280 * 768 / 2 = 491520
Dumb buffer size should be 1474560. Looks like the UV plane have doubled size
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.

[-- Attachment #1.2: Type: text/html, Size: 3393 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

             reply	other threads:[~2019-04-04 16:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-04 16:32 bugzilla-daemon [this message]
2019-04-05  6:54 ` [Bug 110327] [exynos-drm] failed to presentate a dumb buffer format NV12 with modifier DRM_FORMAT_MOD_SAMSUNG_64_32_TILE bugzilla-daemon
2019-04-05 10:55 ` bugzilla-daemon
2019-04-16 13:43 ` bugzilla-daemon
2019-04-17  7:12 ` bugzilla-daemon
2019-04-18  8:31 ` bugzilla-daemon
2019-11-19  8:53 ` bugzilla-daemon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-110327-502@http.bugs.freedesktop.org/ \
    --to=bugzilla-daemon@freedesktop.org \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).