Repository navigation
vk: log the adapters rejected during device selection - #426
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis 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. |
kvark
approved these changes
Nov 22, 2026
kvark
enabled auto-merge (rebase)
November 22, 2026 15:38
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.
Related to #111.
When no adapter passes
inspect_adapter,Context::initreturnedNoSupportedDeviceFoundand nothing in the log said which adapter was rejected or why. The reason string returned byinspect_adapterwas dropped by.ok()in the normal path and bymap_err(|_| ..)in the OpenXR path.This logs
Rejected adapter {name:?}: {reason}at warn level in both paths.enumerate()is unchanged, since it already reports the reason throughDeviceReportStatus::Rejected.Checked in a
rust:latestLinux container with Mesa lavapipe, asking for a device ID that does not exist (RUST_LOG=warn,blade_graphics=info):Before:
After:
cargo test -p blade-graphics,cargo clippy -p blade-graphicsandcargo fmt --checkpass in the same container. The OpenXR branch only compiles here; I did not run it.One side effect: a device that is rejected while another one is accepted also logs a warning, since the search stops at the first accepted adapter. Say if you would rather have this at
info.