window: explain why each GPU was rejected in device selection #910
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!910
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/910/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Aryansh1520 on GitHub · 2026-09-29 18:47 UTC · original
Aryansh1520:fix/explain-gpu-rejection→main· +113 −211 · 1 files · 3 commits · merged 2026-09-29 20:08 UTCRelated to #489
When no GPU meets the requirements, the fatal error now lists each rejected GPU and the reasons encountered during selection. Missing-extension diagnostics name every missing extension, and storage-format diagnostics identify storage-image usage.
The rejection helper logs and appends directly to the error report. Shared feature and format checks remove repeated conditions and messages without a reason vector or separate report formatter.
Device requirements, check order, selected-GPU filtering, and discrete-GPU preference are unchanged. macOS retains its warning-only feature checks, and both storage-format fallbacks remain intact. Later checks still stop after earlier rejections, so the report lists encountered reasons rather than every unsupported capability.
Validation:
%/brace characters in GPU names. The comparisons account only for intended report boundary newlines and the four clarified storage messages; separate assertions verify the new wording.git diff --checkpassed.@coderabbitai[bot] on GitHub · 2026-09-29 18:51 UTC · original · edited 2026-09-29 20:08 UTC
Navigate logical layers of code changes, visualize relationships, and explore their blast radius.
📝 Walkthrough
Walkthrough
Vulkan physical-device selection now records rejection reasons for unsuitable GPUs. The checks include API version, queues, features, extensions, surface usage, formats, and anisotropy. Existing macOS exceptions for three unsupported features remain non-rejecting.
CreateVulkanpasses the report to device selection and includes it in the fatal error when no suitable device is found.Suggested reviewers:
nmzikPriority: ⬇️ Low
Change: Refactor
Merge Risk: 🔵 Low · up to
99748A rejected GPU may show a misleading reason in the fatal error. Correct the label before merging if practical; the reported issue does not block device selection.
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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
Comment
@coderabbitai helpto get the list of available commands.@ -465,1 +363,4 @@!CheckFormat(device, vk::Format::eB8G8R8A8Srgb, true, storage_features)) {LOGF("Format vk::Format::eB8G8R8A8Srgb cannot be used as storage image\n");check_format(vk::Format::eB8G8R8A8Unorm, storage_features, "storage image");}@coderabbitai[bot] on GitHub · 2026-09-29 20:00 UTC · original · edited 2026-09-29 20:08 UTC
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
The storage fallback reports the wrong usage.
The fallback checks
storage_features, which areeStorageImage | eTransferDst. The recorded reason still says "cannot be used as texture". A user can then read the report as a sampled-texture failure when the actual failure is storage-image support. Pass"storage image"as the usage in both fallback calls.Proposed fix
📝 Committable suggestion
✅ Addressed in commit
e51b3b2@coderabbitai[bot] on GitHub · 2026-09-29 20:00 UTC · original · reviewed
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
211f4421-cc1f-4ed1-893c-7e3b1383ba15📥 Commits
Reviewing files that changed from the base of the PR and between
42e4659e12and99748e1c70.📒 Files selected for processing (1)
src/graphics/presentation/window/vulkanWindow.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.