Fix slot_evict busy race, highest_shader_model adapter reuse, card_steps test isolation, and launcher scripts #2486
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2486
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2486"
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?
@eljoviz on GitHub · 2026-11-29 13:31 UTC · original
eljoviz:fix/slot-evict-busy-shader-model-and-launchers→main· +24 −9 · 6 files · 1 commits · merged 2026-11-30 14:12 UTCSummary
This PR fixes several small correctness, concurrency, test-isolation, and Windows launcher bugs found while testing and auditing the repository on Windows 11 + NVIDIA GeForce RTX 3070 Ti:
Honor
busyflag inslot_evict(crates/victory-gpu/src/resource.rs)crate::descriptor::evict_slotsreturns(reset, busy)wherebusy = trueindicates another thread is currently building a descriptor slot for that texture (HostHeap::texture_slot_evictedreturnedNone), meaning the texture is in use and its host copy must stay.busywas ignored inslot_evict, allowing the host copy to be unstaged and retired while another thread was actively creating a slot for it. Now, whenbusyistrue, we incrementSLOT_EVICT[6]andcontinuewithout evicting the texture.Use
game_adapter()result inhighest_shader_model(crates/victory-gpu/src/streamline.rs)highest_shader_model()calledlet (adapter, _) = game_adapter()?;, then leftadapterunused and re-queriedvictory_shader::emit::host::hardware_adapter()separately.D3D12CreateDeviceis called directly with theadapterreturned bygame_adapter(), only falling back toEnumAdapters1(0)ifdeviceis stillNone.Isolate
late::PAGESincard_stepsunit tests (crates/victory-gpu/src/host/card_steps.rs)places_written_after_sending_are_learnedandfills_done_on_the_cpu_are_learned_tooallocate heap buffers and inspect the globallate::PAGESset. When tests run in parallel, freed heap pages can be reused across tests and trigger a false failure on!late::written(...).#[cfg(test)]helperlate::forget(from, to)and called it on the allocated test page range at the start of both tests.Remove unreachable duplicate
b'%'match arm (crates/victory-gpu/src/host/font.rs)b'%'pattern in the F3 panel bitmap font.Preserve exit code across
pauseinPLAY_FRAMEGEN.cmdcheckbranch,pauseresets%errorlevel%to0beforeexit /b %errorlevel%. SavedRC=%errorlevel%beforepauseand exited withexit /b %RC%so failed checks propagate a non-zero exit code as documented.Fallback to Windows
powershellinPLAY_FACES_FIX.cmdPLAY_FACES_FIX.cmdhardcodedpwsh(PowerShell 7), failing on stock Windows 10/11 systems without PowerShell 7 installed. MatchedPLAY_FRAMEGEN.cmdby defaulting topowershelland upgrading topwshwhen available onPATHor inC:\Program Files\PowerShell\7\pwsh.exe.Verification (Windows 11, NVIDIA GeForce RTX 3070 Ti 8 GB)
cargo test -p victory-gpu --lib: 915 passed, 0 failed (57 ignored)cargo test -p victory-shader --lib: 462 passed, 0 failed (9 ignored, executed on RTX 3070 Ti)cargo test -p victory --tests: 81 passed, 0 failedcargo test -p victory-loader --lib: 75 passed, 0 failedcargo test -p victory-pe --lib: 36 passed, 0 failedcargo test -p victory-pipeline --lib: 13 passed, 0 failedcargo build --release --locked -p victory&target\release\victory.exe shader-model: built cleanly and reportedNVIDIA GeForce RTX 3070 Ti/6.8PLAY_FRAMEGEN.cmd check < nulandPLAY_FACES_FIX.cmd < nul(tested withoutpwshonPATH): both exited cleanly (EXIT_CODE=0)python -m unittest test_faultbook.py(inscripts/): 4 tests OK