Repository navigation
fix(linux): size the VA-API placeholder context for V4L2-backed drivers - #1410
TheWeaklessOne wants to merge 1 commit into
Conversation
Qualcomm iris behind the msm VA-API driver (SteamOS ARM, Odin 2 Portal) rejects contexts and surfaces below its 96x96 decoder minimum, so the 16x16 probe surface reported a working H.264 decoder as unavailable. Raise INITIAL_CONTEXT_SIZE to 128, which still covers radeonsi's 64x64 minimum, and size the probe surface from the same constant. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Correction to the verification above: |
|
Folded into #1470 together with the other Linux decode fixes, rebased on |
On SteamOS ARM (AYN Odin 2 Portal, Snapdragon 8 Gen 2) VA-API goes through the msm driver, which opens the Qualcomm iris V4L2 decoder for every VA context. iris rejects anything below its 96x96 minimum, so the 16x16 probe surface made a working H.264 decoder look unavailable:
VA-API cannot create the initial H.264 decoder context: HW busy now(VA_STATUS_ERROR_HW_BUSYfrom the driver).This raises
INITIAL_CONTEXT_SIZEfrom 64 to 128, which still covers the radeonsi 64x64 minimum from #1301, and sizes the probe surface from the same constant instead of a hard-coded 16x16. The compile-time check now asserts 96.Verification on the Odin 2 Portal (msm VA driver from hashtagbasit/Zaviya#80):
-hwaccel vaapi, 90/90 frames of a 720p clip, no errors).cargo test -p opennow-streamer-core -p opennow-streamer-platform -p opennow-streamer-platform-linux: all pass exceptfixed_audio_output_never_falls_back_and_stays_isolated, which fails the same way without this change on that device (ALSA device enumeration returns -2).Not tested: AMD/radeonsi with 128x128 (only the minimum changes direction, the placeholder is still replaced at the first SPS).
🤖 Generated with Claude Code