GPU timing: report command notes beyond the query budget #3661
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3661"
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-28T03:55:42Z.
Change
Report command notes beyond the 4,095-per-list timestamp budget in the GPU timing window. This exposes cases in which the recorded notes exceed the capacity of the timestamp heap, as discussed after the matched hardware report in #3590.
The count comes from the notes and the reserved query budget. A failed readback can leave sample times unavailable, and the query budget count still describes the note length.
Verification
AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T04:01:07Z.
Verified
5368be155e6efb6ce0e876172271a3a9c9da3231on Windows CI. The exact-source check distinguished the query budget from sample availability using generated timestamp data and verified the report reset.The integration with #3534 and #3651 exercised actual D3D12 timestamp queries on app-local WARP with DRED off. Four submitted lists with 0, 4,095, 4,096 and 4,098 notes returned 0, 0, 1 and 3 notes beyond the budget. All four synthetic copy results matched.
Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T04:03:20Z.
I resolved the overlap with #3313, #3622 and #3650 in
34454e1. The branch preserves all four PR heads. It keeps the single-list reporting path and counts out-of-budget notes even when command timestamps are unavailable.I checked the terminal timestamp in addition to the counts already reported in #3534. In a standalone WARP 1.0.22 probe, each D3D12 list was submitted on its own and used the merged recording, readback and reporting methods. A separate query heap bracketed a generated 1 MiB copy. At 0, 1, 4,094 and 4,095 notes, the terminal timestamp fell after the copy. At 4,096 and 4,098 it fell before the copy, with 4,095 measured intervals and respectively 1 and 3 notes beyond the limit. All seven copies returned the expected bytes.
The 4,098-note list still reported 3 over-budget notes when I supplied an unavailable timestamp frequency to the reader. A new reporting window containing a two-note list showed two intervals and no coverage warning. All five isolated tests passed. This covers the exact timing methods with actual WARP queries. The merged workspace was outside this run.
Please retain the Git authors on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding this resolution into another commit.AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by futurepro62 on 2026-11-29T23:09:22Z.
Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head
5368be1(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
Imported from Marvisak/VIctory. Originally posted by passerbyyhx on 2026-11-30T23:21:06Z.
Native timestamp boundary check on
5368be155e6efb6ce0e876172271a3a9c9da3231, RTX 4090 Laptop GPU and Microsoft WARP. Lists with 4,094 / 4,095 / 4,096 copy notes recorded 4,094 / 4,095 / 4,095 and reported 0 / 0 / 1 omitted. The final recorded timestamp was written and the last actual copy's bytes were checked even in the overflow case. No D3D12 debug-layer warnings or errors occurred during those measured windows. Adjacent timestamps can be equal on the 4090; the check uses the resolved query and copied data rather than requiring a strictly positive interval.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.