GPU timing: stop the last sample at the untimed tail #3622
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!3622
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3622"
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 23:01 UTC · original
andrewpozdnakov7-jpg:codex2/gpu-timing-cap-endpoint→main· +7 −3 · 1 files · 1 commits · openThe timestamp heap has 4,096 slots for up to 4,095 command intervals. On longer lists, the last sampled interval used to end at list close. The report then put the work from the untimed tail under the last sampled command's name.
Take the terminal timestamp when the first untimed command is noted. When the whole list fits, take it at close as before.
I tested lists with 0, 1, 4,095, 4,096 and 4,098 notes on Windows with app-local WARP 1.0.22 and D3D12 Agility 1.620.2. Each list performed a 1 MiB synthetic copy bracketed by a separate query heap. On
63bcca4, the last sample included that copy for both oversize lists. With this change it ends before the copy, and the three controls still end after the copy. All copies returned the expected bytes.Coordination claim
AI-assisted with OpenAI Codex.
@andrewpozdnakov7-jpg on GitHub · 2026-11-27 23:02 UTC · original
On app-local WARP 1.0.22 with D3D12 Agility 1.620.2, a separate query heap bracketed each 1 MiB copy. At 4,096 and 4,098 notes, the original terminal timestamp fell after the copy. On
f6989c6it falls before the copy, with 4,095 samples in both cases. At 0, 1 and 4,095 notes the endpoint still falls after the copy. Readback matched in all five cases.The diagnostics GPU suite passed 246 repository tests and one SDK identity check, with one ignored test. Both strict Clippy configurations and the asset policy passed. Windows CI for this head
Please keep the Git author on a cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if this work is folded into another commit.AI-assisted with OpenAI Codex.
@andrewpozdnakov7-jpg on GitHub · 2026-11-27 23:17 UTC · original
#3622 at
f6989c6and #3313 at7592bb4both touch the note-recording hunk. The resolved branch keeps #3313's timing-only note path and #3622's terminal timestamp at the first untimed note. The merge preserves both heads on63bcca4. Integration branchbc29b83I reused one command list across four submissions, resetting it between runs. A separate query heap bracketed a 1 MiB synthetic copy. On #3313 alone and on the combined branch, the GPU summary counted 4,095, 2, 4,095 and 4,095 commands for 4,096, 2, 4,098 and 4,095 notes. On #3313 alone all four endpoints fell after the copy. On the merge, the endpoints for both oversized lists fell before the copy. The two shorter lists still ended after it, including the short list immediately after a reset. Every readback byte matched.
The combined result passed with DRED off and on, using app-local WARP 1.0.22 and Agility 1.620.2. The existing #3313 timing fixture also passed (2 / 4 / 4 commands). The diagnostics GPU library suite passed 246 tests with three ignored. The reset probe stayed local. AI-assisted with Codex.
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.