GPU: count explicit copy-back ranges in frame diagnostics #3594
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!3594
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3594"
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?
@andrewpozdnakov7-jpg on GitHub · 2026-11-27 19:46 UTC · original
andrewpozdnakov7-jpg:codex2/copyback-range-report→main· +24 −1 · 2 files · 1 commits · openAdds one line to the existing diagnostics frame report for the measurement requested in #3590. It counts explicit buffer ranges after the submission has deduplicated them. The three averages are ranges eligible for copy-back, eligible ranges whose copy-back reported bytes written, and withheld ranges. The existing marked-page counts, bytes and timings stay in their current lines.
I verified the report through the Windows WARP submission path. The synthetic command list declares two eligible ranges, one duplicate declaration and two withheld ranges. One eligible range writes bytes. A two-frame reporting window prints 1.0 eligible, 0.5 wrote bytes and 1.0 withheld. The next window prints zero for all three. The existing byte assertions pass on both revisions, and the parent emits no range line.
This is instrumentation for the timing report in #3590. The measurement uses synthetic buffers and preserves the copy-back decisions.
The full local diagnostics GPU suite passed 246 project tests plus the SDK identity check, with one ignored. Strict GPU Clippy passed for default and all features, and the asset policy check passed.
@andrewpozdnakov7-jpg on GitHub · 2026-11-27 19:54 UTC · original
On
377cd2d5d9935bb1406084e2b8edf751555f0f9e, the Windows WARP diagnostics run confirmed the new line end to end. A two-frame window with two eligible ranges, one range that wrote bytes, two withheld ranges and a duplicate prints1.0 eligible, 0.5 wrote bytes, 1.0 withheld. The next window reports zero for all three. The 246 project GPU tests and the SDK identity check passed, with one ignored. Strict GPU Clippy passed in both feature configurations.The default-feature Windows CI run stopped at
views_bound_while_another_slot_gets_its_texture_do_not_waitwith the assertionboth made. #2585 and #2861 document the same failure in parallel test runs. All the new code is gated on diagnostics. Matched local default-feature runs with four test threads passed 231 project GPU tests plus the WARP SDK identity check on both the parent and this head, with one ignored on each. The local fixture selected WARP explicitly. CI failureGitHub requires repository admin rights to rerun this job. The next step is a maintainer rerun or review of the existing test-only fix.
If you cherry-pick or rebase this commit, please retain its Git author. If you fold it into another commit, please include
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.@andrewpozdnakov7-jpg on GitHub · 2026-11-27 20:13 UTC · original
I combined the exact #3594 and #3598 commits for the timing follow-up in #3590. The two patches overlap in
Host::execute. Tested pair records the explicit range counts and the combined byte total while processing each range once.On Windows WARP, the marked shader write reports 65,536 bytes and the explicit write reports 32 bytes. The two-frame fixture with a duplicate, an unchanged range and withheld ranges still reports 1.0 eligible, 0.5 wrote bytes and 1.0 withheld. The following window reports zero for all three. The synthetic byte checks passed.
The full diagnostics suite passed 246 project GPU tests plus the SDK identity check, with one ignored. Strict GPU Clippy passed in both feature configurations, and the asset policy check passed.
The pair can be used to collect both measurements in #3590. Please retain Git authors on cherry-pick or rebase. If you fold my work into another commit, please include
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.View 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.