Reduce CPU work when returning GPU readbacks #166

Merged
TaynanGT merged 2 commits from upstream-pr/166 into main 2026-11-27 05:28:19 +00:00
TaynanGT commented 2026-11-27 05:23:42 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T05:23:42Z.


Build one sorted set of protected ranges per readback and reuse it for all the fetched pieces. The landing workers no longer allocate a vector of addresses for each run, and shadow updates reuse the storage from the first changed page.

Texture readbacks reuse pixel storage and tiling plans on the landing worker. The plan key describes the swizzle and the subresource geometry. The tests check tiled bytes against their expected offsets, compare the new merge with a piece-by-piece merge, and verify that a closed recording keeps its own readback lease.

Both Clippy configurations and 25 focused tests passed locally.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5521671408 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/166). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T05:23:42Z. --- Build one sorted set of protected ranges per readback and reuse it for all the fetched pieces. The landing workers no longer allocate a vector of addresses for each run, and shadow updates reuse the storage from the first changed page. Texture readbacks reuse pixel storage and tiling plans on the landing worker. The plan key describes the swizzle and the subresource geometry. The tests check tiled bytes against their expected offsets, compare the new merge with a piece-by-piece merge, and verify that a closed recording keeps its own readback lease. Both Clippy configurations and 25 focused tests passed locally.
chatgpt-codex-connector[bot] commented 2026-11-27 05:23:51 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-27T05:23:51Z.


Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T05:25:19.961668Z 876a02f PR opened
🔒 Security Review ✅ Completed 2026-11-27T05:27:36.303041Z 876a02f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7210599922 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/166#issuecomment-7210599922). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-27T05:23:51Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"876a02f8caec4be576818d3682e565428965db2b","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":"876a02f8caec4be576818d3682e565428965db2b","has_any_findings":null,"has_unresolved_findings":null,"status":"completed"}} --> <!-- codex-security-review:v1 {"blockingSeverityThreshold":"P0","headSha":"876a02f8caec4be576818d3682e565428965db2b","mergeGateEnabled":false,"pullRequestNumber":166,"repository":"TaynanGT/Vice-Tay","status":"completed"} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-27T05:25:19.961668Z">2026-11-27T05:25:19.961668Z</relative-time> | `876a02f` | PR opened | | 🔒 **Security Review** | ✅ **Completed** <relative-time datetime="2026-11-27T05:27:36.303041Z">2026-11-27T05:27:36.303041Z</relative-time> | `876a02f` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
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!166
No description provided.