Skip to content

Docs: Linux tests, cross-build, running under Proton; ignore vkd3d/DXVK caches - #149

Closed
SkippySteve wants to merge 7 commits into
Marvisak:mainfrom
SkippySteve:docs/linux-proton
Closed

SkippySteve wants to merge 7 commits into
Marvisak:mainfrom
SkippySteve:docs/linux-proton

Conversation

@SkippySteve

@SkippySteve SkippySteve commented Nov 24, 2026 •

Copy link
Copy Markdown

Linux/Proton contributor docs, plus the .gitignore entries for the shader caches Proton leaves in a checkout. Absorbs #220.

Summary

Adds docs/linux-proton.md and one link to it in the README's Getting started. Docs only, no code.

The outcomes in the doc come from one NVIDIA machine. They are listed only as observations.

Test plan


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 policy checks untracked-but-not-ignored files too (git ls-files --others --exclude-standard), a stray vkd3d-proton.cache makes the policy check (and the pre-commit hook) fail:

POLICY: vkd3d-proton.cache: file type not on the allowlist
POLICY: vkd3d-proton.cache: binary content (NUL bytes)

Change

  • .gitignore: ignore vkd3d-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

  • With dummy binary vkd3d-proton.cache before the change: cargo xtask policy fails as above.
  • After the change, with dummy vkd3d-proton.cache, vkd3d-proton.cache.write, x.dxvk-cache and vkd3d_shader_cache/a present: cargo xtask policy → asset policy: 151 files ok, and git status shows none of them.

No assets or binaries added.

@LaunchDoesntCode LaunchDoesntCode left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for putting this guide together. I found two copy-paste issues in the Proton example:

  • The build steps produce target/x86_64-pc-windows-msvc/{release,diag}/victory.exe, but the run command uses $PWD/victory.exe. From the repository root that file does not exist unless it has been copied there. Could the example point to the selected build output explicitly?
  • The command redirects host.out.log and host.err.log into $PWD, which is likely the repository root after the build steps. That conflicts with the guide's instruction to keep title-derived logs outside the repository. Could those paths use a dedicated directory outside the checkout?

I could not execute this exact UMU command locally because umu-run is not installed here; these two path issues are visible from the documented commands.

…e repo

The Proton example ran $PWD/victory.exe, which only exists if copied
there, and wrote host.out.log/host.err.log into the repository root.
Point it at target/x86_64-pc-windows-msvc/release/victory.exe and put
the logs in a per-run folder under ~/.local/share/victory/logs.
@SkippySteve

Copy link
Copy Markdown
Author

@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

  • The run command now uses the cargo output directly: VICTORY_BIN=$PWD/target/x86_64-pc-windows-msvc/release/victory.exe (swap in .../diag/victory.exe for the diagnostics build). If you copy the exe somewhere else, point VICTORY_BIN at that copy instead. It should still be outside the repo.
  • host.out.log / host.err.log now go to a per-run folder outside the checkout: LOGS=$HOME/.local/share/victory/logs/$(date +%Y%m%d-%H%M%S), created with mkdir -p before the run.

How the Linux/Proton flow fits together, in case it helps when you try it:

  1. On Linux you cross-build a Windows PE, victory.exe. That is the host, and the title runs inside that Windows process. Nothing in this flow is a native Linux binary.
  2. Under Proton/umu, the Linux filesystem appears as the Z: drive. So every path the host sees (game dir, cache, data, the exe itself, log files) is an absolute Linux path written as Z:\home\.... The little z() helper in the example does that conversion: $HOME/.local/share/victory/logs/<run>/host.out.log becomes Z:\home\<you>\.local\share\victory\logs\<run>\host.out.log.
  3. Proton doesn't pass the host console through, so the example wraps the run in cmd.exe /c and redirects stdout/stderr to files. Otherwise you get no host log at all.
  4. Asset policy: game files, cache, data and host logs all stay outside the git checkout, and the VICTORY_* variables just point at those folders. The only thing the example reads from inside the repo is the build output under target/, which is already gitignored.

If you get umu-run installed and something still doesn't line up, let me know.

@SkippySteve

Copy link
Copy Markdown
Author

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), while victory run stays the cross-built victory.exe under 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

Copy link
Copy Markdown

Docs-only, so nothing to run, but I checked the claims it makes:

No game data used.

@SkippySteve

Copy link
Copy Markdown
Author

Polished in bcf732a after reviewing #195 (docs only, branch is current with main):

muhammed-aksoy pushed a commit to muhammed-aksoy/VIctory that referenced this pull request Nov 24, 2026
@SkippySteve SkippySteve changed the title Docs: Linux tests, cross-build and running under Proton Docs: Linux tests, cross-build, running under Proton; ignore vkd3d/DXVK caches Nov 24, 2026
muhammed-aksoy pushed a commit to muhammed-aksoy/VIctory that referenced this pull request Nov 24, 2026
edsuuu referenced this pull request in edsuuu/VI-BR-PORT Nov 24, 2026
…ignore vkd3d/DXVK caches

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…with #241

The host-test block now lists exactly what #232's job runs (clippy on
seven crates plus xtask, victory-shader lib, cargo test with the PE
self-parse skips). Add the TMPDIR-inside-checkout failure, and a section
on where native tools keep files on main versus with #241.
@Dathinel

Copy link
Copy Markdown
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linux: main does not build (E0425 in victory-gpu); with #39 the workspace builds and 156 tests pass

5 participants