GPU: count explicit copy-back ranges in frame diagnostics #3594

Open
github-bot wants to merge 1 commit from github-bot/gh-3594 into main AGit
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-27 19:46 UTC · original
andrewpozdnakov7-jpg:codex2/copyback-range-report → main · +24 −1 · 2 files · 1 commits · open

Adds 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:46 UTC · [original](https://github.com/Marvisak/VIctory/pull/3594) `andrewpozdnakov7-jpg:codex2/copyback-range-report` → `main` · +24 −1 · 2 files · 1 commits · open Adds 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 19:46:59 +00:00
Author
Owner

@⁠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 prints 1.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_wait with the assertion both 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 failure

GitHub 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 19:54 UTC · [original](https://github.com/Marvisak/VIctory/pull/3594#issuecomment-7226989095) 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 prints `1.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_wait` with the assertion `both 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 failure](https://github.com/Marvisak/VIctory/actions/runs/46059061697/job/140708596804) GitHub 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]>`.
Author
Owner

@⁠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]>.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-27 20:13 UTC · [original](https://github.com/Marvisak/VIctory/pull/3594#issuecomment-7227301577) I combined the exact #3594 and #3598 commits for the timing follow-up in #3590. The two patches overlap in `Host::execute`. [Tested pair](https://github.com/andrewpozdnakov7-jpg/VIctory/commit/e7fc3fba4066f4306537fd7ccc45d17b532455d3) 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]>`.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/3594/head:github-bot/gh-3594'
git switch 'github-bot/gh-3594'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3594'
git switch 'github-bot/gh-3594'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3594'
git switch 'github-bot/gh-3594'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3594'
git switch 'main'
git merge --squash 'github-bot/gh-3594'
git switch 'main'
git merge --ff-only 'github-bot/gh-3594'
git switch 'main'
git merge 'github-bot/gh-3594'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!3594
No description provided.