GPU timing: stop the last sample at the untimed tail #3622
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T23:01:30Z.
The 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.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T23:02:22Z.
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.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T23:17:10Z.
#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.
Imported from Marvisak/VIctory. Originally posted by akimfomin on 2026-11-28T02:00:20Z.
KLBF #14 keeps missing frame counts distinct from zero. A related test for the untimed tail would have two valid intervals, a missing observation, then a known timestamp with no completed sample. The tail must not turn into a zero interval or elongate the modeled sample. The CPU check I ran covers the count fields only, not GPU timing.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T02:07:29Z.
I resolved the
HostList::noteoverlap with #3313 in 75f42f9. It preserves both current heads. The integration records timing with DRED off and retains the timestamp at the start of the untimed tail.I ran the exact
note,close,slowest, and aggregation code against a CPU timestamp fixture with three query slots for two intervals. On7592bb4, the second sample included the untimed tail and read 980 ms. On the merge it reads 15 ms. The first sample remains 10 ms. A failed readback and a known close timestamp with zero command intervals each produce an empty command list. With the failed readback, the single list still contributes its 20 ms of wall time and no command duration.The old head passed three cases and failed the tail case. The integration passed all four. These are deterministic CPU checks with simulated query data. The original #3622 Windows WARP run covers the production 4,096-slot cap.
Please preserve the Git author if cherry-picking or rebasing, or include this trailer if folding the change into another commit.
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>Imported from Marvisak/VIctory. Originally posted by futurepro62 on 2026-11-29T18:22:36Z.
Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head
f6989c6(on its base63bcca4).Tested
dxil.dllfrom Windows SDK 10.0.26100 (the loader's default), debug.cargo build --workspace --locked, thencargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 866 passed, 0 failed, 10 ignored.#[test]functions in the diff.--skipleaves out tests that fail on main63bcca4on this card too, not because of this PR:heap_direct_texture_reads_mark_their_heap_indexends thevictory-shadertest process with0xc0000005(#2571), so without the skip the rest of that crate never reports;dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_viewsand the twostride_testshit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317);gathers_at_a_level_match_the_hardwarefails on lane 0 (#1744).Not tested
AI use
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.