select vaapi drm renderer

xrataj00 rataj28 at gmail.com
Wed Apr 25 19:53:00 UTC 2018


Hello,

I have a Debian testing with multiple GPUs (integrated Intel GPU and
discrete AMD graphic). Is there a way how to choose which device the
pipeline will use within one application? If it's not possible to do it on a
single pipeline is it possible to select the rendering device for the whole
app? I have tried it using DRI_PRIME=1 but without success, it is always
using integrated Intel. Like this:

export LIBVA_DRIVER_NAME=i965
vainfo
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'i965'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_0
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Kaby Lake - 2.0.0

export LIBVA_DRIVER_NAME=radeonsi
export DRI_PRIME=1
vainfo
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'radeonsi'
libva info: Trying to open
/usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva error: /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so init failed
libva info: va_openDriver() returns 2
vaInitialize failed with error code 2 (resource allocation failed),exit

When I manually select the card, it is working fine:
vainfo --display drm --device /dev/dri/renderD129
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'radeonsi'
libva info: Trying to open
/usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Mesa Gallium driver 18.2.0-devel for Radeon RX 550
Series (POLARIS12, DRM 3.23.0, 4.15.0-2-amd64, LLVM 6.0.0)

Any ideas how to choose the drm renderer? Thanks.

Tomas



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list