Repository navigation
obs-qsv11: Log the Linux adapter probe and replay it in a test - #1879
Merged
Merged
Conversation
qsv-probe.c.h holds the decision obs-qsv11 makes from what VA-API reports for each render node, without VA-API, VPL or libobs, in its own unity group. test_qsv_probe replays "QSV probe:" log lines (a provisional HD 530 fixture) through it. The functions are stubs, so the round trip and replay cases fail. Refs #1863
check_adapter() collects what VA-API reports for each render node into qsv_probe_facts, logs it as a "QSV probe:" line and lets qsv_probe_adapter_from_facts() decide: not opened or the legacy i965 driver is no adapter, an Intel driver is. obs_module_load() registers the codecs qsv_probe_codecs_from_adapters() returns. The decisions are unchanged; test_qsv_probe now passes. Refs #1863
zackees
marked this pull request as ready for review
October 23, 2026 03:36
Member
Author
|
Coordinator: Fast Gate failed only on clang-format ( |
Member
Author
|
CI evidence: Tier 2 ran |
This was referenced Oct 23, 2026
This was referenced Oct 23, 2026
chriscoveries
pushed a commit
to chriscoveries/obsrust-fork
that referenced
this pull request
Oct 23, 2026
* ci: RED test/cmocka changes must run the obs-build graph contract (obs-rust#1891) * ci: run obs-build tests when test/cmocka changes (obs-rust#1891) The native test graph contract in obs-build counts test/cmocka targets, but rust_scope selected nothing for test/cmocka/, so obs-rust#1879 and obs-rust#1883 merged graph additions that left master failing the contract.
chriscoveries
pushed a commit
to chriscoveries/obsrust-fork
that referenced
this pull request
Oct 23, 2026
…rust#1883 (obs-rust#1896) native_test_graph_replaces_legacy_utility_definitions expects 139 core tests, but master has 141: obs-rust#1879 (test_qsv_probe) and obs-rust#1883 each added one, and PR CI did not run this obs-build test for test/cmocka-only changes (obs-rust#1891, fixed by obs-rust#1892). Master and every merge group running the Fast Gate test-diff lane fail with left: 141, right: 139.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #1863 (part of #1866). This is step 1 of #1863; the AppImage keeps
qsvoff until the hardware run (see the claim comment for the findings and the plan).What changes. obs-qsv11's Linux probe now collects what VA-API reports for each render node (
qsv_probe_facts), logs it as one line, and decides from those facts inplugins/obs-qsv11/qsv-probe.c.h. That file has no VA-API, VPL or libobs, and gets its own unity group (BUILD.md) so a C test can build it alone:obs_module_load()registers the codecsqsv_probe_codecs_from_adapters()returns. The decisions are the same as before: a node that didn't open, or one on the legacy i965 driver (same warning), is no adapter; any Intel driver is; AVC/HEVC/AV1 are the union over Intel adapters.Why. We have no Intel GPU in CI.
test_qsv_probereplaysQSV probe:lines from a real log through the same decision.test/cmocka/fixtures/qsv-probe-hd530.his provisional (written from the #1720 reporter's vainfo) until their hardware run on #1863 replaces it verbatim. After that, a change to what the probe reads or decides fails the test, which means the hardware run has to be repeated.RED f907c0b: stubs;
test_format_parse_round_tripfails ('' != 'node=/dev/dri/renderD129 …').GREEN 140e024: all four cases pass (round trip, HD 530 → AVC+HEVC without AV1, i965/unopened/AMD rejected or not Intel, iGPU+Arc union).
CI cost. One cmocka executable with two small sources, no libobs, no VPL and no GPU; it runs in milliseconds inside the existing Tier 2 lane. No new lane. The plugin change gets the existing touched-plugin Linux build.
Local evidence. The host has no libva/VPL headers, and
./unittest's Tier 2 lane fails to linklibobs.so.30here for an unrelated reason, so I ran the cases through a scratch harness that includes the real test file and probe unity group (gcc-Wall -Wextra): RED fails as above and GREEN passes. The C++ probe change compiles only in CI here.Tiers: no Rust and no C original for the probe file (Tier 1/3 don't apply); Tier 2 is
test_qsv_probe.