Tests: the conformance title's GPU frame, cargo conformance and cargo demo (with a stress scale), on Windows and macOS #3021
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!3021
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3021"
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?
@0xkn0wh3r3 on GitHub · 2026-11-26 03:35 UTC · original
0xkn0wh3r3:tests/conformance-demo→main· +7348 −0 · 24 files · 11 commits · openDepends on #2057 (the conformance title). This branch is built on #2057's branch, so its 5 commits show here until it merges; the 6 commits after
1434e72are this PR's.This adds the conformance title's GPU frame, plus one command each to run the acceptance suite and to show the frame as a demo, on Windows and on macOS. The demo can also scale up the work it gives VIctory, as a stress test of the translation layer.
What's here
tests/gpu-frame-workload, which never had a PR of its own). The conformance title draws a scene through VIctory's console D3D12 with hand-assembled GFX10 shaders, and the test compares it with the same scene drawn natively on WARP from HLSL. That's 37 checks, on top of #2057's 152.cargo conformance(cargo xtask conformance): the whole suite.--window <seconds>then shows the GPU frame, animated, for that long.cargo demo(cargo xtask demo): only the GPU frame, in a window until it is closed, with VIctory's overlay (frame rate and frame times) if #2171 is in. Options:--resolution 720p|1080p|1440p|4k|<width>x<height>(default 1440p). The checks still run on the 512x288 frame; the window's frames are drawn at their own size.--scale <n>: each step past 1 adds 64 small objects, each a draw whose constants are written into title memory and whose view is made in the shader-visible heap that frame, plus one more submission that binds the pass again. It stresses VIctory's per-draw, per-descriptor and per-submission work rather than the GPU. The title prints the frame rate and the work per frame every 5 seconds.--seconds <n>,--no-overlay,--debug, and--dump <dir>, which saves the checked frames and the window's last frame as PPM images.cargo-xwinand run them under CrossOver (Wine, Apple's D3DMetal for D3D12, Rosetta 2) in a bottle of their own. On Windows they runcargo testnatively.VICTORY_CONFORMANCE_DLLlets the test use a title DLL built beforehand, since Wine can't run the host'scargo.Testing
Run on an M5 Max under CrossOver, from this branch, which is
mainplus #2057 only:cargo conformance: passes. All 189 checks run; the 5 divergences #2057'sKNOWNlists are reported, and the WARP comparison is skipped because D3DMetal has no WARP adapter.cargo demo: runs until its window is closed, then exits cleanly. At 1440p, scales 1 to 16 hold the display's 60 fps (up to 965 draws and 16 submissions a frame). Scale 64 (4,037 draws, 64 submissions) takes about 42 ms a frame ondemo.OpenExistingHeapFromAddress1aren't supported, so the overlay's GPU-time readings are empty and title memory is copied rather than used in place.cargo test -p victory-hle --test conformancewith the same variables.cargo conformanceandcargo demo, on Windows and on macOS 10f4e700a5@pickles976 on GitHub · 2026-11-26 03:58 UTC · original
Independent Linux/Wine verification on NVIDIA GeForce RTX 4060 Laptop GPU (8 GiB), 16 GiB RAM, Wine 11.0 + vkd3d-proton 3.2.0 + DXVK 3.1.1, exact clean PR head
453700e9c3fa0eeeff00dad167ad87f4cb55beb7:victory-hle --test conformancefor Windows MSVC, then ran the actual physical NVIDIA adapter under Wine atVICTORY_CONFORMANCE_WINDOW=12,VICTORY_CONFORMANCE_SIZE=1280x720,VICTORY_CONFORMANCE_SCALE=1,dxgi.hideNvidiaGpu = False. Both fixture and harness were optimized/release builds. The run completed 1/1 test, 37/37 TAP checks, with an actual nonblack rendered window: mountains, checkerboard ground, two cubes and pyramid. The 12-second present trial completed 89 frames (reported 6.7 then 7.8 FPS at five draws/one submission per frame; full-window average 138.21 ms). The debug build separately passed 37/37, 41 frames in 8 seconds (~5.2 FPS). Guarded scopeMemoryMax=9G,MemorySwapMax=512M, global MemAvailable >=2 GiB, NVIDIA GPU used <=6 GiB, disk >=10 GiB; no safety stop (minimum available 12,359 MiB, max GPU used 219 MiB). Local release log.compat-runtime/logs/verify-pr3021-wine-rtx4060-release-gpu-frame.log, capture.compat-runtime/cap-pr3021-release/window.ppm(synthetic scene, not retail gameplay).EnumWarpAdapter: WARP not supported, returning first hardware adapter, and then selects this RTX 4060 Laptop. Thus the passing check labeledthe frame matches WARP's drawingactually compares VIctory's output with a native D3D12 rendering on the hardware adapter, not with WARP, on this Wine stack. Could the harness inspect the returned adapter's software flag and label/report the reference accurately (or skip only the WARP-specific assertion) rather than silently claim WARP coverage?tests/fixtures/conformance/src/gpu.rscallssubmit()every frame, andsubmit()waits synchronously for a fence before the nextPresentX(single allocator/constant buffer). The 7.8 FPS is a real measurement of this demo on this stack, not a retail-title FPS estimate or proof the engine cannot reach 30 FPS. A bounded ring of frame resources and in-flight fences, waiting only before reuse, would makecargo demomore representative of title frame pacing; a release 720p run after that change would separate this forced serialization from backend GPU time.This synthetic test exercises console-facing root signatures and present successfully in VIctory; it does not remove XCL's separate native-vtable assertion or the retail game's 16 GiB loading blocker.
@Marvisak on GitHub · 2026-11-26 06:17 UTC · original · edited 2026-11-26 07:20 UTC
Automated triage for the maintainers.
Thanks for the reply. The head is unchanged, so the verdict stays needs work; needs the maintainer's decision: build aliases, a new fixture crate with its own lockfile, xtask commands that run other programs, and the macOS/CrossOver runner. The three-way split you outline, with short README text in each, would make this reviewable once #2057 lands.
Generated by Claude Code
@0xkn0wh3r3 on GitHub · 2026-11-26 06:43 UTC · original
Understood. Most of this is your decision: the build aliases, the fixture crate and its dependencies, the xtask commands that run other programs, the macOS/CrossOver runner and the README text. Splitting it as you suggest makes sense:
The README text would shrink to a few lines in each piece.
@kotekompotek on GitHub · 2026-11-26 04:43 UTC · original · approved these changes
LGTM — the first real end-to-end coverage: fixture built to CARGO_TARGET_TMPDIR (repo stays clean), loaded through the genuine prepare→load→bind_imports→attach path with mounted drives, and missing-import assertion means any HLE gap fails loudly. The KNOWN list with doc citations + fail-on-pass is the right way to track divergence. WARP comparison degrades gracefully. Skimmed the fixture modules — synthetic hand-assembled GFX10 programs and doc-derived checks only, no game data.
@evan-kolberg on GitHub · 2026-11-26 13:16 UTC · original
I ran the generated GPU frame from exact
453700e9c3fa0eeeff00dad167ad87f4cb55beb7on an M4 Pro with CrossOver 26.3.0.39832 and D3DMetal 4.0 beta 3. A test-only wrapper runs the checked 512 × 288 frame first, then draws and reads back the requested larger size offscreen in the same process. The stock and candidate hosts used the same guest DLL.On stock, independent texture copies showed full-height coverage in both the scene color target and the compute output texture. Native translation gave the 512-, 1280-, and 1920-wide compute shaders the same 3,768-byte container size. Reusing the first shader's 512-pixel linear store stride predicts exactly 289 populated buffer rows at both larger sizes.
The sole production change was the Mac fork's existing fix to put an MD5 of the DXIL bitcode in the
HASHpart. It produced distinct hashes for the three shaders. Both larger scenes then passed full-row coverage and three fenced, byte-identical repeat readbacks. The existing 512 × 288 checks passed in both arms. Mac fix · Exact hash implementationView 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.