fix(agc): skip devices without required BDA features #4847
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4847"
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?
Imported from boykopovar/AnyPS5. Originally posted by Isrrael101 on 2026-10-12T23:53:09Z.
What
The GPU selector accepts a discrete adapter with graphics, compute and presentation queues before checking its required BDA features. WSL's Dozen adapter for an RTX 3060 is selected despite lacking
VK_KHR_8bit_storage, so device initialization fails instead of using the available compatible lavapipe device.Probe the existing byte-storage and buffer-device-address requirements before accepting each candidate. Log the rejection reason and continue selecting among compatible adapters. Explicit
ANYPS5_GPUfiltering still applies. Document the selection requirements.Tested
Ubuntu 26.04 under WSL, Intel i7-11370H, Mesa 26.2.4. Full relinker and patched system-library build completed.
agc_driver_device_selectionpassed with Dozen and lavapipe both installed; the unsupported NVIDIA and Intel Dozen adapters were skipped.agc_driver_bda_devicepassed withVK_DRIVER_FILES=/usr/share/vulkan/icd.d/lvp_icd.json(the default adapter skips this test because it lacks byte storage)._umtx_op, guest module directories and Intel conversion passed.git diff --checkpassed.Checklist
main; no other open PR implements the same functionsImported from boykopovar/AnyPS5. Originally posted by BunnyFl on 2026-11-02T21:36:13Z.
Review: APPROVED
Reads right.
QueryBdaByteFeaturesandQueryBdaFeaturesrefuse a missing extension or feature throughGraphics::Require, which throwsstd::runtime_error(Graphics/include/Context.hpp:31-41), so the newcatchin the selection loop sees exactly those refusals and moves to the next device. The device chosen is then queried again with the same two calls (Execution/src/VulkanDevice.cpp:1061-1062at this head). Those calls throw on the same conditions there (VulkanDevice.cpp:1061-1062), so a device skipped by the new check would have failed that setup anyway and no previously working GPU is lost. WithANYPS5_GPUnaming only an unsupported device, selection still ends in the "no usable device whose name contains ANYPS5_GPU=..." error (:1027), after the skip reason is logged.Tested on Windows 11, WinLibs GCC 15.2.0, with this head merged onto
main:agc_driver_device_selection,agc_driver_bda_deviceandagc_driver_bda_device_selection_cpupass, nothing skipped. The ctest output of this run has no "Skipping physical device" line. The Dozen case itself wasn't reproduced here.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-23T03:08:14Z.
Review: APPROVED
Reviewed — looks good
The reviewed change at
b05e5cf8ecf4f410750c38a6f281f273babb816dchecks BDA and byte-storage requirements before adapter selection, and the inspected code supports merging.What I ran
No commands or tests were run. I read the supplied diff and targeted code through
repo_read.py.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The PR's reported builds, tests, and game startup runs were not independently verified. No negative control was run. Files read:
description.md,commits.md,manifest.json,diff.patch,core/libs/prx/libSceAgcDriver/Execution/src/VulkanDevice.cpp(targeted ranges),core/libs/prx/libSceAgcDriver/Execution/src/BdaFeatures.cpp, anddocs/user/USAGE.md(targeted range). No changed files were excluded; both files markedreviewedin the manifest were read.To get this to a good state
Nothing is required.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.