Repository navigation
fix(linux): skip Vulkan Video on devices without a decode queue - #1412
TheWeaklessOne wants to merge 1 commit into
Conversation
Turnip (Adreno 740) has no VIDEO_DECODE queue family. FFmpeg's Vulkan hwdevice setup fetched a queue that does not exist, and the gamescope WSI layer then aborted the whole application on the NULL VkQueue at startup. Reject such devices in SharedVulkanDevice::create and check for a decode queue before FfmpegDecoder touches Vulkan. 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 a device without a Vulkan video decode queue, OpenNOW aborts at startup under gamescope. Turnip on the Adreno 740 (AYN Odin 2 Portal, SteamOS ARM) has no
VIDEO_DECODEqueue family. FFmpeg's Vulkan hwdevice setup fetches a queue that does not exist, and the gamescope WSI layer (vkroots) then aborts the whole application withAssertion 'obj' failedon the NULLVkQueue.Both the probe and session start reach this, so there are two checks:
SharedVulkanDevice::createskips physical devices without a decode queue family and returnsUnavailableif none is left.FfmpegDecoderchecksany_video_decode_queue()before it creates a Vulkan hwdevice. The result is cached for the process.Decoder selection then moves on to the next backend (VA-API on that device).
Verification:
cargo test -p opennow-streamer-platform-linuxon cleandevwith this change: 188 passed, including the newvideo_decode_requires_a_decode_queue_family. One failure,fixed_audio_output_never_falls_back_and_stays_isolated, is unrelated: ALSA device enumeration returns -2 on that device, also without this change.no Vulkan device exposes a video decode queue (Turnip Adreno (TM) 740), and streams use VA-API.Not tested on a GPU that does have a decode queue; there the new checks should pass without changing device selection.
🤖 Generated with Claude Code