victory system: say what this machine is, and what stands in the way (#104) #268
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD!268
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-268"
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?
@redlight-06 on GitHub · 2026-11-26 15:14 UTC · original
redlight-06:system→rx9070xt· +3575 −265 · 43 files · 55 commits · openCloses #104.
victory systemprints, with no title and no game file, what a run on this machine would meet: the Windows version, the processor and its AVX2, the memory and the commit limit, then for every adapter the facts that decide whether VIctory can run at all — waves, shader model, mesh shaders, binding tier, the largest shader-visible view heap it makes, and the upload heap — and finally the risks that follow from them.--versioncarries the commit the build was made from, so a report can be placed against a build (#104's first line).On the laptop this was written on (the free-memory numbers move between runs; this is one run with nothing else going on):
It was run against the title
With the full game files to hand, the branch boots the title and reaches the world load, which is what the report above is checked against:
core_restofworld.rpfandstory000_restofworld.rpfand draws 400–5,900 draws a frame at 0–1 fps with about 15.7 GB private and climbing — the 32-lane waves (#9) doing their work, not a crash;host pipeline refused error=E_INVALIDARG shaders=[compute 02384a60fda6f2d0](twice), each followed bya dispatch without a host pipeline dropped. Same shape as #259, on 6.7 rather than an under-6.6 runtime, so the two may be worth comparing after all — this machine's shader model is not the reason;host view heap capped at 1000000appears once, which is the #15/#74 warning in the log rather than only insystem's output.Two things the run changed in this branch
D3D_SHADER_MODEL_6_0is0x60, not 100, so the0x67this device answers is 6.7. The first version of this branch printed "6.3" and listed a shader-model blocker that was not there;system::shader_model()now reads the value as the model it names, with a test (0x60→6.0, 0x67→6.7, 0x69→6.9) and a run of the title to confirm the mesh pipelines build.How the facts are got
The same calls a run makes, so a report is what a run meets:
CreateDXGIFactory1,EnumAdapters1; the software adapter skipped. A laptop that lists one card under two Luids (two display paths) is named once.D3D12CreateDevice(&adapter, D3D_FEATURE_LEVEL_12_0), thenCheckFeatureSupportforOPTIONS1(waves),SHADER_MODEL,OPTIONS7(mesh shader tier),OPTIONS(binding tier),OPTIONS16(upload heap), and a descriptor-heap probe at 1<<22, 1<<21 and 1,000,000 — the three sizesprobe_view_limitasks, so the number agrees with what a run decides.D3D12CreateDevice(None, ...)) is made on, matched by LUID.GlobalMemoryStatusEx; the commit limit is physical plus paging file, which is what the title's own working set meets.CurrentBuildandUBR(aREG_DWORD) fromHKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion; 22000 and up is Windows 11.ProcessorNameString(trimmed — the registry pads it),GetSystemInfofor the thread count,IsProcessorFeaturePresent(PF_AVX2_INSTRUCTIONS_AVAILABLE).ntdllexportswine_get_version(#6, #19).What changes
crates/victory-gpu/src/system.rs:Facts,Cpu,Memory,Gpu,shader_model(), the rendering and the blocker rules — no device needed, eleven tests that feed made-up machines (a machine that runs the title; 32-lane waves; a title-sized view heap; no mesh shaders; little commit; plenty of commit; Wine; a build that does not know its commit; two adapters where one makes no device; only the used one marked; a shader model value read as the model it names).crates/victory-gpu/src/system/gather.rs(Windows): the calls above. The non-Windows build gets a defaultFacts, so the workspace still builds.apps/victory/src/main.rs,build.rs: thesystemsubcommand, and the commit in--version— the script used to watch.git/HEADalone, whose text does not change when a commit lands on the branch, so--versionkept naming whichever commit was HEAD when it first ran; it now watches the branch's own file (orpacked-refs) too.apps/victory/Cargo.tomlgainsvictory-gpu— already linked throughvictory-hle, so no new package.crates/victory-hle/src/modules/gameinput.rs:VICTORY_PAD_LOG=1(diagnostics builds) logs the pad reading the title is handed, which is how the front end was driven in the run above.README.md: a paragraph next to the other commands.Verified
cargo test -p victory-gpu --lib system::— 11 passed.cargo test -p victory— 2 passed.cargo run -p victory -- systemand-- --versionon Windows 11 26100.3624 / Ryzen 9 8945HX / RTX 5060 Laptop, built on a mingw toolchain, so the rawD3D12CreateDeviceand registry paths are exercised for real.victory run --executeagainst the full game files: boots to the front end, the first-run flow completes, the world load starts (numbers above), no crash in about forty minutes of run time across attempts.cargo clippy -p victory-gpu --libreports only the warnings already in the tree on 1.98 — the 25manual_is_multiple_ofones I listed in a comment).Not verified
E_INVALIDARGcompute pipelines are observed, not explained: no D3D12 debug layer on this machine (no D3D12 debug layer error=0x887A002D), so there is no driver message to read yet.probe_view_limittries — but I have not run it on a card that has to page-fault to answer (the AMD RDNA3 case indescriptor/host.rs's comment).@redlight-06 on GitHub · 2026-11-26 15:16 UTC · original
A heads-up on the clippy step, so a red CI is not read as this branch failing:
On the pinned toolchain (1.98.1)
cargo clippy --workspace --all-targets -- -D warningsalready fails onrx9070xtwithout this branch, onmanual_is_multiple_ofand friends — 25 errors in files this branch does not touch:crates/victory-gpu/src/host/indirects.rs8crates/victory-gpu/src/draw.rs3crates/victory-gpu/src/shadow.rs2crates/victory-gpu/src/pipeline/known.rs2crates/victory-gpu/src/host/send.rs2crates/victory-gpu/src/resource.rs2crates/victory-gpu/src/host.rs2crates/victory-gpu/src/land.rs1crates/victory-gpu/src/watch.rs1system.rsandsystem/gather.rsare clean under the same run (cargo clippy -p victory-gpu --lib --message-format shortreports nothing for them). I left the pre-existing ones alone rather than mixing an unrelated mass edit into this PR.@ -0,0 +159,4 @@if supports(device, D3D12_FEATURE_SHADER_MODEL, &mut model) {// The call answers with the highest it takes of the one asked for:// 6.0 is 100, so 103 is 6.3.gpu.shader_model = Some((6, model.HighestShaderModel.0.saturating_sub(100) as u32));@gut0to on GitHub · 2026-11-26 15:31 UTC · original
D3D_SHADER_MODEL values use hexadecimal nibbles (
6_0 = 0x60,6_6 = 0x66), so subtracting decimal 100 maps 6.6 to 6.2 and saturates 6.0 to 0. This makes the system report inaccurate and can produce false shader-model blockers. Could this decode the major/minor nibbles (or use an explicit mapping) and cover 6.0, 6.6, and 6.8 in a test?@gut0to on GitHub · 2026-11-26 15:31 UTC · original · reviewed
AI-assisted review; I checked the D3D_SHADER_MODEL values against Microsoft documentation. I did not run the code or the game.
@ySKELLETONX on GitHub · 2026-11-26 16:17 UTC · original
Confirming gut0to's point, and it changes the #259 reading:
D3D_SHADER_MODELis nibble-coded (D3D_SHADER_MODEL_6_6 = 0x66), so the103this machine returns is0x67, shader model 6.7, not 6.3.gather.rs:162turns that into 6.3, and asking for 6.4–6.9 and always getting the same 103 back is just the driver capping at 6.7.So the shader-model lead for #259 doesn't hold: the gate at
crates/victory-shader/src/emit/host.rs:107comparesHighestShaderModel.0 < D3D_SHADER_MODEL_6_6.0, i.e.0x67 < 0x66, which is false, so an RTX 5060/5070 Laptop passes it. TheE_INVALIDARGthere has another cause. The "Shader model 6.3" blocker in the sample output is the same artifact.A decode that matches the type:
let m = model.HighestShaderModel.0 as u32; (m >> 4, m & 0xf).On overlap: #104 (mine, against
main) is the samevictory system+ commit-in---versionfeature and already decodes the model this way. Sincerx9070xtis now the default branch, I'm happy to port #104 onto it, or to review this one once the decode is fixed. Whichever the maintainer prefers, so we don't end up with two copies of the same command.@redlight-06 on GitHub · 2026-11-26 16:34 UTC · original
Ran the title on this machine with the branch, to see the fact sheet against a real run (RTX 5060 Laptop, 32 lanes, 32 GB RAM).
21 draws/frame), and the front end is navigable from the keyboard once the window has focus: language → navigation experience → legal notices → privacy/ToS → world streaming. (Focus is the catch:SetForegroundWindowalone is refused here; a tapped Alt first gets it.)core_restofworld.rpfandstory000_restofworld.rpfand then renders 400–2,800 draws a frame at 0–1 fps (0.8–2.7 s a frame) with about 15.7 GB private and climbing. I stopped it there; that is thewaves of 32 to 32 lanesblocker at work, not a crash.VICTORY_PAD_LOG=1(new, diagnostics) says what the title is handed when it asks: readings come every ~9 ms with the button the keyboard map chose — so a start screen that looks dead can now be told from one that never asks.host pipeline refused error=E_INVALIDARG shaders=[compute 2da4beb386509b77](twice, during the load) anda dispatch without a host pipeline dropped. There is alsoplaced unordered texture view not mirrored.Correction this run forced on the fact sheet: the first version read
D3D_SHADER_MODELas if 6.0 were 100, so the 0x67 this device answers came out "6.3" and the title's shaders were blamed for it. 6.0 is 0x60. Fixed in3c15774, andvictory systemnow says 6.7 here — which the mesh pipelines that build at runtime agree with.@redlight-06 on GitHub · 2026-11-26 16:47 UTC · original
Two more commits, both found by running the title against the branch.
--versionwas naming the wrong commit.build.rswatched.git/HEADonly, whose text does not change when a commit lands on the branch, so the version kept the hash it first saw (7c350bewhile the branch was at1f75c2d). It now watches the branch's own file (orpacked-refs) as well;victory --versionandgit rev-parse --short=7 HEADagree again. That matters for this very issue: a report can only be placed against a build if the build names the commit it was actually made from.The commit figure is no longer called a verdict. The title reached the world load with 40.5 GiB of commit free, so "43 GiB or Windows refuses 1455" was a claim this module cannot test. It now prints the figure and the working set it is measured against (the README's 40–46 GiB), as a risk.
What the run refused, in case it is useful to someone with a debug layer: two compute pipelines,
E_INVALIDARG,shaders=[compute 02384a60fda6f2d0], each followed bya dispatch without a host pipeline dropped. The shader translated fine (shader translated stage=compute hash=02384a60fda6f2d0), so it is PSO creation and not lowering — the same shape as #259, on an SM 6.7 runtime. This machine has no D3D12 debug layer (0x887A002D), so the driver's own words are not available here.The PR body now carries the run instead of a "no title here" caveat, including the numbers behind the 32-lane waves blocker: 400–5,900 draws a frame at 0–1 fps with ~15.7 GB private, which is why nothing here claims the prologue is reachable on NVIDIA.
@WellyngtonSantos on GitHub · 2026-11-26 18:58 UTC · original
Thanks for
victory system. A report that collects the machine for you is exactly what a tester without a working setup needs. I ran it atd684ee0on two hosts that none of the outputs in this PR cover: an old pre-RDNA card, and Wine. Neither machine has the title, so this is the tool alone, which is the case the PR is meant for.How it was built
Cross-compiled on Linux with cargo-xwin, using the pinned 1.98.1 toolchain:
It built cleanly in 1 min 43 s, with 13 warnings in
victory-gpu(twodropping_copy_typesinpipeline/known.rs, lines 64 and 223).--versionprintsvictory 0.1.0 (d684ee0), so the commit stamp works for a cross-compiled build too. The samevictory.exe(SHA-256d6f5c4fc…ccfd8e) was used on both hosts.Host 1: Windows 11, Radeon RX 580 (Polaris), 16 GB
15.9 GiB of RAM: the README recommends 64 GB, would show it to testers on smaller machines even when the page file is large.Host 2: Wine 10.0 on Debian 13 (headless, Xvfb), i7-2600, GeForce GTX 1050 Ti
Run as
xvfb-run -a wine victory.exe systemwith a fresh prefix and Debian'swine10.0 package. The NVIDIA driver is 550.163.01, with Vulkan available.AVX2 no, and this Sandy Bridge CPU really has none, butKnown blockersdoesn't mention it, although the README lists AVX2 as a requirement. Incrates/victory-gpu/src/system.rs,Facts::blockers()checks Wine, the adapter, waves, the view heap, mesh shaders, shader model and commit, but nevercpu.avx2, even though the field's own doc comment sayszlib-rsand the translator's copies rely on it. On a Windows host with such a CPU and a capable GPU, the report would end with "No known blockers." This is the one finding I'd call a bug. Something likeif !self.cpu.avx2 { out.push("No AVX2: …".into()) }before the adapter check would also show it when no adapter qualifies, as it does here.Available for more testing
Both machines are available for anything that doesn't need the title: rerunning
victory systemon later commits, checking the AVX2 and RAM lines once they change, the build and cross-compile path, and Wine/Linux behaviour. We don't have the game, so in-game reports aren't something we can give. Happy to rerun on any commit you point me to.victory doctorcommand to check a PC before a run #285d684ee048ctoec27391454@redlight-06 on GitHub · 2026-11-27 01:53 UTC · original
One more commit, and it closes the
E_INVALIDARGI could not explain in the report above.The three refused compute programs are console wave64 programs, not broken DXIL:
victory translate --warm <one-hash>into an empty cache gives the translated container;dxv.exeon its DXIL saysValidation succeeded.dxc -dumpbinsays what the refusal is about:NumThreads=(128,1,1),WaveSize=64.D3D12_FEATURE_D3D12_OPTIONS1with waves of 32 to 32 lanes, andlower()keepsWaveSize(64)exactly where it cannot split a console wave into 32-lane halves. D3D12 then refusesCreateComputePipelineStatewithE_INVALIDARGand the log said nothing about why.So the bare error was #9 showing up at pipeline creation, and it read like a driver fault.
victory_shader::dxbc::wave_sizenow reads the width a container asks for out ofPSV0, and compute pipeline creation names it before asking the device. Same run, same shader, after the change:No behaviour change for programs the host can run (
wave_sizereturnsNonewhen the container leaves the width to the device), and the check only fires for compute stages.Repro for anyone on a 32-lane host:
@redlight-06 on GitHub · 2026-11-27 06:05 UTC · original
On
crates/victory-gpu/src/system/gather.rsline 162 (outdated):Right — and it is already fixed on this branch, in
b72f317 system: read the shader model value as the model it names (#104)(the commit after the one this comment was left on).system.rsnow carriesconst SHADER_MODEL_6_0: u32 = 0x60;andso the nibbles are read as written, with the test
a_shader_model_value_is_read_as_the_model_it_namescovering0x60 → (6,0),0x63 → (6,3),0x67 → (6,7),0x69 → (6,9), and0x50 → (6,0)(the clamp case).What it changed for the report on this machine:
D3D12_FEATURE_DATA_SHADER_MODELanswers0x67, which the old decode printed asshader model 6.3and turned into a false "the title's shaders are written for 6.6 and above" blocker. It now printsshader model 6.7and the blocker list is down to the two real ones (32-lane waves, commit headroom).The current output, from the same build that ran the title:
@adrianmjim on GitHub · 2026-11-27 07:26 UTC · original
Tested
victory systematbb666a6on an RX 7900 XT (RDNA3), driver 32.0.32029.2010, Windows 11 26300.9974. I mergedbb666a6onto a-publier4eb6cfd(local commit 46fd93f) and made a release build with Rust 1.98.1.Merge: one conflict, in
gameinput.rsState::poll, against #295. I kept #295'sfold(stand_in, merged)and put theVICTORY_PAD_LOGblock after it. The rest merged cleanly.system::11/11,dxbc::3/3 andcargo test -p victorypass.Output, with the CPU and memory lines left out. With
VICTORY_D3D12_ADAPTER=0it was the same apart from free memory:b72f317reads as 6.8. Waves 32-64, mesh shaders and binding tier 3 are what RDNA3 should report.descriptor/host.rscame from a shader reading past the end of the heap, andsystemdoes not do that.GPU upload heap nois right here. The BAR is 256 MiB (Resizable BAR off).From the code at
bb666a6. This machine has one adapter, so it could not show these:(used)still comes fromD3D12CreateDevice(None, ...). On rx9070xt, the branch's base, a run makes its device withcreate_preferred_device()(crates/victory-gpu/src/host.rs:1017). That function honoursVICTORY_D3D12_ADAPTER, and otherwise takes the first high-performance adapter with SM 6.6 or higher. On an iGPU + dGPU machine the mark and the device a run uses can differ, andVICTORY_D3D12_ADAPTERnever moves the mark.probe_view_limit()only with raw twins on (the default). WithVICTORY_RAW_VIEWS=0a run uses 1<<21, butsystemstill reports 4194304.SHADER_MODELis still asked once, at 6_9. A D3D12 runtime that does not know 6_9 rejects the query instead of capping it, so the line would read "unknown".blockers()checks the shader model only when it isSome, so the shader-model blocker would be skipped on exactly the older runtimes it is meant for. The runtime's own gate (shader_model()incrates/victory-shader/src/emit/host.rs) asks at 6_6, so on such a runtime a run andsystemdisagree. Stepping down from 6_9 when the query fails would avoid that. The 26300 runtime accepts the query.Build:
ec27391still builds every watched path from../../.git/. In a git worktree.gitis a file, so../../.git/HEADdoes not exist and cargo reruns the script on every build. Two no-opcargo build --release -p victoryin a row each loggedthe file apps\victory\../../.git/HEAD is missingand recompiled thevictorycrate.--versionis still correct (46fd93f). From the code, a build with no.gitat all (the tarball case in the script's own comment) does the same, because../../.git/HEADis always watched. Paths fromgit rev-parse --git-path HEADand--git-common-dirwould cover worktrees. WatchingHEADonly when it exists would cover the tarball case.Not tested: the title, a machine with two adapters, an older D3D12 runtime, a run with
VICTORY_RAW_VIEWS=0, a build outside a git checkout, thebb666a6wave check (this card runs 64-lane waves).bb666a6ce9to12fc45e3aeView 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.