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

Open
opened 2026-11-26 04:14:00 +00:00 by github-bot · 2 comments
Owner

@⁠THE-PRO-GAME on GitHub · 2026-11-24 11:27 UTC · original

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** on GitHub · 2026-11-24 11:27 UTC · [original](https://github.com/Marvisak/VIctory/issues/810) 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:14:00 +00:00
Author
Owner

@⁠THE-PRO-GAME on GitHub · 2026-11-24 12:59 UTC · original

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.

**@⁠THE-PRO-GAME** on GitHub · 2026-11-24 12:59 UTC · [original](https://github.com/Marvisak/VIctory/issues/810#issuecomment-7132203226) **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.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 03:54 UTC · original

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

**@⁠Marvisak** on GitHub · 2026-11-25 03:54 UTC · [original](https://github.com/Marvisak/VIctory/issues/810#issuecomment-7152347629) <!-- 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)_
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#810
No description provided.