GPU: blocking fence waits, feature queries, device methods, private interfaces #1957
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!1957
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@RaghavVijayanand on GitHub · 2026-11-25 01:45 UTC · original
RaghavVijayanand:gpu/fences-and-features→main· +849 −92 · 5 files · 4 commits · openFour 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.@Marvisak on GitHub · 2026-11-25 02:19 UTC · original · edited 2026-11-25 16:03 UTC
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
7fb320fe47tod4d878f6e4@copilot-pull-request-reviewer[bot] on GitHub · 2026-11-25 01:45 UTC · original · reviewed
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.
@catminou4 on GitHub · 2026-11-25 02:10 UTC · original · reviewed
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.
@RaghavVijayanand on GitHub · 2026-11-26 10:58 UTC · original
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.