使用 VA-API 的硬件加速找不到合适的驱动程序

使用 VA-API 的硬件加速找不到合适的驱动程序

我使用的是 Debian Sid,内核 5.19.0-1-amd64。我的机器是 ThinkPad T14 Gen 3,带有集成图形控制器和 NVIDIA GPU;这是结果lshw -c display

  *-display                 
       description: VGA compatible controller
       product: Alder Lake-P Integrated Graphics Controller
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       logical name: /dev/fb0
       version: 0c
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom fb
       configuration: depth=32 driver=i915 latency=0 mode=3840x2160 resolution=3840,2400 visual=truecolor xres=3840 yres=2160
       resources: iomemory:600-5ff iomemory:400-3ff irq:178 memory:6052000000-6052ffffff memory:4000000000-400fffffff ioport:3000(size=64) memory:c0000-dffff memory:4010000000-4016ffffff memory:4020000000-40ffffffff
  *-display
       description: 3D controller
       product: TU117M [GeForce MX550]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:03:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: iomemory:600-5ff iomemory:600-5ff irq:176 memory:bd000000-bdffffff memory:6040000000-604fffffff memory:6050000000-6051ffffff ioport:2000(size=128)

我正在尝试让硬件加速发挥作用(主要是在 Chrome 中,以便 Google Meet 和 Zoom Web 顺利运行)。问题似乎是 VA-API(版本 1.15.0)似乎没有连接到任何一张卡,无论我使用什么环境参数。

root@cyclone:/# vainfo
libva info: VA-API version 1.15.0
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
vaInitialize failed with error code -1 (unknown libva error),exit

root@cyclone:/# LIBVA_DRIVER_NAME=iHD vainfo
libva info: VA-API version 1.15.0
libva info: User environment variable 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_15
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
Assuming 131072kB available aperture size.
May lead to reduced performance or incorrect rendering.
get chip id failed: -1 [22]
param: 4, val: 0
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
libva info: va_openDriver() returns 18
vaInitialize failed with error code 18 (invalid parameter),exit

root@cyclone:/# LIBVA_DRIVER_NAME=nvidia vainfo
libva info: VA-API version 1.15.0
libva info: User environment variable requested driver 'nvidia'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_1_0
libva error: /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so init failed
libva info: va_openDriver() returns 1
vaInitialize failed with error code 1 (operation failed),exit

无论我安装 Intel 硬件的免费驱动程序(软件包intel-media-va-driver)还是非免费驱动程序(intel-media-va-driver-non-free),问题都是一样的。对于 NVIDIA 驱动程序,我尝试安装推荐的软件包nvidia-detect(很简单nvidia-driver)以及另一个建议的软件包(nvidia-testla-470-driver),两者都以相同的方式失败。我还尝试将 Xorg 配置修改为仅使用 NVIDIA GPU,但这并没有改变任何事情。

我不知道它是否相关,但intel_gpu_top似乎也失败并出现一条模糊的错误消息:

root@cyclone:/# intel_gpu_top
intel_gpu_top: ../tools/intel_gpu_top.c:1910: init_engine_classes: Assertion `max >= 0' failed.
Aborted

我的下一步应该是什么?

相关内容