Track pending texture-to-buffer readbacks #150

Open
gomeaw wants to merge 1 commit from upstream-pr/150 into main
gomeaw commented 2026-11-26 07:44:33 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by gomeaw on 2026-11-26T07:44:33Z.


A texture copied into a small title buffer lands after its host flight. The late-submission range index covered shader-written buffers and texture writebacks, but omitted these explicit texture-to-buffer copies. A subsequent CPU copy, upload fill, or texture preparation could therefore use the destination before the relay put the new bytes there.

Collect the destinations from both kinds of texture readback. The relay, the check before joining submissions, and the card-step planner use the same ranges. The existing copy routine still writes each row at the original title pitch.

Windows WARP validation exercises an actual D3D12 late submission. With the original collection the CPU dependency check receives no range and allows a copy from the pending second row. With the patch the dependency is detected, and the test checks the two landed rows and untouched padding. Eleven host scheduling tests passed (one opt-in test was skipped).

This applies to the small exposure targets mentioned in the renderer's readback code. It gives #62 and #112 a concrete dependency to retest on the same checkpoint. The visual symptom still needs an RTX comparison.

The matched NVIDIA builds use the same shader cache version and differ by this patch alone.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:issue:5506023705 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/150). Originally posted by [gomeaw](https://github.com/gomeaw) on 2026-11-26T07:44:33Z. --- A texture copied into a small title buffer lands after its host flight. The late-submission range index covered shader-written buffers and texture writebacks, but omitted these explicit texture-to-buffer copies. A subsequent CPU copy, upload fill, or texture preparation could therefore use the destination before the relay put the new bytes there. Collect the destinations from both kinds of texture readback. The relay, the check before joining submissions, and the card-step planner use the same ranges. The existing copy routine still writes each row at the original title pitch. [Windows WARP validation](https://github.com/gomeaw/VIctory-7900XTX/actions/runs/45777009042) exercises an actual D3D12 late submission. With the original collection the CPU dependency check receives no range and allows a copy from the pending second row. With the patch the dependency is detected, and the test checks the two landed rows and untouched padding. Eleven host scheduling tests passed (one opt-in test was skipped). This applies to the small exposure targets mentioned in the renderer's readback code. It gives #62 and #112 a concrete dependency to retest on the same checkpoint. The visual symptom still needs an RTX comparison. [The matched NVIDIA builds](https://github.com/avatarmanz/VIctory-7900XTX/issues/62#issuecomment-7185802186) use the same shader cache version and differ by this patch alone.
opp31337 commented 2026-11-26 08:12:10 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by opp31337 on 2026-11-26T08:12:10Z.


Tested PR #150 (1a4298f) on my RTX 5060 Ti 16 GB (Blackwell, driver 621.35) with VICTORY_THIN='1' active (Series X profile, 6000/2560 VRAM caps, 2,861 warmed pipelines):

  • Improvement: The completely blind solid-white screen is partially resolved—outdoor yard details, wall photos, and character colors are now visible through the window glare, and performance hit 12 fps (84.3–85.0 ms/frame @ 3,782–3,819 draws).
  • Remaining Visual Issues with VICTORY_THIN='1':
    1. Window glare / depth bleed: Bright white exposure bloom still bleeds across Lucia's head when looking toward the window (85.0 ms/frame shot).
    2. Stair-stepped silhouette ghosting & blur: A coarse, blocky dark/blue silhouette offset appears to the left of Lucia's head/shoulder alongside soft overall blur (84.3 ms/frame shot).
  • Running with VICTORY_THIN='0' / -Safe remains sharp and artifact-free (100.3–104.2 ms/frame).

(Tested by me on my own hardware; summary written with Gemini.)
Screenshot 2026-11-26 020737
Screenshot 2026-11-26 020813

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7186311149 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/150#issuecomment-7186311149). Originally posted by [opp31337](https://github.com/opp31337) on 2026-11-26T08:12:10Z. --- Tested PR #150 (`1a4298f`) on my **RTX 5060 Ti 16 GB (Blackwell, driver 621.35)** with `VICTORY_THIN='1'` active (Series X profile, `6000`/`2560` VRAM caps, `2,861` warmed pipelines): * **Improvement:** The completely blind solid-white screen is partially resolved—outdoor yard details, wall photos, and character colors are now visible through the window glare, and performance hit **`12 fps` (`84.3–85.0 ms/frame` @ `3,782–3,819` draws)**. * **Remaining Visual Issues with `VICTORY_THIN='1'`:** 1. **Window glare / depth bleed:** Bright white exposure bloom still bleeds across Lucia's head when looking toward the window (`85.0 ms/frame` shot). 2. **Stair-stepped silhouette ghosting & blur:** A coarse, blocky dark/blue silhouette offset appears to the left of Lucia's head/shoulder alongside soft overall blur (`84.3 ms/frame` shot). * Running with **`VICTORY_THIN='0'` / `-Safe`** remains sharp and artifact-free (`100.3–104.2 ms/frame`). *(Tested by me on my own hardware; summary written with Gemini.)* <img width="3840" height="2160" alt="Screenshot 2026-11-26 020737" src="https://github.com/user-attachments/assets/4f4701f7-752b-4f65-bd49-4dd4e06e0c54" /> <img width="3840" height="2160" alt="Screenshot 2026-11-26 020813" src="https://github.com/user-attachments/assets/5a5d1816-7aff-44e1-900c-8a56312168ca" />
Cuebert commented 2026-11-26 20:27:07 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by Cuebert on 2026-11-26T20:27:07Z.


I’m preparing a local Series X profile retest of this branch. The WARP fixture’s row and padding assertion is clear; for a narrow hardware check, what is the most reliable observable that the copied destination range stayed pending until the fence completed: an expected relay trace, or only the subsequent CPU bytes? I’d like to verify the ordering separately from the final scene image.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7202698981 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/150#issuecomment-7202698981). Originally posted by [Cuebert](https://github.com/Cuebert) on 2026-11-26T20:27:07Z. --- I’m preparing a local Series X profile retest of this branch. The WARP fixture’s row and padding assertion is clear; for a narrow hardware check, what is the most reliable observable that the copied destination range stayed pending until the fence completed: an expected relay trace, or only the subsequent CPU bytes? I’d like to verify the ordering separately from the final scene image.
Cuebert commented 2026-11-26 20:41:21 +00:00 (Migrated from github.com)

Imported from avatarmanz/VIctory-7900XTX. Originally posted by Cuebert on 2026-11-26T20:41:21Z.


Following up on my question: on the adapted Windows D3D12 WARP fixture (software adapter), the delayed two-row readback passed its repair-arm check. Title bytes stayed zero before landing; an overlapping consumer of row 2 was classified pending/blocked; after landing, both row payloads matched and padding stayed untouched. I have not reproduced an integrated baseline-negative on my fork, and this is not a physical NVIDIA test. A separate native 4K bridge sample was 17.44 FPS versus prior 17.64–17.67; no visual difference or performance gain is established.

<!-- greyfinch-sync:avatarmanz/VIctory-7900XTX:comment:7202972947 --> Imported from [avatarmanz/VIctory-7900XTX](https://github.com/avatarmanz/VIctory-7900XTX/pull/150#issuecomment-7202972947). Originally posted by [Cuebert](https://github.com/Cuebert) on 2026-11-26T20:41:21Z. --- Following up on my question: on the adapted Windows D3D12 WARP fixture (software adapter), the delayed two-row readback passed its repair-arm check. Title bytes stayed zero before landing; an overlapping consumer of row 2 was classified pending/blocked; after landing, both row payloads matched and padding stayed untouched. I have not reproduced an integrated baseline-negative on my fork, and this is not a physical NVIDIA test. A separate native 4K bridge sample was 17.44 FPS versus prior 17.64–17.67; no visual difference or performance gain is established.
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/150:upstream-pr/150'
git switch 'upstream-pr/150'

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/150'
git switch 'upstream-pr/150'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/150'
git switch 'upstream-pr/150'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/150'
git switch 'main'
git merge --squash 'upstream-pr/150'
git switch 'main'
git merge --ff-only 'upstream-pr/150'
git switch 'main'
git merge 'upstream-pr/150'
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!150
No description provided.