User Tools

Site Tools


ubuntu:gpu:va-api:override_the_driver_for_va-api

Ubuntu - GPU - VA-API - Override the driver for VA-API

The driver for VA-API can be overridden by using the LIBVA_DRIVER_NAME environment variable.

  • AMD:
    • For AMDGPU driver use radeonsi.
  • Intel graphics:
    • For libva-intel-driver use i965.
    • For intel-media-driver use iHD.
  • NVIDIA:
    • For Nouveau use nouveau.
    • For NVIDIA VDPAU use vdpau.
    • For NVIDIA NVDEC use nvidia.

Example

unset LIBVA_DRIVER_NAME
export LIBVA_DRIVER_NAME=radeonsi

This next step is optional, and only needed if the vainfo command still does not work.

unset LIBVA_DRIVERS_PATH
export LIBVA_DRIVERS_PATH=/usr/lib/x86_64-linux-gnu/dri/

NOTE: If that path does not allow this to work, then often the following path will:

unset LIBVA_DRIVERS_PATH
export LIBVA_DRIVERS_PATH=/usr/lib/dri/

Still not working

Try,

export LIBVA_DRI3_DISABLE=1
ubuntu/gpu/va-api/override_the_driver_for_va-api.txt · Last modified: 2023/06/07 18:40 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki