GPU: blocking fence waits, feature queries, device methods, private interfaces #1955
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1957"
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 RaghavVijayanand on 2026-11-25T01:45:18Z.
Four runtime gaps in victory-gpu, one commit each.
SetEventOnCompletionwith a null event returned E_NOTIMPL. It now blocks on a condition variable until the fence reaches the value, rechecking every 1 ms in case the title stores to the fence address from the CPU.Written::writewakes them.Tests: 14 new tests (7 for fences, 5 for the device, 2 for objects). The blocked-wait tests run on threads with a timeout, so a bug fails the test instead of hanging it. Each fix was broken on purpose to confirm its tests fail.
root::tests::the_table_has_the_object_and_device_child_slotsasserted that SetPrivateDataInterface returns E_NOTIMPL; it now checks the implemented behaviour instead.Left alone on purpose: Queue Wait still never blocks. Submissions are synchronous on the calling thread, so blocking there could deadlock.
Unrelated observation:
frame::tests::waits_end_on_ticks_and_count_framesfailed once on itselapsed <= 50mscheck under load and passed in later runs. It looks timing-sensitive.Rebased onto current main (
940d32f). On this machine, 5 tests fail on main itself, with or without this change:descriptor::host::tests::dynamic_slots_are_held_until_released,memory::tests::lists_share_a_table_and_copies_keep_their_views, the twostride_tests::a_heap_buffer_read_*tests, andsynthetic_tests::gathers_at_a_level_match_the_hardware. Everything else passes, and clippy passes with-D warnings, with and without--all-features.Imported from Marvisak/VIctory. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-25T01:45:33Z.
Review: COMMENTED
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
upstream-sync referenced this pull request2026-11-25 03:02:58 +00:00
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T02:10:30Z.
Review: COMMENTED
Static review only: victory-gpu is Windows-only (D3D12/windows_sys) — nothing compiles or runs on macOS; source review of the diff.
Blocking fence waits + feature queries: fence-wait implementation — pairs with #1734's fence tests.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T02:19:20Z.
Automated triage for the maintainers.
This pull request no longer merges cleanly into
main(conflicts incrates/victory-gpu/src/fence.rs). It will be reviewed once it is rebased onto the currentmain. The earlier verdict (needs work) was for an older state ofmain.Generated by Claude Code
upstream-sync referenced this pull request2026-11-25 04:06:48 +00:00
upstream-sync referenced this pull request2026-11-25 04:06:48 +00:00
Imported from Marvisak/VIctory. Originally posted by RaghavVijayanand on 2026-11-26T10:58:07Z.
Rebased onto
main63bcca4.fence.rsmerged withmain's held-work changes: waiters keep the time they started waiting, andreached()(shared by queue/title signals and bottom-of-pipe writes) adds toWAITEDassetdid.main's rewind check (#2164) is kept insignals_set_waiting_events, using this branch's test helpers. On an RTX 5060 Laptop: the fence/device/object/queue tests pass (45), and clippy is clean with and without features. Twovictory-gputests fail, but they fail the same way on unmodifiedmainthere (NVIDIA's 1M-view heap cap):dynamic_slots_are_held_until_releasedandlists_share_a_table_and_copies_keep_their_views.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.