Track pending texture-to-buffer readbacks #150

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

@⁠gomeaw on GitHub · 2026-11-26 07:44 UTC · original
gomeaw:fix/track-texture-readbacks-in-flight → main · +65 −12 · 2 files · 1 commits · open

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.

**@⁠gomeaw** on GitHub · 2026-11-26 07:44 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/150) `gomeaw:fix/track-texture-readbacks-in-flight` → `main` · +65 −12 · 2 files · 1 commits · open 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://git.gtahub.st/github/avatarmanz--VIctory-7900XTX/issues/62) use the same shader cache version and differ by this patch alone.
The relay tracked writeback textures but omitted explicit texture-to-buffer readbacks in its in-flight range index. Use the same destinations for the relay, batching and card-step writer checks so a later CPU copy does not read pre-landing bytes.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 07:47:49 +00:00
Author
Owner

@⁠opp31337 on GitHub · 2026-11-26 08:12 UTC · original

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

**@⁠opp31337** on GitHub · 2026-11-26 08:12 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/150#issuecomment-7186311149) 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" />
Author
Owner

@⁠Cuebert on GitHub · 2026-11-26 20:27 UTC · original

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** on GitHub · 2026-11-26 20:27 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/150#issuecomment-7202698981) 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.
Author
Owner

@⁠Cuebert on GitHub · 2026-11-26 20:41 UTC · original

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.

**@⁠Cuebert** on GitHub · 2026-11-26 20:41 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/150#issuecomment-7202972947) 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 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/150/head:github-bot/gh-150'
git switch 'github-bot/gh-150'

Merge

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