Skip to content

libva: va_openDriver() returns -1 on host when attempting to stream games #13380

Description

@mkopec

Your system information

  • Steam client version (build number or date): 1782952760
  • Distribution (e.g. Ubuntu): Arch
  • Opted into Steam client beta?: [Yes/No] Yes
  • Have you checked for system updates?: [Yes/No] Yes
  • Steam Logs: steam-logs.tar.gz
  • GPU: Radeon 9070 XT

Please describe your issue in as much detail as possible:

Describe what you expected should happen and what did happen. Please link any large code pastes as a Github Gist

When attempting to stream games from a Linux host, with hardware encoding enabled, steam outputs the following and falls back to software x264 encoding:

CGameStreamVideoStageVAAPI: Reinitializing 2560x1440 at 40000 Kbit/s and 60.00 FPS with quality -1
ffmpeg verbose: libva: VA-API version 1.22.0
ffmpeg verbose: libva: Trying to open /usr/lib32/dri/radeonsi_drv_video.so
ffmpeg error: libva: /usr/lib32/dri/radeonsi_drv_video.so has no function __vaDriverInit_1_0
ffmpeg verbose: libva: va_openDriver() returns -1
ffmpeg error: Failed to initialise VAAPI connection: -1 (unknown libva error).
CGameStreamVideoStageVAAPI: Failed to create device context: Input/output error

This is likely because Arch updated libva recently, and does not expose the vaDriverInit_1_22 entrypoint anymore:

michal@aether ~> nm -D /usr/lib/dri/radeonsi_drv_video.so | grep vaDriverInit
00000000000cbc60 T __vaDriverInit_1_23@@libgallium-26.1.3-arch3.1.so

It would seem that libva in steam linux runtime needs updating. I tried SteamRT3 on the streaming host, but then I get authentication errors when lauching a stream, but that's a separate issue.

Steps for reproducing this issue:

  1. Run Steam on Arch
  2. Try to initiate stream from Steam Deck

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions