[pr-fix][startup][shaders] Skip stale legacy host pipeline libraries #192
Loading…
Reference in a new issue
No description provided.
Delete branch "tyr0nsur/Darner:codex/legacy-library-translator"
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?
Refs #188
Contributor role (optional)
What it changes
The translator check on main covers the adapter directory. When that directory has no library, the legacy root still opens an unmarked
host-pipelines.nextorhost-pipelines.bin. The same fallback runs when no adapter scope can be found.Apply the existing translator check before reading the legacy root. The root files remain available to older executables and saves still target the adapter directory when one is known.
DARNER_LIBRARY_KEEP_OLD=1still allows reads from the root, with the pending save taking precedence.How it was tested
b5719f2c8019190c5cd3d4532c4eb61a499fd69c, based onad070f073168c893a0afb00e0cd5d2ad35309ae0. The earlier main revisionf899d8cran 29 library tests, including the test that confirms its unmarked root fallback.cargo +1.98.1 test --locked --offline -j 2 -p darner-gpu --lib pipeline::library::tests:: -- --test-threads=1 --nocapturepassed 30 tests. Both legacy filenames were tested with absent and mismatched markers, with and without a save scope.cargo +1.98.1 clippy --locked --offline -p darner-gpu --all-targets --all-features -j 2 -- -D warningspassed.cargo +1.98.1 run --locked --offline -j 2 --quiet --package xtask -- policychecked 555 files. The staged variant checked the one changed file.git diff --check origin/main...HEADpassed.Checklist
Checked for overlap
34b0ba7in #188 for the separately reported legacy root path.I independently checked the same root guard with a temporary-directory CPU regression on
f899d8c. The test-only baseline failed because it selected an unmarked root library. With the local guard, the exact test passed across fresh processes with DARNER_LIBRARY_KEEP_OLD unset, 0, and 1. The fixture also checked pending-file precedence, matching markers, and preservation of the root files.One compatibility question: when adapter identification fails, rejecting the legacy library starts the run cold without a save destination. Is that the intended default for this case?
Yes, the default is intentionally cold for a legacy root library without a matching translator marker. When the adapter cannot be identified, main already has no save destination.
I checked this on Windows with an RTX 4060 at
b5719f2. The test passedNoneas the adapter scope and opened a 2,320-byte synthetic D3D12 library. The default started with an empty library (warm=false), and the override opened the legacy root library (warm=true). Both saves returned zero bytes with an eligible entry count, and the original root file was byte-identical. With a matching translator marker the default also opened the root library.The test simulated a missing adapter scope. It did not measure preload timing or exercise an actual adapter identification failure.