From: bugzilla-daemon@freedesktop.org Subject: [Bug 111622] VAAPI vaDeriveImage returns VA_STATUS_ERROR_OPERATION_FAILED Date: Tue, 10 Sep 2019 05:07:10 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1537768457==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 451DC89026 for ; Tue, 10 Sep 2019 05:07:10 +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 --===============1537768457== Content-Type: multipart/alternative; boundary="15680920300.F4BbF.27327" Content-Transfer-Encoding: 7bit --15680920300.F4BbF.27327 Date: Tue, 10 Sep 2019 05:07:10 +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=3D111622 Bug ID: 111622 Summary: VAAPI vaDeriveImage returns VA_STATUS_ERROR_OPERATION_FAILED Product: Mesa Version: 19.1 Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: not set Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: reject5514@naver.com QA Contact: dri-devel@lists.freedesktop.org Created attachment 145311 --> https://bugs.freedesktop.org/attachment.cgi?id=3D145311&action=3Dedit Sample C code to reproduce error Operating System: archlinux 5.2.13-arch1-1-ARCH GPU: Radeon RX 570 Mesa version: 19.1.6 Libva version: 2.5.0 vaDeriveImage() VAAPI returns VA_STATUS_ERROR_OPERATION_FAILED when radeonsi_drv_video.so used as driver. It runs successfully with i965_drv_video.so on intel integrated GPU. https://bugs.freedesktop.org/show_bug.cgi?id=3D110850 related to this. I found by debugging that error return occurs in the vlVaDeriveImage functi= on. //vlVaDeriveImage function is in src/gallium/state_trackers/va/image.c if (surf->buffer->interlaced) return VA_STATUS_ERROR_OPERATION_FAILED; Is there a problem with interlaced video in Mesa? I don't know much about computer graphics and how Mesa works, but Intel driver has no problem about= it, so I think it's a bug. Sample C code attached to reproduce error. This code was written by referri= ng to the VLC's VAAPI source code. Compile command: gcc -o va va.c -lX11 -lva -lva-x11 -g Result on Radeon GPU system: libva info: VA-API version 1.5.0 libva info: va_getDriverName() returns 0 libva info: Trying to open /usr/lib/dri/radeonsi_drv_video.so libva info: Found init function __vaDriverInit_1_5 libva info: va_openDriver() returns 0 vendor string : Mesa Gallium driver 19.1.6 for Radeon RX 570 Series (POLARI= S10, DRM 3.32.0, 5.2.13-arch1-1-ARCH, LLVM 8.0.1) vaDeriveImage error : operation failed Result on Intel GPU system: libva info: VA-API version 1.5.0 libva info: va_getDriverName() returns 0 libva info: Trying to open /usr/lib/dri/i965_drv_video.so libva info: Found init function __vaDriverInit_1_3 libva info: va_openDriver() returns 0 vendor string : Intel i965 driver for Intel(R) Broadwell - 2.3.0 vaDeriveImage : success (no error) --=20 You are receiving this mail because: You are the assignee for the bug.= --15680920300.F4BbF.27327 Date: Tue, 10 Sep 2019 05:07:10 +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 111622
Summary VAAPI vaDeriveImage returns VA_STATUS_ERROR_OPERATION_FAILED
Product Mesa
Version 19.1
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority not set
Component Drivers/Gallium/radeonsi
Assignee dri-devel@lists.freedesktop.org
Reporter reject5514@naver.com
QA Contact dri-devel@lists.freedesktop.org

Created attachm=
ent 145311 [details]
Sample C code to reproduce error

Operating System: archlinux 5.2.13-arch1-1-ARCH
GPU: Radeon RX 570
Mesa version: 19.1.6
Libva version: 2.5.0

vaDeriveImage() VAAPI returns VA_STATUS_ERROR_OPERATION_FAILED when
radeonsi_drv_video.so used as driver. It runs successfully with
i965_drv_video.so on intel integrated GPU.

https://bugs.freedesktop.org/show_bug.=
cgi?id=3D110850 related to this.

I found by debugging that error return occurs in the vlVaDeriveImage functi=
on.
//vlVaDeriveImage function is in src/gallium/state_trackers/va/image.c
if (surf->buffer->interlaced)
     return VA_STATUS_ERROR_OPERATION_FAILED;

Is there a problem with interlaced video in Mesa? I don't know much about
computer graphics and how Mesa works, but Intel driver has no problem about=
 it,
so I think it's a bug.

Sample C code attached to reproduce error. This code was written by referri=
ng
to the VLC's VAAPI source code. Compile command: gcc -o va va.c -lX11 -lva
-lva-x11 -g

Result on Radeon GPU system:
libva info: VA-API version 1.5.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_5
libva info: va_openDriver() returns 0
vendor string : Mesa Gallium driver 19.1.6 for Radeon RX 570 Series (POLARI=
S10,
DRM 3.32.0, 5.2.13-arch1-1-ARCH, LLVM 8.0.1)
vaDeriveImage error : operation failed

Result on Intel GPU system:
libva info: VA-API version 1.5.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_3
libva info: va_openDriver() returns 0
vendor string : Intel i965 driver for Intel(R) Broadwell - 2.3.0

vaDeriveImage : success (no error)


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