Docs: Linux tests, cross-build, running under Proton; ignore vkd3d/DXVK caches #149
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!149
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/149/head"
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?
@SkippySteve on GitHub · 2026-11-24 00:58 UTC · original
docs/linux-proton→main· +250 −1 · 4 files · 7 commits · closed without mergingLinux/Proton contributor docs, plus the
.gitignoreentries for the shader caches Proton leaves in a checkout. Absorbs #220.Summary
Adds
docs/linux-proton.mdand one link to it in the README's Getting started. Docs only, no code.load_probeunder Wine), #112, #191 (replaced #195), #241 (XDG data dir, config-relative paths).victory-shaderlib,cargo testwith the PE self-parse--skips), a note thatTMPDIRmust be outside the checkout,gh pr checkout 235for the full workspace, and how to run the Windows test binaries under Wine. Tests use synthetic data only.main(data under~/.cache) vs with #241 (XDG cache/data,~expansion, Windows drive paths refused); none of it changesvictory.exeunder Proton.victory.exe(release anddiag) forx86_64-pc-windows-msvcwith xwin,lld-linkandclang-cl.umu-run,Z:paths for theVICTORY_*variables, andcmd.exe /credirection because Proton drops the console. D3D12 goes through vkd3d-proton.main. #76 is still open and needs a rebase.VICTORY_KEYSandVICTORY_STACKStake effect only in thediagbuild.docs/asset-policy.md.The outcomes in the doc come from one NVIDIA machine. They are listed only as observations.
Test plan
Current
main(d2a4bae) on Arch Linux: #232's exact CI commands (policy, both clippy steps,cargo testwith the skips) pass; test run gives 96 passed, 0 failed, 3 ignoredWith
TMPDIRinside the checkout,policy::tests::accepts_unrelated_directoriesfails withInsideRepo, as the doc saysmain'sdefault_dirputs the data folder under the cache base whenLOCALAPPDATAis unset, as the doc says; the #241 behaviour is taken from its diff and descriptionCurrent
main(d2a4bae) on Arch Linux: the doc's native subset (cargo check --all-targetson 7 crates,cargo teston 5) gives 89 passed, 0 failed, 3 ignored;cargo xtask policy152 files okCurrent
main(9aef3d9) on Arch Linux:cargo check -p victory-gpufails with the E0425 the doc quotes#112's head:
cargo test --workspace --lockedgives 165 passed, 0 failed, 3 ignoredCurrent
main: the doc's cross-build commands build bothrelease/victory.exeanddiag/victory.exegit merge-treeagainstmain: #39, #112 and #76 each conflict, as the doc sayscargo xtask policyreports 152 files okNo game files, paths, hashes or logs in the diff
Also: ignore Wine/Proton shader caches (was #220)
Running VIctory under Wine/Proton from a checkout leaves vkd3d-proton / DXVK shader caches in the working directory. Because
cargo xtask policychecks untracked-but-not-ignored files too (git ls-files --others --exclude-standard), a strayvkd3d-proton.cachemakes the policy check (and the pre-commit hook) fail:Change
.gitignore: ignorevkd3d-proton.cache,vkd3d-proton.cache.write,vkd3d_shader_cache/,*.dxvk-cache, next to the other derived-data entries.docs/asset-policy.md: one paragraph under "Where data lives" noting these are derived data and how to redirect them (VKD3D_SHADER_CACHE_PATH,DXVK_STATE_CACHE_PATH).Testing
vkd3d-proton.cachebefore the change:cargo xtask policyfails as above.vkd3d-proton.cache,vkd3d-proton.cache.write,x.dxvk-cacheandvkd3d_shader_cache/apresent:cargo xtask policy→asset policy: 151 files ok, andgit statusshows none of them.No assets or binaries added.
@SkippySteve on GitHub · 2026-11-24 01:09 UTC · original
@LaunchDoesntCode thanks for the review. You're right on both counts: those were copy-paste mistakes from my own setup. Fixed in
1fdb325.What changed
VICTORY_BIN=$PWD/target/x86_64-pc-windows-msvc/release/victory.exe(swap in.../diag/victory.exefor the diagnostics build). If you copy the exe somewhere else, pointVICTORY_BINat that copy instead. It should still be outside the repo.host.out.log/host.err.lognow go to a per-run folder outside the checkout:LOGS=$HOME/.local/share/victory/logs/$(date +%Y%m%d-%H%M%S), created withmkdir -pbefore the run.How the Linux/Proton flow fits together, in case it helps when you try it:
victory.exe. That is the host, and the title runs inside that Windows process. Nothing in this flow is a native Linux binary.Z:drive. So every path the host sees (game dir, cache, data, the exe itself, log files) is an absolute Linux path written asZ:\home\.... The littlez()helper in the example does that conversion:$HOME/.local/share/victory/logs/<run>/host.out.logbecomesZ:\home\<you>\.local\share\victory\logs\<run>\host.out.log.cmd.exe /cand redirects stdout/stderr to files. Otherwise you get no host log at all.VICTORY_*variables just point at those folders. The only thing the example reads from inside the repo is the build output undertarget/, which is already gitignored.If you get
umu-runinstalled and something still doesn't line up, let me know.@SkippySteve on GitHub · 2026-11-24 01:21 UTC · original
Added a short section, Tools on Linux vs running the title: the file-only subcommands (
inspect,census,lib-exports,shader-info,translate,config) can build as a native Linux ELF once the workspace Linux gates land (#112, tracking #90), whilevictory runstays the cross-builtvictory.exeunder Proton. It mentions a local, unmerged test where shader translation ran on the host without Wine; it does not claim that work is merged.@DaviTostes on GitHub · 2026-11-24 01:28 UTC · original
Docs-only, so nothing to run, but I checked the claims it makes:
mainatd2a4baestill fails on Linux withE0425: cannot find function 'host_resource' in this scope(victory-gpu/src/resource.rs), so the note is accurate; #39 and #112 are both still open.lld-link/clang-clcross-build instructions match the setup used here (Arch, cargo-xwin 0.24.1,lld-linkfrom LLVM) and work.No game data used.
@SkippySteve on GitHub · 2026-11-24 01:29 UTC · original
Polished in
bcf732aafter reviewing #195 (docs only, branch is current withmain):VKD3D_SHADER_CACHE_PATHto a folder outside the checkout, so a strayvkd3d-proton.cacheno longer tripscargo xtask policy.D3DCompilecan refuse the argument clamp (#170). The open fixes #178 (DXC fallback) and #190 (hand-written DXIL) conflict, so only one should be merged. Measurements are in the comments on those PRs.@Dathinel on GitHub · 2026-11-24 06:16 UTC · original
One small PR-description edit would keep the Linux build issue open until the build fix lands. GitHub currently lists #90 in this PR's
closingIssuesReferences. Could you change#235 (cfg gates, closes #90)to#235 (cfg gates for #90)? That preserves both links and lets #235 close the issue when its code merges.Pull request closed