GPU: queries run on the host GPU #2352
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2354"
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 FoxxoOwO on 2026-11-25T11:29:07Z.
Console query heaps now run on the host GPU instead of answering with constants.
What changed
BeginQuery/EndQuery/ResolveQueryDatarecord into the host list. A console heap gets a host heap on first use, of the matching type: occlusion kinds share one, timestamps their own, pipeline statistics theirs.GetTimestampFrequencyof the queue). This also fixes the review note about the frequency mismatch.BeginQueryfor timestamps:begin_queryskips them,end_querymarks them. Fixes the review note aboutBeginQueryon a timestamp heap.shortcut:comment.Tests
cargo test -p victory-gpu: 141 passed, 2 failed (dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_views— both fail onmaintoo, unrelated).cargo clippy -p victory-gpu --all-targets: clean.Supersedes #2260 (same change, rebased onto current
main; I cannot force-push over the old branch, so this is a fresh head).Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-25T11:41:43Z.
Review: APPROVED
Verified against
origin/main(940d32f) on Windows 11 + NVIDIA GeForce RTX 5090 and WARP:cargo test -p victory-gpu query::: 3/3 passed on RTX 5090, 3/3 passed on WARP.cargo test -p victory-gpu list::tests: 4/4 passed on RTX 5090.cargo clippy -p victory-gpu --all-targets -- -D warnings: 0 warnings.cargo xtask policy: 183 files ok.AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T11:52:03Z.
Review: COMMENTED
Queries run on the host GPU (resolves with timestamp scaling). Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1. Note: this looks like a rebase/narrower redo of #2260 (mergeable=False, same feature) — suggest closing #2260 if this supersedes it. README updated consistently.
Imported from Marvisak/VIctory. Originally posted by DrDarkDK on 2026-11-25T11:34:05Z.
I found a timestamp conversion regression at
acc9353. I recorded two timestamp queries in separate submissions, then resolved the same query slots through the guest path and directly through D3D12.Both raw timestamps exceeded
u64::MAX / 100_000_000. Thesaturating_mulinhost.rsturns both products intou64::MAXbefore division, so the guest receives identical timestamps. Multiplying and dividing inu128before narrowing the result would preserve the interval.Synthetic queries only. No game data used.
AI-assisted with Codex.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T15:33:51Z.
Automated triage for the maintainers.
This pull request no longer merges cleanly into
main(conflicts incrates/victory-gpu/src/host.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
Imported from Marvisak/VIctory. Originally posted by FoxxoOwO on 2026-11-26T09:53:08Z.
Superseded by #3138, which is rebased onto
mainand takes the reviewed fix: the timestamp scaling is multiplied in u128, with the two reviewed intervals pinned bytimestamps_scale_to_the_title_clock.Pull request closed