Fix 12 verified regressions in shader translation, runtime, caching and texture handling #1005

Open
THE-PRO-GAME wants to merge 22 commits from upstream-pr/1005 into main
THE-PRO-GAME commented 2026-11-24 14:54:42 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by THE-PRO-GAME on 2026-11-24T14:54:42Z.


Summary

This PR addresses 12 reproducible regressions in VIctory, including nine previously identified issues and three newly discovered bugs.

Changes

  • Improve shader translation and selection.
  • Correct texture handling and validation.
  • Improve shader cache reliability.
  • Prevent valid save files from being deleted during recovery.
  • Preserve data and cache directory paths when the working directory changes.
  • Reject incompatible multisampled texture configurations.

Validation

  • 361 tests passed.
  • 0 tests failed.
  • 3 tests skipped due to missing external reference files.
  • Clippy passed.
  • Each regression was reproduced with a failing test before the fix and a passing test afterward.

Notes

These changes were developed with assistance from OpenAI Codex and tested on Windows using synthetic data.

In-game behavior and performance have not been validated.

Related issue: #810

Feedback and technical review are welcome.

I didn’t write a shit for my own 🔥

<!-- greyfinch-sync:Marvisak/VIctory:issue:6584611485 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1005). Originally posted by [THE-PRO-GAME](https://github.com/THE-PRO-GAME) on 2026-11-24T14:54:42Z. --- Summary This PR addresses 12 reproducible regressions in VIctory, including nine previously identified issues and three newly discovered bugs. Changes * Improve shader translation and selection. * Correct texture handling and validation. * Improve shader cache reliability. * Prevent valid save files from being deleted during recovery. * Preserve data and cache directory paths when the working directory changes. * Reject incompatible multisampled texture configurations. Validation * 361 tests passed. * 0 tests failed. * 3 tests skipped due to missing external reference files. * Clippy passed. * Each regression was reproduced with a failing test before the fix and a passing test afterward. Notes These changes were developed with assistance from OpenAI Codex and tested on Windows using synthetic data. In-game behavior and performance have not been validated. Related issue: #810 Feedback and technical review are welcome. I didn’t write a shit for my own 🔥
Zipettte commented 2026-11-24 16:05:05 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T15:12:52Z.


Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 72b9709: cargo test -p victory -p victory-core -p victory-formats -p victory-hle -p victory-pipeline passes, 146 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).

Tested with AI assistance (Claude).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7135646239 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1005#issuecomment-7135646239). Originally posted by [Zipettte](https://github.com/Zipettte) on 2026-11-24T15:12:52Z. --- Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at 72b9709: `cargo test -p victory -p victory-core -p victory-formats -p victory-hle -p victory-pipeline` passes, 146 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed). _Tested with AI assistance (Claude)._
Marvisak commented 2026-11-25 01:07:59 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:31:58Z.


Automated triage for the maintainers.

Needs rebase. This PR does not merge cleanly into current main (ac2525d). Conflicting files: apps/victory/src/translate.rs, crates/victory-hle/src/modules/xgamesave.rs.

The content has not been reviewed yet; it will be once the branch is rebased onto main.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7148604417 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1005#issuecomment-7148604417). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T00:31:58Z. --- <!-- victory-triage v1 head=72b9709675e5f0fd9b2277a61d31718ff8b7c4e9 verdict=needs-rebase at=2026-11-25T00:13:20Z --> Automated triage for the maintainers. **Needs rebase.** This PR does not merge cleanly into current `main` (ac2525d). Conflicting files: `apps/victory/src/translate.rs`, `crates/victory-hle/src/modules/xgamesave.rs`. The content has not been reviewed yet; it will be once the branch is rebased onto `main`. --- _Generated by [Claude Code](https://claude.ai/code)_
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/1005:upstream-pr/1005'
git switch 'upstream-pr/1005'

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/1005'
git switch 'upstream-pr/1005'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1005'
git switch 'upstream-pr/1005'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1005'
git switch 'main'
git merge --squash 'upstream-pr/1005'
git switch 'main'
git merge --ff-only 'upstream-pr/1005'
git switch 'main'
git merge 'upstream-pr/1005'
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
Marvisak/VIctory!1005
No description provided.