Contribution: 10 potential fixes for shaders, runtime and texture handling #810

Open
opened 2026-11-24 11:27:38 +00:00 by THE-PRO-GAME · 2 comments
THE-PRO-GAME commented 2026-11-24 11:27:38 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by THE-PRO-GAME on 2026-11-24T11:27:38Z.


Hi! I’ve prepared 10 potential fixes using OpenAI Codex, covering shader translation, runtime, shader caching and texture handling.

Since pull requests are restricted to collaborators, I’m sharing my changes here for review.

Pull request: https://github.com/THE-PRO-GAME/VIctory/pull/1

The changes have been tested using synthetic tests, but have not been validated in-game.

Please let me know if these changes are useful or if you would prefer another contribution method.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6580735939 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/810). Originally posted by [THE-PRO-GAME](https://github.com/THE-PRO-GAME) on 2026-11-24T11:27:38Z. --- Hi! I’ve prepared 10 potential fixes using OpenAI Codex, covering shader translation, runtime, shader caching and texture handling. Since pull requests are restricted to collaborators, I’m sharing my changes here for review. Pull request: https://github.com/THE-PRO-GAME/VIctory/pull/1 The changes have been tested using synthetic tests, but have not been validated in-game. Please let me know if these changes are useful or if you would prefer another contribution method.
THE-PRO-GAME commented 2026-11-24 13:02:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by THE-PRO-GAME on 2026-11-24T12:59:48Z.


Save recovery can delete a valid save. I reproduced it with a synthetic save and a leftover directory, then verified that the fix preserves the save. Save recovery commit

I audited the original patch set against upstream ffe310e with Codex. Nine of the original issues still reproduced with synthetic inputs. The audit branch contains those nine fixes and three additional fixes, one per commit. Each regression test failed with the original behavior and passed after the corresponding fix.

Additional fixes

  • Keep runtime cache and save directories anchored when the title changes its working directory.
  • Reject standard and display swizzles for multisampled GFX10 textures.
  • Prevent save recovery from deleting the valid v1 directory when a leftover v01 directory is present.

Compare the 12 audit commits against upstream ffe310e
Updated fork main

The display-test adjustment remains in my fork. The original test passed locally, so the adjustment is outside the audit branch. The reported ERROR_NOT_SUPPORTED case is tracked in #727. Original fork PR

On Windows 11 with Rust 1.98.1, 361 tests passed with all features enabled, including the three repository-only benchmarks. Strict Clippy and the asset-policy check passed. Three tests that require external reference files were excluded. The verification used synthetic inputs and repository fixtures. Gameplay remains unverified.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7132203226 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/810#issuecomment-7132203226). Originally posted by [THE-PRO-GAME](https://github.com/THE-PRO-GAME) on 2026-11-24T12:59:48Z. --- **Save recovery can delete a valid save.** I reproduced it with a synthetic save and a leftover directory, then verified that the fix preserves the save. [Save recovery commit](https://github.com/THE-PRO-GAME/VIctory/commit/27491af5b8b2b53f24b4e97f608f80a314113f6b) I audited the original patch set against upstream `ffe310e` with Codex. Nine of the original issues still reproduced with synthetic inputs. The audit branch contains those nine fixes and three additional fixes, one per commit. Each regression test failed with the original behavior and passed after the corresponding fix. **Additional fixes** - Keep runtime cache and save directories anchored when the title changes its working directory. - Reject standard and display swizzles for multisampled GFX10 textures. - Prevent save recovery from deleting the valid `v1` directory when a leftover `v01` directory is present. [Compare the 12 audit commits against upstream `ffe310e`](https://github.com/THE-PRO-GAME/VIctory/compare/ffe310e...27491af) [Updated fork main](https://github.com/THE-PRO-GAME/VIctory/tree/main) The display-test adjustment remains in my fork. The original test passed locally, so the adjustment is outside the audit branch. The reported `ERROR_NOT_SUPPORTED` case is tracked in #727. [Original fork PR](https://github.com/THE-PRO-GAME/VIctory/pull/1) On Windows 11 with Rust 1.98.1, 361 tests passed with all features enabled, including the three repository-only benchmarks. Strict Clippy and the asset-policy check passed. Three tests that require external reference files were excluded. The verification used synthetic inputs and repository fixtures. Gameplay remains unverified.
Marvisak commented 2026-11-25 04:07:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T03:54:17Z.


Automated triage for the maintainers.

Thanks for the fixes. Pull requests are open to everyone, so please open them here as PRs, ideally one per fix, so each can be reviewed and tested in CI. A single fork PR that mixes shader, runtime, cache and texture changes cannot be reviewed here.

Part of it is already on main: version_number in crates/victory-hle/src/modules/xgamesave.rs accepts only names exactly as commits write them (v01 is ignored), and current never removes a version for an unreadable stray. Please check each remaining fix against current main before opening its PR.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7152347629 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/810#issuecomment-7152347629). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T03:54:17Z. --- <!-- victory-issue-triage v1 verdict=tracked seen=2026-11-24T12:59:48Z at=2026-11-25T03:54:17Z --> Automated triage for the maintainers. Thanks for the fixes. Pull requests are open to everyone, so please open them here as PRs, ideally one per fix, so each can be reviewed and tested in CI. A single fork PR that mixes shader, runtime, cache and texture changes cannot be reviewed here. Part of it is already on `main`: `version_number` in `crates/victory-hle/src/modules/xgamesave.rs` accepts only names exactly as commits write them (`v01` is ignored), and `current` never removes a version for an unreadable stray. Please check each remaining fix against current `main` before opening its PR. --- _Generated by [Claude Code](https://claude.ai/code)_
Sign in to join this conversation.
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#810
No description provided.