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!898
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-898"
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?
@illuminatedfellow on GitHub · 2026-11-28 08:46 UTC · original
illuminatedfellow:port-228→main· +688 −56 · 1 files · 2 commits · merged 2026-11-29 08:16 UTCPorts the fixes for avatarmanz/VIctory-7900XTX#228 (XAsync races and thread use), as two commits:
DoWorkorCancelstill ran on another, so the provider's cleanup freed its context under them. Each call now counts the provider operations under way, and cleanup runs after the last one returns.XTaskQueueTerminatecalled its callback straight away and ignoredwait; callbacks already running or queued in the pool still ran after it, and draining a shared port canceled other queues' callbacks. Terminate now cancels only its own queue's tasks and completes when its running callbacks have returned.The cherry-pick applied cleanly on top of
4902d45(pending_withcompletes the call it began); I read the place where the two meet:complete_callonly releases a call that is still in flight, and #244's counting wraps the provider operations under it.Checked on this fork (
xasync.rsbuilt on Linux with a stub forxgameruntime, sincevictory-hleneeds Windows):cleanup_waits_for_work_under_way,terminate_completes_once_running_callbacks_return,terminate_leaves_other_queues_on_the_port_alone,terminate_waiting_from_its_own_callback_returns) fail on this main and pass here.clippy --all-targets -D warningsclean on Rust 1.97.delayed_callbacks_do_not_start_a_thread_eachshows the thread use: 200 delayed callbacks started 200 threads before.Not built on Windows or with 1.98.1, and not run with the title.
@illuminatedfellow on GitHub · 2026-11-28 17:28 UTC · original
The failing check is
main's Clippy, not this change: it stops onvictory-shader/src/emit/mod.rs:2768(let_and_return) andvictory-gpu/src/shadow.rs:1708(manual_is_multiple_of), both already onmain, which #86 fixes. This PR only touchesvictory-hle/src/modules/xasync.rs, which Clippy didn't reach.@illuminatedfellow on GitHub · 2026-11-28 18:04 UTC · original
Heads-up: #1205 fixes another race in the same file and merges with this one without a conflict, but the two clash in
complete_call: see my comment there. If #1205 goes in first, I'll update this branch with the one-line fix.