Publish cached texture mips with submission #113

Merged
TaynanGT merged 1 commit from upstream-pr/113 into main 2026-11-27 02:28:06 +00:00
TaynanGT commented 2026-11-27 01:36:02 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T01:36:02Z.


A VICTORY_TEXTURE_STORE cache hit now belongs to one command-list recording until submission. Resetting an unsubmitted list returns the cached levels for retry. If another recording has already uploaded the lower mips, an available cache claim still forces the upper-mip upload rather than taking the usual staging fast path.

The submission step publishes the cached level count and schedules existing descriptor slots to be refreshed after the submission completes. Uncached textures keep their existing upload path.

The synthetic Windows test records a cached mip, closes and resets the unsubmitted list, then records again and submits it. It checks that the level count stays zero through the abandoned recording and reads all four rows back from the texture after the retry. Static review and git diff --check passed. The Windows workflow passed Clippy and both test suites. The reset-and-readback test passed in both the default and diagnostics jobs and on the local Windows machine.

Fixes #105. Follow-up to the original review.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5519655758 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/113). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T01:36:02Z. --- A `VICTORY_TEXTURE_STORE` cache hit now belongs to one command-list recording until submission. Resetting an unsubmitted list returns the cached levels for retry. If another recording has already uploaded the lower mips, an available cache claim still forces the upper-mip upload rather than taking the usual staging fast path. The submission step publishes the cached level count and schedules existing descriptor slots to be refreshed after the submission completes. Uncached textures keep their existing upload path. The synthetic Windows test records a cached mip, closes and resets the unsubmitted list, then records again and submits it. It checks that the level count stays zero through the abandoned recording and reads all four rows back from the texture after the retry. Static review and `git diff --check` passed. The [Windows workflow](https://github.com/TaynanGT/Vice-Tay/actions/runs/45923487819) passed Clippy and both test suites. The reset-and-readback test passed in both the default and diagnostics jobs and on the local Windows machine. Fixes #105. Follow-up to the [original review](https://github.com/TaynanGT/Vice-Tay/pull/37#discussion_r4711638191).
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
TaynanGT/Vice-Tay!113
No description provided.