Keep texture recheck deadlines after card space recovers #199

Open
github-bot wants to merge 1 commit from github-bot/gh-199 into main AGit
Owner

@⁠feanorsun on GitHub · 2026-11-26 11:22 UTC · original
feanorsun:fix/texture-queue-stale-space-holds → main · +39 −3 · 1 files · 1 commits · open

Refs #182

When the card runs out of space, the indexed-texture queue holds back a slot until a later frame. If the slot comes due while the card is still full, the texture pass can schedule a memory retry or a fingerprint check for the same descriptor write. The old space hold survives that decision. As soon as space returns, it brings the slot forward again, overriding the new deadline.

Clear the old space hold when scheduling that write's next memory retry, partial-upload check or fingerprint check. A result for an older descriptor write cannot clear a newer hold. Slots still waiting for card space retain their early wakeup.

Tested on Windows with CPU-only queue operations, based on upstream 0dec5dcc228b. The regression uses three slots. At frame 5 the old code woke all three. The fix wakes only the slot still waiting for space and preserves the two rechecks at frames 8 and 10. The existing hold/rewrite test also passes.

Both tests were listed by exact name before being run with cargo test --offline --locked -j 1 -p victory-gpu --lib <test> -- --exact --test-threads=1:

  • descriptor::host::tests::room_only_wakes_textures_still_waiting_for_card_space
  • descriptor::host::tests::slots_held_for_lack_of_room_come_back_when_there_is_room

The #182 log records space waits and reuploads, but does not record these per-slot transitions. The effect on the reporter's RTX 3070, frame rate and missing textures remains unmeasured.

**@⁠feanorsun** on GitHub · 2026-11-26 11:22 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/199) `feanorsun:fix/texture-queue-stale-space-holds` → `main` · +39 −3 · 1 files · 1 commits · open Refs #182 When the card runs out of space, the indexed-texture queue holds back a slot until a later frame. If the slot comes due while the card is still full, the texture pass can schedule a memory retry or a fingerprint check for the same descriptor write. The old space hold survives that decision. As soon as space returns, it brings the slot forward again, overriding the new deadline. Clear the old space hold when scheduling that write's next memory retry, partial-upload check or fingerprint check. A result for an older descriptor write cannot clear a newer hold. Slots still waiting for card space retain their early wakeup. Tested on Windows with CPU-only queue operations, based on upstream `0dec5dcc228b`. The regression uses three slots. At frame 5 the old code woke all three. The fix wakes only the slot still waiting for space and preserves the two rechecks at frames 8 and 10. The existing hold/rewrite test also passes. Both tests were listed by exact name before being run with `cargo test --offline --locked -j 1 -p victory-gpu --lib <test> -- --exact --test-threads=1`: - `descriptor::host::tests::room_only_wakes_textures_still_waiting_for_card_space` - `descriptor::host::tests::slots_held_for_lack_of_room_come_back_when_there_is_room` The #182 log records space waits and reuploads, but does not record these per-slot transitions. The effect on the reporter's RTX 3070, frame rate and missing textures remains unmeasured.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 11:30:44 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/199/head:github-bot/gh-199'
git switch 'github-bot/gh-199'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-199'
git switch 'github-bot/gh-199'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-199'
git switch 'github-bot/gh-199'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-199'
git switch 'main'
git merge --squash 'github-bot/gh-199'
git switch 'main'
git merge --ff-only 'github-bot/gh-199'
git switch 'main'
git merge 'github-bot/gh-199'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.