Skip to content

frontend: Say which Quick Sync runtime an Intel GPU is missing (#1925) - #1962

Merged
zackees merged 2 commits into
masterfrom
feat/1925-qsv-diagnose
Oct 23, 2026
Merged

zackees merged 2 commits into
masterfrom
feat/1925-qsv-diagnose

Conversation

@zackees

@zackees zackees commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Refs #1925. This is PR 1 of 2, the diagnosis core. PR 2 wires it into CheckHardwareEncoder()'s NO_QSV_DEVICE branch, adds the EncoderMissing.QSV.* text and the log line, and includes a run in the real app.

profile_qsv_diagnose() sits beside profile_vaapi_diagnose() and uses the same fake-able host.

  1. Find the first Intel render node; if there is none, report no Intel GPU (never a QSV prompt).
  2. Classify its PCI device id with tables from Mesa include/pci_ids/{iris,crocus}_pci_ids.h @ f6bda4756e55:
    • BDW..ICL/EHL need the Media SDK runtime (libmfxhw64.so.1).
    • TGL/RKL/DG1 accept either runtime.
    • Later GPUs, and any Intel id the table doesn't know, need the oneVPL GPU runtime (libmfx-gen.so.1.2).
    • crocus GPUs (Haswell and older, BYT, CHV) are unsupported, so the result never carries an install command.
  3. Check render access, the runtime library and the iHD driver, in that order.

Package names were checked against the package indexes: Debian/Ubuntu libmfx1 / libmfx-gen1.2, Fedora intel-mediasdk / intel-vpl-gpu-rt, Arch intel-media-sdk / vpl-gpu-rt. The library SONAMEs were checked against the Debian, Fedora and Arch file lists.

One change from the claim: "either runtime counts" applies only to TGL/RKL/DG1. The oneVPL runtime can't drive Skylake, so on a Skylake machine only the Media SDK counts (test_qsv_skylake_with_only_onevpl).

  • RED 1651bdf: stub plus test/cmocka/test_profile_qsv.c (new file; test_profile_activate.c is unchanged). The local Tier 2 lane did not get that far: it stopped on an unrelated libobs/obs-encoder.c.h compile error in my environment. A host build against the stub fails: 12 FAILED TEST(S).
  • GREEN b8d433f: the same host build reports [ PASSED ] 12 test(s). ./lint: ok. PR CI's Tier 2 is the authoritative run.

Tier 1 and Tier 3 don't apply (new frontend C code with no Rust port and no C original). Tier 4 waits for PR 2's run in the app. No features.md line until PR 2, which makes the change visible.

test_profile_qsv drives profile_qsv_diagnose() through the fake host for
each cause: no Intel GPU, a GPU too old for Quick Sync, no render access,
the runtime its generation needs is missing (Media SDK for Skylake, oneVPL
for Arc, per distribution), and the iHD driver missing. The stub reports
every GPU as available, so all but the available cases fail.
profile_qsv_diagnose() finds the first Intel render node and classifies its
PCI device id with tables from Mesa's iris/crocus pci_ids lists
(f6bda475): Broadwell through Ice Lake need the Media SDK runtime
(libmfxhw64.so.1), Tiger Lake and newer the oneVPL GPU runtime
(libmfx-gen.so.1.2; Tiger Lake, Rocket Lake and DG1 work with either),
and pre-Broadwell GPUs have no Quick Sync on Linux. It then checks render
access, the runtime and the iHD driver, and names the package and
install command for the distribution (package names checked against the
Debian, Fedora and Arch indexes).
@zackees
zackees marked this pull request as ready for review October 23, 2026 18:47
@zackees
zackees added this pull request to the merge queue Oct 23, 2026
Merged via the queue into master with commit e288a22 Oct 23, 2026
31 checks passed
@zackees
zackees deleted the feat/1925-qsv-diagnose branch October 26, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant