Commit Graph

839 Commits

Author SHA1 Message Date
4eb6cfdf9e Merge PR #324: Shaders: a size query is not reused (AMD's compiler crashes on 29 compute pipelines on RDNA4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:27:46 -05:00
d18b9aae29 Merge PR #295: Input: add opt-in GTA V PC-style keyboard and mouse mapping (VICTORY_KBM_GTA)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:27:46 -05:00
d3cf70dc0f Merge PR #354: victory-gpu: keep port 2 sync parts disjoint and fix fallback counters
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:27:46 -05:00
044eda9241 Merge PR #351: GPU: say when the D3D12 runtime refuses directly indexed heaps, and log the title's refused root signatures (#168, port of #317)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:27:45 -05:00
7d5c7a8ca0 Merge PR #348: Distinguish local GPU usage, OS budget and dedicated capacity in the HUD
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:27:45 -05:00
d6f95b2e58 Merge PR #343: The stack walk checks memory before it reads it, so VICTORY_PROFILE no longer crashes the game (VICTORY_UNWIND_CHECKS=0 for the old walk)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:27:45 -05:00
751618c718 Merge PR #316: profile: report late and expired profiling windows accurately
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:27:45 -05:00
70a2d5d8a3 Merge PR #294: warm: scope warm-bad.txt by fingerprint, honor VICTORY_WARM_BAD=0 and --again (#280)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:27:45 -05:00
26d4073bb3 Merge PR #303: Report malformed host-wave overrides during translation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:27:44 -05:00
4deb42b850 Merge PR #347: Document community GPU results alongside the 7900 XTX benchmark
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:27:44 -05:00
77bb051930 Merge PR #340: victory config: a policy violation fails the command (#301)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:27:44 -05:00
4dc700c99e Merge PR #336: FidelityFX: -Fsr4K takes FSR 3.1 where the SDK offers no 4.1.2 (#323)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:27:44 -05:00
038c507c4c Merge PR #332: Translate: --warm uses every logical core by default, as --jobs says
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:27:44 -05:00
8b75af9f63 Merge PR #328: Make the depth-bounds fixture work on WARP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:27:44 -05:00
52326642f3 Merge PR #327: Default to light DRED only for diagnostic launches
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:27:43 -05:00
61b11340a9 Merge PR #326: Reject zero worker counts in the CLI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:27:43 -05:00
b7f6420a2c Merge PR #325: Panel: a core's CPU counters that step back read as idle, not a panic
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:27:43 -05:00
479bb2545c Merge PR #290: Shader tests: skip WaveSize(32) pipelines on 64-lane-only hosts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:27:43 -05:00
b2e0d2afab Merge PR #288: Test: views_are_made_beside_the_heap_and_copied_in fails on AMD (RDNA 2): descriptor bytes are the driver's own (port of avatarmanz#298)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:27:43 -05:00
2d63b0902f Merge PR #286: ci: run checks on pushes to the default branch
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:27:43 -05:00
392766f8e0 Merge PR #330: ci: make Clippy pass on a-publier (default and --all-features) (#315)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 17:27:42 -05:00
c485827b4a Input: address review feedback (controller takeover, GetWindowInfo rect, edge clicks, SAFETY) 2026-11-27 05:47:08 +08:00
6482e72f3d GPU: the directly indexed heaps error names the newer runtime, not a loader this line lacks 2026-11-26 22:39:43 +01:00
4ad8527072 victory-gpu: keep port 2 sync parts disjoint and fix fallback counters 2026-11-27 02:35:47 +05:00
2f5aa980da Label GPU memory usage, budget and dedicated capacity in the HUD 2026-11-26 18:29:41 -03:00
0e301a9c84 Sample DXGI local and non-local memory segments independently 2026-11-26 18:29:09 -03:00
9460670647 Input: auto-hide cursor while mouse-look lock is active (F2 / ~) 2026-11-27 05:26:41 +08:00
b41e36c780 Document measured hardware results alongside the RX 7900 XTX baseline 2026-11-26 18:25:13 -03:00
e7585d506a warm: keep pipeline key in column 1 of warm-bad.txt, update help, add CLI test 2026-11-26 22:22:52 +01:00
acbeb30b37 The stack walk checks memory before it reads it, so VICTORY_PROFILE no longer crashes the game
The profiler walks the stacks of suspended threads with RtlVirtualUnwind,
and a bad RIP or RSP in a sample made it read unmapped memory: the game
crashed after about 4 minutes of VICTORY_PROFILE. With
VICTORY_UNWIND_CHECKS on (the default), each step first checks that RIP
is in executable image memory, that the unwind records and the stack span
they describe are readable and inside the thread's stack, that the PC is
not on an epilogue instruction, and that RSP grows. A record it cannot
bound ends the walk. The leaf rule is kept for the first frame only, also
in our own VirtualAlloc'd stubs. VICTORY_UNWIND_CHECKS=0 gives the old
walk; the switch is read once, before title code runs.

Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 00:16:08 +03:00
071f0da247 victory config: a policy violation fails the command
The check printed "POLICY VIOLATION" on stdout and returned Ok, so the
command exited 0 on exactly the configuration it exists to refuse, and
a script running `victory config || exit 1` went on. Each violation now
goes to stderr and the command ends with an error, as the commands that
would use the path already do. The resolved values still print first.

