From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 94471] Tonga UVD 4Kx4K = failed to allocate a buffer Date: Thu, 10 Mar 2016 00:21:27 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0963919433==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 9FC7E6E7BE for ; Thu, 10 Mar 2016 00:21:27 +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 --===============0963919433== Content-Type: multipart/alternative; boundary="14575692870.aa18.10717"; charset="UTF-8" --14575692870.aa18.10717 Date: Thu, 10 Mar 2016 00:21:27 +0000 MIME-Version: 1.0 Content-Type: text/plain https://bugs.freedesktop.org/show_bug.cgi?id=94471 Bug ID: 94471 Summary: Tonga UVD 4Kx4K = failed to allocate a buffer 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 I see >= tonga uvd height has recently been increased - https://cgit.freedesktop.org/mesa/mesa/commit/?id=353a4f844f9e845dad93de9c28fa0d484b4b92d3 radeon/uvd: increase max height to 4096 for VI and newer With this issue 'mpv --hwdec=vdpau --vo=vdpau ' fails for vdpau decode if the stream height is 4096. Vdpau decode of height upto 4096 is necessary usecase on amdgpu driver for VI and newer platforms. The fix is in driver specific implementation of "Decoder Query Capabilities" API to return 4096 for VI and newer platforms. With this fix vdpauinfo reports height support as 4096 and mpv for vdpau decode works fine for 4096 height streams. On agd5f drm-fixes-4.5 4096x4096 fails for me (also fails with --vo vdpau) andy [~]$ mpv --hwdec=vdpau /mnt/sdb1/ffmpeg-mpl-tests/x264-4096.mkv Playing: /mnt/sdb1/ffmpeg-mpl-tests/x264-4096.mkv (+) Video --vid=1 (*) (h264) amdgpu: Failed to allocate a buffer: amdgpu: size : 0 bytes amdgpu: alignment : 4096 bytes amdgpu: domains : 2 amdgpu: Failed to allocate a buffer: amdgpu: size : 0 bytes amdgpu: alignment : 4096 bytes amdgpu: domains : 2 EE radeon_uvd.c:1109 ruvd_create_decoder UVD - Can't allocated bitstream buffers. [vo/opengl/x11] Disabling screensaver failed (-1). Make sure the xdg-screensaver script is installed. Using software decoding. VO: [opengl] 4096x4096 => 7282x4096 yuv420p dmesg [ 8308.529176] [TTM] Illegal buffer object size [ 8308.529210] [drm:amdgpu_gem_object_create [amdgpu]] *ERROR* Failed to allocate GEM object (0, 2, 4096, -22) [ 8308.529326] [TTM] Illegal buffer object size [ 8308.529339] [drm:amdgpu_gem_object_create [amdgpu]] *ERROR* Failed to allocate GEM object (0, 2, 4096, -22) -- You are receiving this mail because: You are the assignee for the bug. --14575692870.aa18.10717 Date: Thu, 10 Mar 2016 00:21:27 +0000 MIME-Version: 1.0 Content-Type: text/html
Bug ID 94471
Summary Tonga UVD 4Kx4K = failed to allocate a buffer
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

I see >= tonga uvd height has recently been increased -

https://cgit.freedesktop.org/mesa/mesa/commit/?id=353a4f844f9e845dad93de9c28fa0d484b4b92d3

radeon/uvd: increase max height to 4096 for VI and newer
With this issue 'mpv --hwdec=vdpau --vo=vdpau <stream>' fails
for vdpau decode if the stream height is 4096. Vdpau decode of
height upto 4096 is necessary usecase on amdgpu driver for VI
and newer platforms.

The fix is in driver specific implementation of "Decoder
Query Capabilities" API to return 4096 for VI and newer
platforms. With this fix vdpauinfo reports height support as
4096 and mpv for vdpau decode works fine for 4096 height streams.

On agd5f drm-fixes-4.5 4096x4096 fails for me (also fails with --vo vdpau)


andy [~]$ mpv --hwdec=vdpau /mnt/sdb1/ffmpeg-mpl-tests/x264-4096.mkv 
Playing: /mnt/sdb1/ffmpeg-mpl-tests/x264-4096.mkv
 (+) Video --vid=1 (*) (h264)
amdgpu: Failed to allocate a buffer:
amdgpu:    size      : 0 bytes
amdgpu:    alignment : 4096 bytes
amdgpu:    domains   : 2
amdgpu: Failed to allocate a buffer:
amdgpu:    size      : 0 bytes
amdgpu:    alignment : 4096 bytes
amdgpu:    domains   : 2
EE radeon_uvd.c:1109 ruvd_create_decoder UVD - Can't allocated bitstream
buffers.
[vo/opengl/x11] Disabling screensaver failed (-1). Make sure the
xdg-screensaver script is installed.
Using software decoding.
VO: [opengl] 4096x4096 => 7282x4096 yuv420p

dmesg

[ 8308.529176] [TTM] Illegal buffer object size
[ 8308.529210] [drm:amdgpu_gem_object_create [amdgpu]] *ERROR* Failed to
allocate GEM object (0, 2, 4096, -22)
[ 8308.529326] [TTM] Illegal buffer object size
[ 8308.529339] [drm:amdgpu_gem_object_create [amdgpu]] *ERROR* Failed to
allocate GEM object (0, 2, 4096, -22)


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