Keep texture recheck deadlines after card space recovers #199

Open
feanorsun wants to merge 1 commit from upstream-pr/199 into main
feanorsun commented 2026-11-26 11:22:18 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by feanorsun on 2026-11-26T11:22:18Z.


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.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:6625574695 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/199). Originally posted by [feanorsun](https://github.com/feanorsun) on 2026-11-26T11:22:18Z. --- 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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/199:upstream-pr/199'
git switch 'upstream-pr/199'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/199'
git switch 'upstream-pr/199'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/199'
git switch 'upstream-pr/199'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/199'
git switch 'main'
git merge --squash 'upstream-pr/199'
git switch 'main'
git merge --ff-only 'upstream-pr/199'
git switch 'main'
git merge 'upstream-pr/199'
git push origin 'main'
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
avatarmanz/VIctory-7900XTX!199
No description provided.