Fixes #301.
2026-11-26 21:59:09 +01:00
2a8eed9bcc FidelityFX: -Fsr4K takes FSR 3.1 where the SDK offers no 4.1.2 (#323)
select_version took only a provider named 4.1.2 and failed otherwise, so
-Fsr4K could not start on a card AMD's SDK offers no FSR 4 for. It now
takes 4.1.2 where there is one and the newest 3.1.x otherwise, and the log
says when 3.1 stands in. With neither, the run stops before the title
starts, names what was offered and says to run without -Fsr4K.

The check after context creation compares against the provider that was
asked for, rather than against 4.1.2.

Tested on an RTX 4070 (Windows 11, Rust 1.98.1) with AMD's signed
amd_fidelityfx_upscaler_dx12.dll 4.1.2.4555 (SDK v2.4.0):
- before: tests/fidelityfx.rs fails, "no FSR 4.1.2 provider for this
  adapter (available: 3.1.6, 2.3.4)"
- after: provider 3.1.6, context made, two frames dispatched
- cargo test -p victory-hle --lib fidelityfx: 5 passed

Not run against the title: FSR 3.1's picture in the game is not checked.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-26 22:40:51 +02:00
87be1b093c GPU: the directly indexed heaps test asks only what shader model 6.6 implies
(cherry picked from commit 00003e2739)
2026-11-26 21:36:45 +01:00
70ad03ab74 GPU: say when the D3D12 runtime refuses directly indexed heaps (#168)
Every host pipeline's root signature carries the directly indexed heap
flags (0x400, 0x800). A D3D12 runtime that does not know them, such as
Windows 10's in-box one, refuses each with "Unsupported bit-flag set";
the card and driver play no part, since serializing is the runtime's.

- At device creation, an empty root signature with both flags is
  serialized once; if the runtime refuses it, one error says that every
  host pipeline will be refused and why, instead of only one warning per
  pipeline as in #168's log.
- The title's own root signatures go to the same host serializer
  (`d3d12_xs!D3D12SerializeRootSignature` and its versioned form). A
  refusal there was passed back to the title in silence: a failure and
  no blob, which the console's serializer would not return. It is now
  logged with the flags and the host's reason. The error out pointer is
  nulled before the host's call, so the blob read is the host's.

Tests: the runtime refuses an unknown flag with the text seen in #168,
and serializes the directly indexed flags exactly when the device
reports shader model 6.6; through the title's entry point, an unknown
flag gives E_INVALIDARG, no blob and the host's reason.

(cherry picked from commit 963abe387e)
2026-11-26 21:36:45 +01:00
fce28693dc Translate: --warm uses every logical core by default, as --jobs says
translate --warm took 4 threads when --jobs was not given, while the
flag's help says every logical core and the two other paths of
translate.rs (translate, shaders) do that. The three paths now take
their count from one function, which keeps the at-least-one the warm-up
path already had.
2026-11-26 21:32:31 +01:00
2c6a89693a Make the depth-bounds fixture work on WARP
Use the library-loaded pipeline and valid descriptor bindings. Enable an always-pass depth comparison with writes disabled so WARP exercises the same strict bounds assertions. Fixes #314.

Co-authored-by: Codex <noreply@openai.com>
2026-11-26 22:26:30 +02:00
f71c30b8b7 Default to light DRED only for diagnostic launches
Keep the launcher default tied to the diagnostic profile and document explicit overrides for a diagnostics-enabled release build. Fixes #283.

Co-authored-by: Codex <noreply@openai.com>
2026-11-26 22:26:14 +02:00
a31fa6cbf9 Reject zero worker counts in the CLI
Use one positive-count parser for translate, shaders, and warm. Exercise all four modes at the real CLI. Fixes #311.

Co-authored-by: Codex <noreply@openai.com>
2026-11-26 22:25:56 +02:00
a656878c8d Panel: a core's CPU counters that step back read as idle, not a panic
The HUD (VICTORY_PANEL=1) took each core's busy share as
(ni - pi).clamp(0, nt - pt). On a Ryzen 7 7700 a core's kernel+user
counter stepped back between two reads, clamp(0, negative) panicked on
the submitting thread, and the run ended (host GPU failure). The share is
now a small function: no time passed or a step back reads 0, with tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 22:15:32 +02:00
f962387293 Shaders: a size query is not reused (AMD's compiler crashes on 29 compute pipelines on RDNA4)
The clean-up pass that gives one instruction for one value (REUSE) merged
a dx.op.getDimensions with an equal one above it. On an RX 9070 (RDNA4,
amdxc64 32.0.32029.2010) the driver's compiler then crashes making the
pipeline (an access violation, always at the same instruction) for 29 of
the title's compute programs, all ped *:CS_RaytracingResolve; the
runtime leaves them out. Keeping getDimensions out of REUSE alone makes
all 29 pipelines; an RDNA2 iGPU makes them either way.

312 programs translate differently, so TRANSLATOR_VERSION goes to 2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 22:12:12 +02:00
41aec5e508 ci: fix Clippy warnings on a-publier (#315)
- Add explicit type annotations to std::mem::transmute in victory-loader/src/descriptor_sites.rs and victory-gpu/src/host/panel.rs (clippy::missing_transmute_annotations)
- Remove unnecessary &mut borrow in victory-gpu/src/watch.rs (clippy::unnecessary_mut_passed)
- Remove unused diagnostics-only Staging::size field in victory-gpu/src/texture.rs (dead_code under --all-features)
2026-11-26 17:10:12 -03:00
f865d0bf08 profile: replace with validated implementation and tests 2026-11-26 14:55:23 -05:00
d8e6397b33 profile: report late and expired profiling windows accurately 2026-11-26 14:52:11 -05:00
7e19aa5059 Warn about malformed shader host-wave overrides
Trim whitespace and report invalid values when resolving the host-wave override and its alias before either translate mode. Related to #282.

Co-authored-by: Codex <noreply@openai.com>
2026-11-26 21:22:10 +02:00
ad0e5d5f22 Input: add opt-in GTA V PC-style keyboard and mouse mapping (VICTORY_KBM_GTA) 2026-11-27 03:22:02 +08:00
06d646591a Shader tests: skip WaveSize(32) pipelines on 64-lane-only hosts
Four hardware tests make pipelines that declare WaveSize(32). A GCN card
such as Polaris runs 64-lane waves only, so the driver refuses them with
E_INVALIDARG and the tests fail instead of being skipped, as wave64_tests
and permlane_tests already do for such hosts.

Host::runs_wave32 asks OPTIONS1 for the wave range, the same query
translation_caps makes. run_cases_on and whole_wave_f64_sum_and_cvt_f32_f64
skip a refused pipeline only on a host without 32-lane waves, so a refusal
on a host that has them still fails. partial_dispatch_with_a_cross_half_wave_op_runs_in_32_lane_waves
skips its 32-lane pipeline on such a host, like its neighbour does.

On an RX 580 (driver 31.0.21925.1001, waves of 64 to 64 lanes):
victory-shader went from 298 passed / 4 failed to 302 passed / 0 failed.
2026-11-26 16:14:40 -03:00
90e3770f4a warm: scope warm-bad.txt by fingerprint, honor VICTORY_WARM_BAD=0 and --again 2026-11-26 20:10:52 +01:00
67ff5f332e Test: a copied view is checked against what AMD descriptors are too
views_are_made_beside_the_heap_and_copied_in failed on an AMD card (RX 6600):
it took the bytes of a slot in the heap shaders see to be those made
beside it. Descriptors are the driver's own. On AMD (RX 6600) a copy
into that heap changes them (they name the slot they are in), and the
first 32 bytes of the slot do not change for another view at all. On WARP
they point to an object made anew each time, so a view made again in
place has other bytes.

A copy now passes if it holds the bytes made beside the heap (WARP,
NVIDIA) or those of the same view made in place (AMD), for the raw view
and for the null one after it. With put() made to do nothing, the test
still fails on both the RX 6600 and WARP.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit a477ca9a7e3ab1ca1e7c96c39694a610edd0ce42)
2026-11-26 20:07:44 +01:00
1d1072216c ci: run checks on pushes to the default branch 2026-11-26 14:07:31 -05:00
cd8dfc06ac PC FidelityFX FSR 4.1.2 to 4K (-Fsr4K), ported from DexNom/VIctory ab34a8b2 2026-11-26 12:50:05 -05:00