Reuse sibling hardware adapter pipeline library when DeviceId is spoofed (MFG Unlocker) #486
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
hle
input
INTEL
lighting
linux-proton
memory
MULDER
needs-info
needs-logs
needs-rebase
NVIDIA
performance
post-merge
pr-diagnostics
pr-docs
pre-merge
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
relevance
high
relevance
low
relevance
medium
relevance
very-high
rendering
report
roadmap-proposal
saves
series-s
shaders
startup
status
blocked-by-rework
status
needs-test-report
status
needs-triage
status
ready-for-review
status
stale
status
superseded
status
wip
tools
ui
upstream
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TrustNo1/Darner!486
Loading…
Reference in a new issue
No description provided.
Delete branch "feng/Darner:pipeline-library-sibling-adapter"
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?
Contributor role (optional)
What it changes
pipeline::librarykeys each adapter cache folder byhardware-{VendorId:04x}-{DeviceId:04x}-{SubSysId:08x}-{Revision:02x}. When a DXGIDeviceIdspoofer (such as MFG Unlocker spoofing e.g.1e07->2684) is toggled on or off, Darner looks in a new adapter directory with nohost-pipelines.binand rebuilds the entire pipeline library from scratch even though the physical GPU, driver,(VendorId, SubSysId, Revision), and translator are identical.This updates
crates/darner-gpu/src/pipeline/library.rsso that when the current hardware adapter directory has no freshhost-pipelines.binfor the current translator, Darner scans siblinghardware-{vendor}-*-{subsys}-{rev}directories matching the same(VendorId, SubSysId, Revision)(case-insensitive hex for NTFS, supporting directories/junctions, skipping software adapters and stale translators), sorts candidates deterministically (largest first), and probes each candidate read-only against D3D12CreatePipelineLibraryuntil one succeeds. Writes and compactions still target only the active adapter directory, leaving the sibling cache untouched.How it was tested
8a30f9f(rebased cleanly ontoorigin/maind91d8e4)cargo xtask policy-> PASS (565 files ok)cargo clippy --workspace --all-targets --locked -- -D warnings-> PASS (0 warnings)cargo clippy --workspace --all-targets --all-features --locked -- -D warnings-> PASS (0 warnings)cargo test -p darner-gpu --lib --locked pipeline::library-> PASS (36/36, including live D3D12hardware_library_reopens_from_sibling_device_id_on_live_deviceon RTX 2080 Ti plus unit tests covering multi-candidate fallback, NTFS hex case,NEXT_FILEdir fallback, stale translator skipping, and read-only sibling protection)DeviceIdcache directory has no freshhost-pipelines.binwhile a siblinghardware-{vendor}-*-{subsys}-{rev}directory with a matching translator does (typical when toggling MFG Unlocker). No change when the active adapter directory already has a fresh library or no matching sibling exists.DeviceIdchanges. Verified via live D3D12 testhardware_library_reopens_from_sibling_device_id_on_live_deviceconfirmingCreatePipelineLibraryopens the sibling blob directly on the live RTX 2080 Ti device.cargo clippy --workspace --all-targets --locked -- -D warnings): PASS on8a30f9fcargo clippy --workspace --all-targets --all-features --locked -- -D warnings): PASS on8a30f9fcargo test --workspace --locked):pipeline::library(36/36) passed on8a30f9f; full workspace test run was not completed on this machine due to pre-existing unrelateddarner-shaderoracle64::legacy_mul_forms_are_exactdebug-mode hang (>20 min) anddarner-gpuwatch::testsparallel flakes (related to #262).DeviceId, where the existing primary directory was used as expected).DeviceIdspoofing; software (WARP) adapters are explicitly excluded from sibling matching.DeviceIdwas not separately re-run on8a30f9f(MFG Unlocker was disabled on this rig in favour ofdlssg_for_sm86); the live D3D12CreatePipelineLibraryreopen from a siblingDeviceIddirectory is directly covered byhardware_library_reopens_from_sibling_device_id_on_live_device.Checklist
DeviceId(non-fallback path) and verified the fallback reopen path directly on the live D3D12 device viahardware_library_reopens_from_sibling_device_id_on_live_device; did not re-run a full game session with MFG Unlocker enabled.main.docs/asset-policy.md.Checked for overlap
crates/darner-gpu/src/pipeline/library.rsfor unrelated issues)Rebased onto latest
main(c8258f9/v2026.12.04.01) as33eee64, resolving the conflict incrates/darner-gpu/src/pipeline/library.rswhile keeping upstream'sread_pending_or_primaryhandling inread_legacy.Re-verified on
33eee64:cargo xtask policy --staged(1 files ok)cargo clippy --workspace --all-targets --locked -- -D warnings(pass, 0 warnings)cargo clippy --workspace --all-targets --all-features --locked -- -D warnings(pass, 0 warnings)cargo test -p darner-gpu --lib --locked pipeline::library(40/40 passed, including the 4 new empty-pending-file tests and live D3D12hardware_library_reopens_from_sibling_device_id_on_live_device)8a30f9fba4to33eee644bd[pr-fix][startup][shaders] Reuse sibling hardware adapter pipeline library when DeviceId is spoofed (MFG Unlocker)to Reuse sibling hardware adapter pipeline library when DeviceId is spoofed (MFG Unlocker)Test needed — commit
33eee644; what to check:pipeline::librarykeys each adapter cache folder byhardware-{VendorId:04x}-{DeviceId:04x}-{SubSysId:08x}-{Revision:02x}. When a DXGIDeviceIdspoofer (such as MFG Unlocker spoofing e.g.1e07->2684) is toggled on or off, Darner looks in a new adapter directory with nohost-pipelines.binand rebuilds the entire pipeline library from scratch even though the physical GPU, driver,(VendorId, SubSysId, Revision), and translator are identical.This updates
crates/darner-gpu/src/pipeline/library.rsso that when the current hardware adapter directory has no freshhost-pipelines.binfor the current translator, Darner scans siblinghardware-{vendor}-*-{subsys}-{rev}directories matching the same(VendorId, SubSysId, Revision)(case-insensitive hex for NTFS, supporting directories/junctions, skipping software adapters and stale translators), sorts candidates deterministically (largest first), and probes each candidate read-only against D3D12CreatePipelineLibraryuntil one succeeds. Writes and compactions still target only the active adapter directory, leaving the sibling cache untouched.Evidence to post: card + driver, settings, commit tested, before/after (switch off vs on, two runs each), fps median and p99, and one line saying you looked at the picture.
Reply
testingto take this run; it's free again after 24 h with no results.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.