victory system: this machine for test reports; the commit built from in --version and crash reports #104

Open
github-bot wants to merge 2 commits from github-bot/gh-104 into main AGit
Owner

@⁠ySKELLETONX on GitHub · 2026-11-25 14:14 UTC · original
ySKELLETONX:feat/system-report → main · +567 −9 · 12 files · 2 commits · open

Why

Most issues here are test reports, and each one collects the machine by hand. They often leave out what decides how far the title gets:

  • the GPU's wave sizes: without 64-lane waves, wave64 compute programs are dropped (#9)
  • whether the title's view heap fits: it is capped at 1,000,000 slots on some hosts (#15, #74)
  • mesh shaders at shader model 6.6
  • Windows commit (error 1455), and whether it runs under Wine (#6, #19)
  • the commit the executable was built from

Until now, most of this was only logged during a run of the title, so a tester without a working setup couldn't get it at all.

What

victory system prints all of it without a title:

VIctory 0.1.0 (7a0ccd3), debug build
Windows 10.0.26300
CPU: AMD Ryzen 7 5700X3D 8-Core Processor, AVX2 yes
Memory: 63.9 GiB RAM (44.7 free), commit 43.1 GiB free of 67.9
GPU (used): AMD Radeon RX 7600 XT [1002:7480], driver 32.0.32015.2008, 16344 MiB dedicated, 49074 MiB shared
  shader model 6.8, mesh shaders yes, waves of 32 to 64 lanes, resource binding tier 3, view heap fits, GPU upload heap no
No known blockers.

On a host with problems, it ends with a list instead, for example:

Known problems on this host:
- no 64-lane waves (only 32 to 32): the console's wave64 compute programs that read other lanes are not translated, and their dispatches are dropped
- the view heap is capped: 311744 of the title's descriptor slots do not fit, and tables reaching them are remapped
  • Adapters are listed in the order run picks them (EnumAdapterByGpuPreference, high performance), with the UMD driver version from CheckInterfaceSupport. The software adapter every Windows lists is left out unless it is the one used. This helps on laptops with two GPUs (#59).
  • The device is a separate one that is released right away, made on the same adapter at feature level 12_0, like host::create.
  • The view heap check makes the heap HostHeap::new asks for (VIEW_SLOTS), then the capped one it falls back to (PORTABLE_VIEWS). The "fit" number is the one the capped path keeps for the title (PORTABLE_VIEWS - DYNAMIC_CAPPED - memory::SLOTS), which gives 933,440, the start of the dynamic run seen in #74.
  • Wine is detected through ntdll's wine_get_version export.

The commit the executable was built from: build.rs puts the short hash of HEAD in VICTORY_COMMIT (unknown commit without git), and it is rebuilt when HEAD or the branch ref moves. --version, victory system and the host line of every crashes.log report now name it:

  host: AMD Ryzen 7 5700X3D 8-Core Processor, Windows 10.0.26300, VIctory 0.1.0 (7a0ccd3)

Small supporting changes: victory_loader exports the cpu_name and windows_version that crash reports already used, and descriptor::host's PORTABLE_VIEWS, DYNAMIC and DYNAMIC_CAPPED become pub(crate). The README lists the command.

Testing

RX 7600 XT 16 GB, Windows 11 Pro build 26300, Rust 1.98.1:

  • victory system output above. The driver version matches what Windows reports for the adapter.
  • --version printed 01aadd1 before the commit and 7a0ccd3 after it, without cargo clean.
  • 4 unit tests for the problem list: a wave32-only host, a capped heap (311,744 slots short), shader model 6.5 without mesh shaders, and a host with none.
  • cargo test -p victory -p victory-gpu -p victory-loader: all pass.
  • No new clippy warnings in the crates touched (59 before and after, all in existing code; -D warnings stops in victory-shader first, see #3).

Not tested: an NVIDIA or Intel host, a capped heap on real hardware, and Wine. A run on one of those would be welcome.

If #79 (VICTORY_ADAPTER) is merged first, report() should take the same override so it describes the adapter run would use.

**@⁠ySKELLETONX** on GitHub · 2026-11-25 14:14 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/104) `ySKELLETONX:feat/system-report` → `main` · +567 −9 · 12 files · 2 commits · open ## Why Most issues here are test reports, and each one collects the machine by hand. They often leave out what decides how far the title gets: - the GPU's wave sizes: without 64-lane waves, wave64 compute programs are dropped (#9) - whether the title's view heap fits: it is capped at 1,000,000 slots on some hosts (#15, #74) - mesh shaders at shader model 6.6 - Windows commit (error 1455), and whether it runs under Wine (#6, #19) - the commit the executable was built from Until now, most of this was only logged during a run of the title, so a tester without a working setup couldn't get it at all. ## What **`victory system`** prints all of it without a title: ``` VIctory 0.1.0 (7a0ccd3), debug build Windows 10.0.26300 CPU: AMD Ryzen 7 5700X3D 8-Core Processor, AVX2 yes Memory: 63.9 GiB RAM (44.7 free), commit 43.1 GiB free of 67.9 GPU (used): AMD Radeon RX 7600 XT [1002:7480], driver 32.0.32015.2008, 16344 MiB dedicated, 49074 MiB shared shader model 6.8, mesh shaders yes, waves of 32 to 64 lanes, resource binding tier 3, view heap fits, GPU upload heap no No known blockers. ``` On a host with problems, it ends with a list instead, for example: ``` Known problems on this host: - no 64-lane waves (only 32 to 32): the console's wave64 compute programs that read other lanes are not translated, and their dispatches are dropped - the view heap is capped: 311744 of the title's descriptor slots do not fit, and tables reaching them are remapped ``` - Adapters are listed in the order `run` picks them (`EnumAdapterByGpuPreference`, high performance), with the UMD driver version from `CheckInterfaceSupport`. The software adapter every Windows lists is left out unless it is the one used. This helps on laptops with two GPUs (#59). - The device is a separate one that is released right away, made on the same adapter at feature level 12_0, like `host::create`. - The view heap check makes the heap `HostHeap::new` asks for (`VIEW_SLOTS`), then the capped one it falls back to (`PORTABLE_VIEWS`). The "fit" number is the one the capped path keeps for the title (`PORTABLE_VIEWS - DYNAMIC_CAPPED - memory::SLOTS`), which gives 933,440, the start of the dynamic run seen in #74. - Wine is detected through ntdll's `wine_get_version` export. **The commit the executable was built from:** `build.rs` puts the short hash of HEAD in `VICTORY_COMMIT` (`unknown commit` without git), and it is rebuilt when HEAD or the branch ref moves. `--version`, `victory system` and the host line of every `crashes.log` report now name it: ``` host: AMD Ryzen 7 5700X3D 8-Core Processor, Windows 10.0.26300, VIctory 0.1.0 (7a0ccd3) ``` Small supporting changes: `victory_loader` exports the `cpu_name` and `windows_version` that crash reports already used, and `descriptor::host`'s `PORTABLE_VIEWS`, `DYNAMIC` and `DYNAMIC_CAPPED` become `pub(crate)`. The README lists the command. ## Testing RX 7600 XT 16 GB, Windows 11 Pro build 26300, Rust 1.98.1: - `victory system` output above. The driver version matches what Windows reports for the adapter. - `--version` printed `01aadd1` before the commit and `7a0ccd3` after it, without `cargo clean`. - 4 unit tests for the problem list: a wave32-only host, a capped heap (311,744 slots short), shader model 6.5 without mesh shaders, and a host with none. - `cargo test -p victory -p victory-gpu -p victory-loader`: all pass. - No new clippy warnings in the crates touched (59 before and after, all in existing code; `-D warnings` stops in victory-shader first, see #3). Not tested: an NVIDIA or Intel host, a capped heap on real hardware, and Wine. A run on one of those would be welcome. If #79 (`VICTORY_ADAPTER`) is merged first, `report()` should take the same override so it describes the adapter `run` would use.
Test reports collect the machine by hand, and often leave out what
decides how far the title gets: the GPU's wave sizes (no 64-lane waves:
wave64 compute programs are dropped, #9), whether the title's view heap
fits (capped at 1,000,000 slots: #15, #74), mesh shaders at shader model
6.6, Windows commit, Wine, and the commit the executable was built from.
Until now these were only logged during a run of the title.

`victory system` prints them without a title: Windows (and Wine's
version), the CPU and AVX2, RAM and commit, the adapters in the order
`run` picks them with driver version and memory, and on the first a
device's shader model, mesh shaders, wave sizes, binding tier, whether
the view heap `run` asks for can be made, and the GPU upload heap. It
ends with what of the title's work the host cannot run.

build.rs puts the short hash of HEAD in VICTORY_COMMIT; `--version`,
`victory system` and the host line of every crashes.log report name it.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:35:51 +00:00
Author
Owner

@⁠KernelSmoker on GitHub · 2026-11-25 17:28 UTC · original

Tested PR commit 7a0ccd3 on Bazzite Linux 45 using GE-Proton 10-34 / Wine 10.0 and vkd3d-proton 3.0.0, on an NVIDIA GeForce RTX 3090 (24 GB; host NVIDIA driver 620.73.04). No title files were needed for victory system.

victory system ran successfully and reported:

  • CPU: Intel Core i9-11900K, AVX2 yes; memory 62.6 GiB, 50.6 GiB Windows commit free
  • GPU: RTX 3090, 24,544 MiB dedicated; shader model 6.8, mesh shaders yes, waves 32–32, binding tier 3, upload heap yes
  • The host view heap is capped: 933,440 of 1,245,184 requested slots fit (311,744 short); wave64 programs that read other lanes cannot be translated

Wine reports the Windows GPU driver as 32.0.65535.65535; the actual Linux host driver is 620.73.04. The report also labels the environment Windows 10.0.19045 (Wine 10.0).

I cross-built the victory, victory-gpu, and victory-loader test targets for x86_64-pc-windows-gnu (--no-run succeeded). Running the PR's victory_gpu test binary serially under GE-Proton gave 102 passed, 9 failed, 4 ignored. The failures were in D3D12 pipeline/descriptor tests plus two pipeline-library file-permission tests under Wine; this is a Proton/Wine run, not native Windows. The victory system report itself worked and correctly identified the GPU and Wine environment.

**@⁠KernelSmoker** on GitHub · 2026-11-25 17:28 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/104#issuecomment-7169558776) Tested PR commit `7a0ccd3` on Bazzite Linux 45 using GE-Proton 10-34 / Wine 10.0 and vkd3d-proton 3.0.0, on an NVIDIA GeForce RTX 3090 (24 GB; host NVIDIA driver 620.73.04). No title files were needed for `victory system`. `victory system` ran successfully and reported: - CPU: Intel Core i9-11900K, AVX2 yes; memory 62.6 GiB, 50.6 GiB Windows commit free - GPU: RTX 3090, 24,544 MiB dedicated; shader model 6.8, mesh shaders yes, waves 32–32, binding tier 3, upload heap yes - The host view heap is capped: 933,440 of 1,245,184 requested slots fit (311,744 short); wave64 programs that read other lanes cannot be translated Wine reports the Windows GPU driver as `32.0.65535.65535`; the actual Linux host driver is 620.73.04. The report also labels the environment `Windows 10.0.19045 (Wine 10.0)`. I cross-built the `victory`, `victory-gpu`, and `victory-loader` test targets for `x86_64-pc-windows-gnu` (`--no-run` succeeded). Running the PR's `victory_gpu` test binary serially under GE-Proton gave 102 passed, 9 failed, 4 ignored. The failures were in D3D12 pipeline/descriptor tests plus two pipeline-library file-permission tests under Wine; this is a Proton/Wine run, not native Windows. The `victory system` report itself worked and correctly identified the GPU and Wine environment.
@ -0,0 +124,4 @@
if !d.mesh_shaders {
problems.push("no mesh shaders at shader model 6.6: the world is not drawn".to_owned());
}
match d.wave_lanes {
Author
Owner

@⁠gut0to on GitHub · 2026-11-25 14:53 UTC · original

Could we add a fixed-wave64 case with wave_lanes = Some((64, 64))? The current positive test uses (32, 64), while the negative test uses (32, 32); this boundary would confirm that a device reporting only 64-lane waves passes the contains(&64) capability check. AI-assisted review.

**@⁠gut0to** on GitHub · 2026-11-25 14:53 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/104#discussion_r4696696583) Could we add a fixed-wave64 case with wave_lanes = Some((64, 64))? The current positive test uses (32, 64), while the negative test uses (32, 32); this boundary would confirm that a device reporting only 64-lane waves passes the contains(&64) capability check. AI-assisted review.
Author
Owner

@⁠gut0to on GitHub · 2026-11-25 14:53 UTC · original · reviewed

AI-assisted review: I checked the wave-lane capability decision and existing boundary cases.

**@⁠gut0to** on GitHub · 2026-11-25 14:53 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/104#pullrequestreview-6059935430) · **reviewed** AI-assisted review: I checked the wave-lane capability decision and existing boundary cases.
github-bot force-pushed github-bot/gh-104 from 7a0ccd3c71 to ca11979fc9 2026-11-26 13:09:05 +00:00 Compare
Under Wine and Proton, DXGI reports a driver version ending in
65535.65535 (32.0.65535.65535 on an RTX 3090 with vkd3d-proton, in the
test on #104), and the report printed it as if it were the driver's. With
Wine detected, that version is now followed by "(Wine's placeholder, not
the host driver)". Anything else is printed as before.
Author
Owner

@⁠ySKELLETONX on GitHub · 2026-11-26 15:10 UTC · original

Thanks for testing it under Proton, @⁠KernelSmoker. Pushed 435f8a7: with Wine detected, a driver version ending in 65535.65535 is now printed as 32.0.65535.65535 (Wine's placeholder, not the host driver), so a report doesn't pass it off as the real driver. Anything else is printed as before; covered by wines_placeholder_driver_version_is_named. The host's own driver (620.73.04 in your case) isn't visible from inside Wine, so a Linux report still needs it by hand.

**@⁠ySKELLETONX** on GitHub · 2026-11-26 15:10 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/104#issuecomment-7195892593) Thanks for testing it under Proton, @⁠KernelSmoker. Pushed 435f8a7: with Wine detected, a driver version ending in `65535.65535` is now printed as `32.0.65535.65535 (Wine's placeholder, not the host driver)`, so a report doesn't pass it off as the real driver. Anything else is printed as before; covered by `wines_placeholder_driver_version_is_named`. The host's own driver (620.73.04 in your case) isn't visible from inside Wine, so a Linux report still needs it by hand.
Author
Owner

@⁠ySKELLETONX on GitHub · 2026-11-26 16:17 UTC · original

@⁠Belobug the default branch is now rx9070xt, which has diverged a lot from main (421 commits on one side, 550 on the other). My open PRs (#104, #115, #140, #253, #258, #264, #266) all target main. Is main retired? If so, I'll retarget them to rx9070xt. I checked with git merge-tree: #140 and #264 apply cleanly; #104, #115, #253 and #258 need small conflict fixes; #266 (clippy) would need to be redone against the new tree. #268 implements the same feature as this PR against rx9070xt; I commented there.

**@⁠ySKELLETONX** on GitHub · 2026-11-26 16:17 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/pull/104#issuecomment-7197444036) @⁠Belobug the default branch is now `rx9070xt`, which has diverged a lot from `main` (421 commits on one side, 550 on the other). My open PRs (#104, #115, #140, #253, #258, #264, #266) all target `main`. Is `main` retired? If so, I'll retarget them to `rx9070xt`. I checked with `git merge-tree`: #140 and #264 apply cleanly; #104, #115, #253 and #258 need small conflict fixes; #266 (clippy) would need to be redone against the new tree. #268 implements the same feature as this PR against `rx9070xt`; I commented there.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/104/head:github-bot/gh-104'
git switch 'github-bot/gh-104'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-104'
git switch 'github-bot/gh-104'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-104'
git switch 'github-bot/gh-104'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-104'
git switch 'main'
git merge --squash 'github-bot/gh-104'
git switch 'main'
git merge --ff-only 'github-bot/gh-104'
git switch 'main'
git merge 'github-bot/gh-104'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.