Diagnostics build: define mb() in copystat, stop the stage timer shadowing timing() #2498
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!2498
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2498"
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?
@LeonardoRCB on GitHub · 2026-11-29 13:40 UTC · original
LeonardoRCB:fix-diagnostics-build→main· +8 −3 · 2 files · 1 commits · openThe diagnostics build (
cargo build --locked --profile diag -p victory --features diagnostics) does not compile on current main: 9 errors in victory-gpu (E0425, E0618, E0277). The release build is not affected, since both spots are behindfeature = "diagnostics".Two causes:
b520c0f4added a memory line tolog_heap_elsewhereincopystat.rsthat callsmb(), but nomb()exists in that file (E0425 x4). This adds it: bytes to MiB as f64, as the file's other memory lines compute it.dc0c4b91named the submission's stage timertiming(Option<SubmissionTiming>), which shadowsfn timing()for the rest of the submission, soif timing()at lines 9127, 9169 and 9180 tries to call the Option (E0618; the E0277 at 9172 follows from it). The local is renamed tostages; nothing else changes.8 lines in 2 files, no behaviour change.
Tested: Windows 11, Rust 1.98.1 (pinned toolchain), RTX 4060. Before: the diag build fails with the 9 errors above. After: it finishes (
Finished diag profile). The release build still compiles. The warnings left in victory-gpu and victory-shader are not from this change.github-bot referenced this pull request2026-11-29 20:00:12 +00:00
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.