Publish cached texture mips with submission #113

Manually merged
github merged 1 commit from github-bot/gh-113 into main 2026-11-27 02:43:08 +00:00 AGit
Owner

@⁠TaynanGT on GitHub · 2026-11-27 01:36 UTC · original
TaynanGT:fix/texture-prefill-on-submission → main · +170 −39 · 3 files · 1 commits · merged 2026-11-27 02:28 UTC

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.

**@⁠TaynanGT** on GitHub · 2026-11-27 01:36 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/113) `TaynanGT:fix/texture-prefill-on-submission` → `main` · +170 −39 · 3 files · 1 commits · merged 2026-11-27 02:28 UTC 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://git.gtahub.st/github/TaynanGT--Vice-Tay/pulls/37).
Give one recording a claim on cached levels and return the claim if an unsubmitted list is reset. Publish the levels at submission, and refresh existing descriptor slots after the fence.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 02:11:11 +00:00
github manually merged commit a3a13a2955 into main 2026-11-27 02:43:08 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.