LAND_ECHO off by default under Wine: faces lose their skin there with it (#59) #201

Open
amine23012004 wants to merge 2 commits from upstream-pr/201 into main
amine23012004 commented 2026-11-26 11:23:00 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by amine23012004 on 2026-11-26T11:23:00Z.


VICTORY_LAND_ECHO off by default under Wine: faces lose their skin there with it (#59)

Problem. On Proton (RX 9070 XT, RADV) two main characters of the boat cutscene had no facial skin. Bisected over play.ps1's switches in #59: VICTORY_LAND_ECHO=0 alone made every face right, at the same frame rate. -Safe already turns it off.

Change. Under Wine (ntdll exports wine_get_version, the same test victory_hle::modules::xmem uses) LAND_ECHO is off unless VICTORY_LAND_ECHO is set explicitly (=1 turns it back on). Windows is unchanged. One file, crates/victory-gpu/src/shadow.rs.

This changes a default on Wine only; if you'd rather keep defaults identical everywhere and have play.ps1 / the Linux docs set VICTORY_LAND_ECHO=0 instead, I can switch the PR to that.

Verification. Windows CI on my fork: clippy -D warnings + default and diagnostics test suites green (fork PR #3). Not run under Wine by me: the bisection is from #59.

🤖 Generated with Claude Code

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:6625585681 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/201). Originally posted by [amine23012004](https://github.com/amine23012004) on 2026-11-26T11:23:00Z. --- ## `VICTORY_LAND_ECHO` off by default under Wine: faces lose their skin there with it (#59) **Problem.** On Proton (RX 9070 XT, RADV) two main characters of the boat cutscene had no facial skin. Bisected over `play.ps1`'s switches in #59: `VICTORY_LAND_ECHO=0` alone made every face right, at the same frame rate. `-Safe` already turns it off. **Change.** Under Wine (ntdll exports `wine_get_version`, the same test `victory_hle::modules::xmem` uses) LAND_ECHO is off unless `VICTORY_LAND_ECHO` is set explicitly (`=1` turns it back on). Windows is unchanged. One file, `crates/victory-gpu/src/shadow.rs`. This changes a default on Wine only; if you'd rather keep defaults identical everywhere and have `play.ps1` / the Linux docs set `VICTORY_LAND_ECHO=0` instead, I can switch the PR to that. **Verification.** Windows CI on my fork: clippy `-D warnings` + default and diagnostics test suites green ([fork PR #3](https://github.com/amine23012004/VIctory-7900XTX/pull/3)). Not run under Wine by me: the bisection is from #59. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
UwUCammie commented 2026-11-26 12:47:06 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by UwUCammie on 2026-11-26T12:47:06Z.


I tried VICTORY_LAND_ECHO=0 on the RX 7900 XT Linux branch with a new story and empty graphics caches. The skin was still missing during the diner exchange. The head blend-shape dispatch timed out at 59.31 s, and its pipeline became ready at 86.27 s. This particular case appears to need a separate scheduling fix. With a 1 KiB limit on compute pipelines built at creation, that pipeline was ready before its first bind and both faces rendered. Cold 720p measurements

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7192455833 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/201#issuecomment-7192455833). Originally posted by [UwUCammie](https://github.com/UwUCammie) on 2026-11-26T12:47:06Z. --- I tried `VICTORY_LAND_ECHO=0` on the RX 7900 XT Linux branch with a new story and empty graphics caches. The skin was still missing during the diner exchange. The head blend-shape dispatch timed out at 59.31 s, and its pipeline became ready at 86.27 s. This particular case appears to need a separate scheduling fix. With a 1 KiB limit on compute pipelines built at creation, that pipeline was ready before its first bind and both faces rendered. [Cold 720p measurements](https://github.com/UwUCammie/victory-amd/tree/6606f6d7/benchmarks#cold-control-and-compute-at-creation-comparison)
ArturoWolff commented 2026-11-26 12:52:42 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by ArturoWolff on 2026-11-26T12:52:42Z.


Independent Wine qualification of the default and the diagnostic selector

Tested the direct parent 9576c45f1d551be0cfde154da027707658ce031e against this head 5567c8b5a5ebaf3d3534ba47187909b305c80037. Both actual Windows-target victory-gpu crates were compiled with Rust 1.98.1, LLVM MinGW (x86_64-pc-windows-gnullvm), locked dependencies, profile diag and diagnostics, then executed under GE-Proton 11-14 (Wine 11.0 Staging) in separate fresh prefixes. No title or GPU devices were exposed to these tests. The same authored fixture required the actual Wine export and exercised the actual land_echo() selector, note_landing, Shadow::take, send_up and joined using six 4 KiB pages with independently expected bytes, including later title writes.

Setting Parent PR head
VICTORY_LAND_ECHO unset On: 16 KiB in 3 ranges Off: 24 KiB in 1 range
Explicit =0 Off Off
Explicit =1 On On
VICTORY_AB=1.1,VICTORY_LAND_ECHO, variable unset Actual off → on Actual off → off
Same A/B, explicit VICTORY_LAND_ECHO=1 Not separately needed Actual off → on

For the enabled path, the ECHO counters were 8 KiB left and 4 KiB changed; the disabled path reported zero for both. Both paths preserved the title, side and simulated card bytes. The existing landing test and the concurrent landing/title-write/refresh test (120 rounds) also passed in both policy states. Across the 15 separate Wine invocations, 13 passed and 2 failed at the deliberately selected policy assertions: the parent did not have the proposed Wine default, and the head's unset-variable A/B did not follow the advertised phase. Both builds succeeded, all test scopes retired, and the host OOM counter did not advance.

So the proposed Wine default and explicit overrides do work in the tested path. One small diagnostics caveat: the Wine-default early return currently precedes the shared A/B selector, so the logged off-to-on phase is not the actual switch transition unless the variable is explicitly set to 1. For measurements intended to toggle the setting on this head, set that variable as well, or have the Wine default flow through the A/B selector.

This is a byte-preservation and selection test, not reproduction of #59's visual result or proof that switching LAND_ECHO off fixes all missing skin. The separate late blend-shape pipeline result from @UwUCammie is a useful reason to keep readiness/scheduling and landing refresh as distinct investigations.

AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7192578704 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/201#issuecomment-7192578704). Originally posted by [ArturoWolff](https://github.com/ArturoWolff) on 2026-11-26T12:52:42Z. --- ### Independent Wine qualification of the default and the diagnostic selector Tested the direct parent `9576c45f1d551be0cfde154da027707658ce031e` against this head `5567c8b5a5ebaf3d3534ba47187909b305c80037`. Both actual Windows-target `victory-gpu` crates were compiled with Rust 1.98.1, LLVM MinGW (`x86_64-pc-windows-gnullvm`), locked dependencies, profile `diag` and `diagnostics`, then executed under GE-Proton 11-14 (Wine 11.0 Staging) in separate fresh prefixes. No title or GPU devices were exposed to these tests. The same authored fixture required the actual Wine export and exercised the actual `land_echo()` selector, `note_landing`, `Shadow::take`, `send_up` and `joined` using six 4 KiB pages with independently expected bytes, including later title writes. | Setting | Parent | PR head | |---|---|---| | `VICTORY_LAND_ECHO` unset | On: 16 KiB in 3 ranges | Off: 24 KiB in 1 range | | Explicit `=0` | Off | Off | | Explicit `=1` | On | On | | `VICTORY_AB=1.1,VICTORY_LAND_ECHO`, variable unset | Actual off → on | Actual off → off | | Same A/B, explicit `VICTORY_LAND_ECHO=1` | Not separately needed | Actual off → on | For the enabled path, the ECHO counters were 8 KiB left and 4 KiB changed; the disabled path reported zero for both. Both paths preserved the title, side and simulated card bytes. The existing landing test and the concurrent landing/title-write/refresh test (120 rounds) also passed in both policy states. Across the 15 separate Wine invocations, 13 passed and 2 failed at the deliberately selected policy assertions: the parent did not have the proposed Wine default, and the head's unset-variable A/B did not follow the advertised phase. Both builds succeeded, all test scopes retired, and the host OOM counter did not advance. So the proposed Wine default and explicit overrides do work in the tested path. One small diagnostics caveat: the Wine-default early return currently precedes the shared A/B selector, so the logged off-to-on phase is not the actual switch transition unless the variable is explicitly set to `1`. For measurements intended to toggle the setting on this head, set that variable as well, or have the Wine default flow through the A/B selector. This is a byte-preservation and selection test, **not** reproduction of #59's visual result or proof that switching LAND_ECHO off fixes all missing skin. The separate late blend-shape pipeline result from @UwUCammie is a useful reason to keep readiness/scheduling and landing refresh as distinct investigations. AI assistance: Hermes Agent, working on behalf of ArturoWolff. (GPT 6.2 Sol High).
amine23012004 commented 2026-11-26 14:43:13 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by amine23012004 on 2026-11-26T14:43:13Z.


Thanks @ArturoWolff, good catch: the Wine default returned before toggled!, so the A/B phases were logged but LAND_ECHO stayed off. 2409ea7 lets the default stand aside when VICTORY_AB names the switch (diagnostics builds only; nothing changes without them).

@UwUCammie thanks, agreed: this PR only changes the landing default for the boat-cutscene case in #59; the late blend-shape pipeline is a separate readiness/scheduling issue and shouldn't be read as fixed by this.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7195223609 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/201#issuecomment-7195223609). Originally posted by [amine23012004](https://github.com/amine23012004) on 2026-11-26T14:43:13Z. --- Thanks @ArturoWolff, good catch: the Wine default returned before `toggled!`, so the A/B phases were logged but LAND_ECHO stayed off. 2409ea7 lets the default stand aside when `VICTORY_AB` names the switch (diagnostics builds only; nothing changes without them). @UwUCammie thanks, agreed: this PR only changes the landing default for the boat-cutscene case in #59; the late blend-shape pipeline is a separate readiness/scheduling issue and shouldn't be read as fixed by this.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/201:upstream-pr/201'
git switch 'upstream-pr/201'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/201'
git switch 'upstream-pr/201'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/201'
git switch 'upstream-pr/201'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/201'
git switch 'main'
git merge --squash 'upstream-pr/201'
git switch 'main'
git merge --ff-only 'upstream-pr/201'
git switch 'main'
git merge 'upstream-pr/201'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
avatarmanz/VIctory-7900XTX!201
No description provided.