Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

iHD_drv_video can't coexist with egl

johnson1
Beginner
500 Views

device: intel Kaby Lake mobile processor
software: libdrm, libva, iHD_drv_video, intel media sdk, mesa, ubuntu-18.10 console
egl initialize with gbm
libva initialize with drm

1 libva decode ok when not render with egl:
libva info: VA-API version 1.2.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_2
libva info: va_openDriver() returns 0
2019-02-04 16:42:31:490 VideoDecodePipe::decodeFrame status:-10!
2019-02-04 16:42:31:491 VideoDecodePipe::decodeFrame status:0!
2019-02-04 16:42:31:533 VideoDecodePipe::decodeFrame status:0!
2019-02-04 16:42:31:575 VideoDecodePipe::decodeFrame status:0!
2019-02-04 16:42:31:616 VideoDecodePipe::decodeFrame status:0!
2019-02-04 16:42:31:657 VideoDecodePipe::decodeFrame status:0!
2019-02-04 16:42:31:700 VideoDecodePipe::decodeFrame status:0!
2019-02-04 16:42:31:742 VideoDecodePipe::decodeFrame status:0!
2019-02-04 16:42:31:783 VideoDecodePipe::decodeFrame status:0!
2019-02-04 16:42:31:824 VideoDecodePipe::decodeFrame status:0!
2019-02-04 16:42:31:865 VideoDecodePipe::decodeFrame status:0!
2019-02-04 16:42:31:907 VideoDecodePipe::decodeFrame status:0!
2019-02-04 16:42:31:949 VideoDecodePipe::decodeFrame status:0!
......

2 libva decode failed when render with egl:
libva info: VA-API version 1.2.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_2
libva info: va_openDriver() returns 0
2019-02-04 16:45:48:596 EglDrm::initShader end: 0
2019-02-04 16:45:48:600 VideoDecodePipe::decodeFrame status:-10!
2019-02-04 16:45:48:601 VideoDecodePipe::decodeFrame status:0!
2019-02-04 16:45:48:623 VideoDecodePipe::decodeFrame status:0!
2019-02-04 16:45:48:666 VideoDecodePipe::decodeFrame status:0!
2019-02-04 16:45:48:707 VideoDecodePipe::decodeFrame status:0!
2019-02-04 16:45:48:749 VideoDecodePipe::decodeFrame status:0!
2019-02-04 16:45:48:750 EglDrm::render l,t,r,b(-0.895833,0.814815,0.208333,-0.370370) render ok
2019-02-04 16:45:48:947 EglDrm::render l,t,r,b(-0.895833,0.814815,0.208333,-0.370370) render ok
2019-02-04 16:45:48:964 VideoDecodePipe::decodeFrame status:-17!
2019-02-04 16:45:48:968 VideoDecodePipe::decodeFrame status:-17!
2019-02-04 16:45:48:972 VideoDecodePipe::decodeFrame status:-17!
2019-02-04 16:45:48:976 VideoDecodePipe::decodeFrame status:-17!
2019-02-04 16:45:48:980 VideoDecodePipe::decodeFrame status:-17!
2019-02-04 16:45:48:998 VideoDecodePipe::decodeFrame status:-17!
......

3 failed at media_driver/linux/common/os/libdrm/mos_bufmgr.c function: do_exec2 line 3426 ret = drmIoctl(bufmgr_gem->fd,
DRM_IOCTL_I915_GEM_EXECBUFFER2,
&execbuf);
ret is -1, errno is EINVAL

0 Kudos
0 Replies
Reply