Keep texture retry deadlines when card room returns #81

Merged
cxy0072019-sketch merged 1 commit from upstream-pr/81 into main 2026-11-26 23:13:58 +00:00
cxy0072019-sketch commented 2026-11-26 22:55:16 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by cxy0072019-sketch on 2026-11-26T22:55:16Z.


Summary

A texture slot can become due while it is held for card space. The next refresh can schedule a memory retry, a partial upload retry, or a fingerprint recheck. If the old card-space hold remains, TextureQueue::room makes that slot due as soon as the card has room, overriding the new deadline.

Clear the hold for the same descriptor write when any of those three retry paths schedules a new deadline. This adapts the texture queue change from Cool Fox ebf9299d.

Verification

  • The regression test fails on base 23eeb84. Returning card space wakes all four slots. The expected count is one.
  • With the change, the space hold wakes immediately and the other three slots keep their retry frames. The new regression test and both existing texture queue ordering and hold tests pass in the Windows release build.
  • The test exercises queue behavior under a simulated card-space hold.
<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5518251909 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/81). Originally posted by [cxy0072019-sketch](https://github.com/cxy0072019-sketch) on 2026-11-26T22:55:16Z. --- ## Summary A texture slot can become due while it is held for card space. The next refresh can schedule a memory retry, a partial upload retry, or a fingerprint recheck. If the old card-space hold remains, `TextureQueue::room` makes that slot due as soon as the card has room, overriding the new deadline. Clear the hold for the same descriptor write when any of those three retry paths schedules a new deadline. This adapts the texture queue change from [Cool Fox `ebf9299d`](https://github.com/DoubleGhosty/cool_fox/commit/ebf9299d9222caeae9f83b33183b9653f7265e81). ## Verification - The regression test fails on base `23eeb84`. Returning card space wakes all four slots. The expected count is one. - With the change, the space hold wakes immediately and the other three slots keep their retry frames. The new regression test and both existing texture queue ordering and hold tests pass in the Windows release build. - The test exercises queue behavior under a simulated card-space hold.
TaynanGT commented 2026-11-26 23:17:37 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-26T23:17:37Z.


Thanks for isolating the stale card-space hold and adding the later case to the regression test. The Windows checks passed and this is now on main. Returning card space wakes the slot that is still held and preserves the deadlines for the three rescheduled slots.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7205419297 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/81#issuecomment-7205419297). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-26T23:17:37Z. --- Thanks for isolating the stale card-space hold and adding the `later` case to the regression test. The Windows checks passed and this is now on `main`. Returning card space wakes the slot that is still held and preserves the deadlines for the three rescheduled slots.
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!81
No description provided.