Closed Igortorrente closed 1 year ago
You most likely have two VAAPI-capable GPUs on that system.
Provide the output of ls /dev/dri/
to confirm.
Try running:
LIBVA_DRIVER_NAME=i965 vainfo --display drm --device /dev/dri/renderD128
And report back.
Yeah, this is the case. I also have an AMD GPU in my system.
Your command works!
LIBVA_DRIVER_NAME=i965 vainfo --display drm --device /dev/dri/renderD128
libva info: VA-API version 1.16.0
libva info: User environment variable 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_8
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.16 (libva 2.12.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Desktop - 2.4.1
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264MultiviewHigh : VAEntrypointVLD
VAProfileH264MultiviewHigh : VAEntrypointEncSlice
VAProfileH264StereoHigh : VAEntrypointVLD
VAProfileH264StereoHigh : VAEntrypointEncSlice
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
VAProfileJPEGBaseline : VAEntrypointVLD
But should be possible to force a specific hardware in the vaapi, right?
Globally, no. Only the library driver variable can be set system wide.
Specific apps, such as ffmpeg, can pick select DRM devices and kernel drivers explicitly at launch.
On Sun, 11 Dec 2022, 00:45 Igortorrente, @.***> wrote:
Yeah, this is the case. I also have an AMD GPU in my system.
Your command works!
LIBVA_DRIVER_NAME=i965 vainfo --display drm --device /dev/dri/renderD128 libva info: VA-API version 1.16.0 libva info: User environment variable 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_8 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.16 (libva 2.12.0) vainfo: Driver version: Intel i965 driver for Intel(R) Haswell Desktop - 2.4.1 vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Simple : VAEntrypointEncSlice VAProfileMPEG2Main : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointEncSlice VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSlice VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSlice VAProfileH264MultiviewHigh : VAEntrypointVLD VAProfileH264MultiviewHigh : VAEntrypointEncSlice VAProfileH264StereoHigh : VAEntrypointVLD VAProfileH264StereoHigh : VAEntrypointEncSlice VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileNone : VAEntrypointVideoProc VAProfileJPEGBaseline : VAEntrypointVLD
But should be possible to force a specific hardware in the vaapi, right?
— Reply to this email directly, view it on GitHub https://github.com/intel/intel-vaapi-driver/issues/545#issuecomment-1345390689, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR7NB33GMHRF5JD3H6YGJDWMT2WZANCNFSM5NYNSAMQ . You are receiving this because you commented.Message ID: @.***>
Is it possible, in some way, to hide a device for a app that doesn't support explicit DRM device selection?
No, not to my knowledge.
A while back, there was a request for this feature in libva but the RFC never went through. Let me check for that thread.
On Sun, 11 Dec 2022 at 00:54, Igortorrente @.***> wrote:
Is it possible, in some way, to hide a device for a app that doesn't support explicit DRM device selection?
— Reply to this email directly, view it on GitHub https://github.com/intel/intel-vaapi-driver/issues/545#issuecomment-1345392027, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR7NBYE4YWYHOIDHZ3IDSTWMT3XPANCNFSM5NYNSAMQ . You are receiving this because you commented.Message ID: @.***>
Here it is https://github.com/intel/libva/issues/221
On Sun, 11 Dec 2022 at 10:00, Dennis Mungai @.***> wrote:
No, not to my knowledge.
A while back, there was a request for this feature in libva but the RFC never went through. Let me check for that thread.
On Sun, 11 Dec 2022 at 00:54, Igortorrente @.***> wrote:
Is it possible, in some way, to hide a device for a app that doesn't support explicit DRM device selection?
— Reply to this email directly, view it on GitHub https://github.com/intel/intel-vaapi-driver/issues/545#issuecomment-1345392027, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR7NBYE4YWYHOIDHZ3IDSTWMT3XPANCNFSM5NYNSAMQ . You are receiving this because you commented.Message ID: @.***>
No, not to my knowledge. A while back, there was a request for this feature in libva but the RFC never went through. Let me check for that thread.
Ohh, this is unfortunate :(
Here it is intel/libva#221
I will close this issue in favor of that one.
Hi,
I was debugging a issue related to the vaapi on a radeon gpu. And I decided to compare the behavior with an Intel gpu. To my surprise, the intel vaapi wasn't working at all. I couldn't find a solution anywhere, so I'm opening this issue.
Additional info:
Vaapi driver: i965-va-driver (2.4.1+dfsg1-1) Model name: Intel(R) Core(TM) i5-4440 CPU @ 3.10GHz