Audit fixes #26
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/lobomfz--VIctory-xmem!26
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-26"
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?
@R0dbar on GitHub · 2026-11-30 12:14 UTC · original
R0dbar:audit-fixes→main· +145 −157 · 10 files · 10 commits · openFixes: FSR crash, setup data loss, PlayStation pads, play blocked by an untranslatable shader
Small, independent fixes found while auditing and playing on an RX 6950 XT
(RDNA2). Every commit stands on its own; nothing here changes how a
translated shader comes out.
Crashes and things that stopped play
VICTORY_FFX_SCALE=0.67on 1920x1080 renders 1286x723; the title's FSR 4build only takes 1920x1080 rendered at 1280x720, logs a mismatch and then
divides by zero at
+0x28f03e8(the crash the module's notes alreadydescribe). The scale is now patched only when it gives exactly that pair
(
VICTORY_FFX_SCALE=0.6666667withVICTORY_OUTPUT=1920x1080); otherwiseit and
VICTORY_UPSCALER=7are left out with a message, and the title runsits own upscaler. Test:
0.67gives the 1286x723 the title refused.Preparation repaired the translation of every known shader and counted
every pipeline without a native one as missing; once a run had noted a
shader that does not translate,
playfailed for good ("rerun play toresume"). Such shaders are now left out of the repair and their pipelines
are tried again next time instead of counting as missing.
VICTORY_STAND_IN=1, read once.stand_incopies from a shader-visible slot, which vkd3d-proton's RDNA2descriptor layout crashes on in
CopyDescriptorsSimple(
d3d12core.dll+0xf94f). The switch is read once:stand_inruns eachtime a texture slot changes.
Setup and tools
backend a DualShock 4 is raw HID only, so XInput (all
gameinputreads)had no pad and the keyboard's stand-in drove the title. The prefix step
sets winebus
DisableHidraw=1, so SDL takes the pad and maps it to XInput(checked with an XInput probe in the game's sandbox: slot 0 connected).
Existing prefixes get it with
./setup.sh prefix.deps/wineedits, like the others.source_ofstopped before a reset over editstools/patch.shhad notsaved;
step_winedid not, so a Wine upgrade wiped them. Both sharekeep_editsnow.amdxcffx64.dllfor FSR 4 from AMD itself, its signaturechecked.
fsr4takesAMDXCFFX64=<the DLL, or the Adrenalin installer it ships in>and installs it only if its Authenticode signature verifiesand the signer is Advanced Micro Devices, instead of downloading it from a
third party. README updated.
git add -uneverstaged them; not
git add -A, which would take build leftovers such asvkd3d's
subprojects/.wraplock).emit/lower.rsis 887 KiB, past the old640 KiB, so
cargo xtask policyand its test failed on every checkout. The"too big" test passed only through the encoded-run check; it now tests the
size.
Clean-up
records::on()went,buffer_srv/buffer_uavreadif let Some(twin) = twin {..} else if let Some(twin) = twin {..}; thesecond branch never ran. Gone with it:
twin_windowand its test, theTWINScounters and their frame line.move_rawis test-only now.| 0and anunwrapafteris_some.Checked
cargo xtask policy,cargo test -p xtask(9/9),victory-shadertests.cargo clippy(release, Windows target): no new warnings.resolutiontests under Wine (6/6, one new).playafter a run that noted untranslatable shaders (preparationnow ends: "2215 known shaders do not translate: left out").
with a DualShock 4 over USB.
VICTORY_FFX_SCALE=0.6666667(covered bythe new test only).
Preparation repaired the translation of every shader the title ever used, and counted every pipeline without a native one as missing; both stopped play ('rerun play to resume', for good) once a run had noted a shader that does not translate. Such shaders are now left out of the repair, and their pipelines (no host pipeline) are not missing: they are tried again next time. Co-Authored-By: Claude Opus 5.5 <[email protected]>@SyBozz on GitHub · 2026-11-30 16:55 UTC · original
My understanding is that this is a proton problem / thing as steams brings controller into the games with their controller tool.
running
wine control joy.cplshows it working fine under system / normal wine while proton (including the wine from proton) does not work.So I would suggest to only do the reg edit if any proton version is used as I'm not sure if it would break something under normal wine.
@Luxuride on GitHub · 2026-12-04 12:00 UTC · original
There is real value in this PR, but as one PR it will not land: it flips a global default, rewrites
setup.sh, and carries ten unrelated commits. Split it into three or four, in this order.crates/victory-gpu/src/pipeline/known.rs:426-466skipping shaders that do not translate is the right call for playability but loses the diagnostic — keep the skip and log each hash once at debug level.crates/victory-loader/src/resolution.rs:106-121hardcodes the one size pair the title accepts and silently dropsVICTORY_UPSCALER=7otherwise; the test is good, the user-facing warning is not.tools/patch.shuntracked-file reporting,draw.rs:1704. Uncontroversial on their own.crates/victory-gpu/src/descriptor/host.rs:3037-3048now returnsfalseunlessVICTORY_STAND_IN=1. That turns a workaround for a specific vkd3d-proton64_16_packedbug into a behaviour change for every user, andVICTORY_STAND_INappears in no doc and norun.conf.defaultline — so nobody can discover they need it. Either document it, or gate it on the driver actually being detected.The last one is the only part that needs a decision from the maintainer; the first two are mergeable on their own.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.