Skip to content

GPU: track only successful texture refresh stamps - #6

Draft
TinyBiggles wants to merge 1 commit into
mainfrom
contrib/texture-refresh-stamp
Draft

TinyBiggles wants to merge 1 commit into
mainfrom
contrib/texture-refresh-stamp

Conversation

@TinyBiggles

@TinyBiggles TinyBiggles commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

AI-assisted draft for this fork. The existing texture staging state retains a write-watch epoch and an unwatched-memory hash independently, and updates each before detiling. If refresh switches paths, an old stamp can incorrectly describe new staging bytes; a failed/partial detile can also leave a stamp marking incomplete staging as current. Use one mutually exclusive stamp for the last successful conversion, invalidate it for unavailable unwatched memory or before attempting conversion, and record the new stamp only after all subresources detile successfully. Two synthetic state-transition tests cover alternating paths and failure/retry. This is separate from Marvisak#641 partial residency, Marvisak#143 safe reads and Marvisak#785 same-list GPU writes; it does not suppress a recorded copy on detile failure or guarantee content correctness in those cases. Windows CI passed. No title data, physical GPU tests or rendering claims. Draft remains unmerged; do not submit upstream without review and authorization.

Verified Windows CI — 2026-11-24

CI run 45385727397 succeeded for be9b3c3c67717de5d4a3c56f2b54601724813198. Workspace tests: 344 passed, 0 failed, 6 ignored. Regression tests passed: texture_stamp_tracks_only_the_last_successful_source, failed_texture_detile_invalidates_the_previous_stamp. Asset policy: passed. No physical GPU or game testing performed. Draft remains unmerged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant