GPU: queries run on the host GPU #2354
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!2354
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@FoxxoOwO on GitHub · 2026-11-25 11:29 UTC · original
FoxxoOwO:gpu/queries-host→main· +249 −25 · 5 files · 1 commits · closed without mergingConsole 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).@DrDarkDK on GitHub · 2026-11-25 11:34 UTC · original
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.
@Marvisak on GitHub · 2026-11-25 15:33 UTC · original · edited 2026-11-25 16:00 UTC
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
@DenRakEiw on GitHub · 2026-11-25 11:41 UTC · original · approved these changes
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).
@catminou4 on GitHub · 2026-11-25 11:52 UTC · original · reviewed
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.
@FoxxoOwO on GitHub · 2026-11-26 09:53 UTC · original
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