Skip to content

fix(linux): skip Vulkan Video on devices without a decode queue - #1412

Closed
TheWeaklessOne wants to merge 1 commit into
OpenCloudGaming:devfrom
TheWeaklessOne:fix/linux-vulkan-video-needs-decode-queue
Closed

TheWeaklessOne wants to merge 1 commit into
OpenCloudGaming:devfrom
TheWeaklessOne:fix/linux-vulkan-video-needs-decode-queue

Conversation

@TheWeaklessOne

Copy link
Copy Markdown

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_DECODE queue family. FFmpeg's Vulkan hwdevice setup fetches a queue that does not exist, and the gamescope WSI layer (vkroots) then aborts the whole application with Assertion 'obj' failed on the NULL VkQueue.

Both the probe and session start reach this, so there are two checks:

  • SharedVulkanDevice::create skips physical devices without a decode queue family and returns Unavailable if none is left.
  • FfmpegDecoder checks any_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-linux on clean dev with this change: 188 passed, including the new video_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.
  • Odin 2 Portal under gamescope: the startup abort is gone, the log reports 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

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>
@coderabbitai

coderabbitai Bot commented Nov 5, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 935d9f00-bf1c-4b47-a634-97db12ec099e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T20:25:30.797713Z c928898 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@TheWeaklessOne

Copy link
Copy Markdown
Author

Correction to the verification above: cargo test without features does not compile video/ffmpeg.rs, so that run did not cover the check in FfmpegDecoder. Rerun with the features the app build uses, cargo test --release -p opennow-streamer-platform-linux --features ffmpeg-bundled,vaapi, on clean dev with this change: 253 passed, against 252 on clean dev. The one failure, fixed_audio_output_never_falls_back_and_stays_isolated, also fails on clean dev on that device.

@TheWeaklessOne

Copy link
Copy Markdown
Author

Folded into #1470 together with the other Linux decode fixes, rebased on dev and retested on the Portal. Closing this one in favour of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant