[pr-fix] DARNER_ROOT_SRV_DIRECT=0 is off: it chose the unbounded root descriptors #413
Loading…
Reference in a new issue
No description provided.
Delete branch "iboom72/fix/root-srv-direct-zero"
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?
What it changes
bounded_root_srvs()(crates/darner-gpu/src/pipeline/host.rs:409) testedvar_os("DARNER_ROOT_SRV_DIRECT").is_none().DARNER_ROOT_SRV_DIRECT=0(typed to be explicit, or left from comparing two runs) turned the switch on: the title's root SRVs went back to root descriptors, the path whose reads past a buffer's end removed the device (the function's own doc, which cites an upstream pull request numbered 493, which is not number 493 on this forge). The README row says "1 = on, off (not set)".It is read through
crate::switch::onnow: on when set and not0, the same ruleswitch.rsrecords forDARNER_D3D12_WARP=0. Unset and1behave as before. One line.How it was tested
b89f06dfcargo clippy -p darner-gpu --all-targets --locked -- -D warnings: clean.cargo test -p darner-gpu --lib --locked switch: 27 passed, 0 failed.cargo test -p darner-gpu --lib --locked(all 1,837 unit tests of the crate), 20 runs: 9 passed all 1,756 that are not ignored; 11 failed one to three tests. Failed:watch::tests::ask_once_by_res_splits_reservations_without_refusals7 times;gpu_owned::tests::concurrent_faults_on_same_block_serialize_single_readbackandwatch::watch_pipe_epoch_tests::ask_once_delta_reask_direct_carves_refreshes_and_updates_page_epochstwice each; four other tests inwatchandshadow::wide_testsonce each. All of these are concurrency tests of the write watch, GPU-owned memory and the wide copy; none reads anything this PR changes.mainitself was not run. Another branch from the samemaincommit (f3840d73), without this change, fails the same way (6 of 10 runs, and one more hung), so the tests look flaky onmain. Open PRs #261 (thegpu_ownedtest of eight faults) and #262 (arefresh_teststest and the watch journal's lock) are already about tests of this family failing by chance.switch::onis covered byswitch.rs's own tests.darner-gpuwith all targets, and the unit tests named above. Not run: clippy over the whole workspace, clippy with--all-features,cargo test --workspace.OnceLock). Nobody is known to have set=0; no launcher, menu orplay.rspath writes it.Checklist
=0) is not a setting any launcher writes.main.docs/asset-policy.md.Checked for overlap
pipeline/host.rsat line 436, 27 lines below this one; it does not changebounded_root_srvs. #32, #39, #40, #41, #46 and #349 change the file elsewhere.DARNER_ROOT_SRV_DIRECTorbounded_root_srvs. No open PR's diff names either (195 open PRs checked on 2026-12-04: 161 by their full diff, and the 70 opened or updated since then by their file lists and, where a file matched, by diff; #48 at an older head because its current one could not be fetched.)🤖 Generated with Claude Code
0is off where it was read as set or not b89f06df9bView 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.