Textures with no contents: 688 XOR-swizzle RT/depth and 397 null placed per window #123

Open
opened 2026-12-01 16:38:21 +00:00 by github-bot · 4 comments
Owner

@⁠TheRifai on GitHub · 2026-12-01 16:36 UTC · original

Finding (rules 12, 14, 29)

Two large populations of textures have no image contents in a normal house-save walk:

  • 688 texture without contents (render target or depth in an XOR swizzle mode) per stats window
  • 397 texture without contents (no address (null placed view) and not in host.bin) per window

Seen on: main cab86d1, house save, scripted camera walk, 180 s, GE-Proton11-16 / RX 9070 XT. Run: /tmp/opencode/capture/explore/walk/runs/20261201-173035. Both are counted informationals (vk.log issues quiet this window), not rule-32 errors.

The first may be benign (render targets and depth are written by the GPU, not filled from title memory) but the XOR-swizzle qualifier means the layout cannot be described by our fill path — worth confirming against console output. The second is a placed view with no address and no host bytes: if such a texture is ever sampled, it reads whatever the unfilled image holds. TASKS "Null views read an unfilled image" covers the null-descriptor case, and issue #59 covers stale BC7 contents; neither names this population.

Next

For each kind, log the first few texture ids with their resource description and whether any draw samples them in the following presents (the view table already tracks sampled resources). If they are sampled, capture the frame and compare against console footage; if not, turn the counter into a note with the reason. Evidence: a counted census plus one picture-gate frame, not game-story descriptions.

**@⁠TheRifai** on GitHub · 2026-12-01 16:36 UTC · [original](https://github.com/vktory6/VKtory/issues/123) ## Finding (rules 12, 14, 29) Two large populations of textures have no image contents in a normal house-save walk: - **688** `texture without contents (render target or depth in an XOR swizzle mode)` per stats window - **397** `texture without contents (no address (null placed view) and not in host.bin)` per window Seen on: main `cab86d1`, house save, scripted camera walk, 180 s, GE-Proton11-16 / RX 9070 XT. Run: `/tmp/opencode/capture/explore/walk/runs/20261201-173035`. Both are counted informationals (`vk.log` `issues quiet this window`), not rule-32 errors. The first may be benign (render targets and depth are written by the GPU, not filled from title memory) but the XOR-swizzle qualifier means the layout cannot be described by our fill path — worth confirming against console output. The second is a placed view with no address and no host bytes: if such a texture is ever sampled, it reads whatever the unfilled image holds. TASKS "Null views read an unfilled image" covers the null-descriptor case, and issue #59 covers stale BC7 contents; neither names this population. ## Next For each kind, log the first few texture ids with their resource description and whether any draw samples them in the following presents (the view table already tracks sampled resources). If they are sampled, capture the frame and compare against console footage; if not, turn the counter into a note with the reason. Evidence: a counted census plus one picture-gate frame, not game-story descriptions.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 16:38:21 +00:00
Author
Owner

@⁠vktory6 on GitHub · 2026-12-01 16:44 UTC · original

Thanks! Two answers, one task:

  • XOR render targets and depth: these are host-rendered. Every XOR texture the title makes carries a render-target, depth or UAV flag (census in docs/learnings/xor-swizzle.md), so there's no title content to fill, and the note says just that. The count is a run total that stays constant after load (684-692 in every run), not a per-window rate.
  • Null placed views: your concern is right. vkback makes the image without a fill, so a draw sampling one reads whatever the memory held. That's the same question as the TASKS item "Null views read an unfilled image", which I extended to cover them: github.com/vktory6/VKtory@2f73268. Next is to find whether any draw samples them and what the console reads at address 0.
**@⁠vktory6** on GitHub · 2026-12-01 16:44 UTC · [original](https://github.com/vktory6/VKtory/issues/123#issuecomment-7318142163) Thanks! Two answers, one task: - **XOR render targets and depth:** these are host-rendered. Every XOR texture the title makes carries a render-target, depth or UAV flag (census in `docs/learnings/xor-swizzle.md`), so there's no title content to fill, and the note says just that. The count is a run total that stays constant after load (684-692 in every run), not a per-window rate. - **Null placed views:** your concern is right. vkback makes the image without a fill, so a draw sampling one reads whatever the memory held. That's the same question as the TASKS item "Null views read an unfilled image", which I extended to cover them: https://github.com/vktory6/VKtory/commit/2f73268. Next is to find whether any draw samples them and what the console reads at address 0.
Author
Owner

@⁠firefloc on GitHub · 2026-12-01 20:29 UTC · original

For the proposed check of whether draws sample unfilled images, we have a candidate frame to inspect locally. On a RX 7900 XTX / RADV with GE-Proton 11-14, Series X mode and BCPack tables loaded, an upper-body outfit disappeared in outdoor gameplay after about 30 minutes. The background was visible through it at two F9 marks 4.4 seconds apart (presents 43324 and 43418), with the rest of the character and the shoulder bag still visible. The build was local f0929d9 based on VKtory 5930321, with a local Wine guard patch.

The no-address/no-content creation counter recorded no new events in the windows around those marks. Partially unmapped textures did increase. An already-created image could still have been sampled. We have no draw or image ID tying this to null placed views. Tracking the outfit draw and its sampled image IDs would let us distinguish this case from a missing draw.

**@⁠firefloc** on GitHub · 2026-12-01 20:29 UTC · [original](https://github.com/vktory6/VKtory/issues/123#issuecomment-7324761746) For the proposed check of whether draws sample unfilled images, we have a candidate frame to inspect locally. On a RX 7900 XTX / RADV with GE-Proton 11-14, Series X mode and BCPack tables loaded, an upper-body outfit disappeared in outdoor gameplay after about 30 minutes. The background was visible through it at two F9 marks 4.4 seconds apart (presents 43324 and 43418), with the rest of the character and the shoulder bag still visible. The build was local `f0929d9` based on VKtory `5930321`, with a local Wine guard patch. The no-address/no-content creation counter recorded no new events in the windows around those marks. Partially unmapped textures did increase. An already-created image could still have been sampled. We have no draw or image ID tying this to null placed views. Tracking the outfit draw and its sampled image IDs would let us distinguish this case from a missing draw.
Author
Owner

@⁠TheRifai on GitHub · 2026-12-02 10:43 UTC · original

Cross-repo prior art that may help this issue (no code copied): SandBar-developer/VIctory-SandBar#11 reports the same visible symptom class — facial animation frozen, mouths never open, expressions stay in rest pose in cutscenes and free roam — with a different underlying memory model. There, VICTORY_POOL_BACK=0 leaves the face-relocation compute pass's writes in the card's mirrored pool and never lands them into title memory, so the title's CPU keeps reading the rest pose; VICTORY_POOL_BACK=1 fixes it. Their owner identified the declared shader-write ranges as the place to land selectively.

That is a useful hypothesis shape for our "does any draw sample a texture whose contents we never supplied / whose GPU writes never reached title memory" question: look for a pass that writes the face/clothing data into memory the draw's view never sees, rather than assuming a missing draw. It is not proof for our code — we have no pool mirror, and the maintainer's in-place render-target work addresses a different part of the same problem — but it is another reason to name the sampled image id before changing rendering. Related to the firefloc observation already on this issue.

**@⁠TheRifai** on GitHub · 2026-12-02 10:43 UTC · [original](https://github.com/vktory6/VKtory/issues/123#issuecomment-7342888945) Cross-repo prior art that may help this issue (no code copied): SandBar-developer/VIctory-SandBar#11 reports the same visible symptom class — facial animation frozen, mouths never open, expressions stay in rest pose in cutscenes and free roam — with a different underlying memory model. There, `VICTORY_POOL_BACK=0` leaves the face-relocation compute pass's writes in the card's mirrored pool and never lands them into title memory, so the title's CPU keeps reading the rest pose; `VICTORY_POOL_BACK=1` fixes it. Their owner identified the declared shader-write ranges as the place to land selectively. That is a useful hypothesis shape for our "does any draw sample a texture whose contents we never supplied / whose GPU writes never reached title memory" question: look for a pass that writes the face/clothing data into memory the draw's view never sees, rather than assuming a missing draw. It is not proof for our code — we have no pool mirror, and the maintainer's in-place render-target work addresses a different part of the same problem — but it is another reason to name the sampled image id before changing rendering. Related to the firefloc observation already on this issue.
Author
Owner

@⁠vktory6 on GitHub · 2026-12-02 18:38 UTC · original

Thanks to both of you.

firefloc, your sighting now has a task of its own, "Clothing drawn see-through after a long session": github.com/vktory6/VKtory@a58cd901dd. The no-contents counter stayed quiet around your marks, so it doesn't point at the null placed views. The rising number of partly unmapped textures points more at a stale or partial image, and a missing draw isn't ruled out. The next step is the one you named: at the next sighting, the clothing's draw and the image ids it samples, with a RenderDoc capture first.

TheRifai, the other fork's case is in the same task as a lead shape (compute writes that never reach the memory the draw reads). As you say, we have no pool mirror, so it's a hint, not a cause.

The null placed views themselves are tracked in "Null views read an unfilled image", so this issue's finding now lives in TASKS and I'm closing it.

**@⁠vktory6** on GitHub · 2026-12-02 18:38 UTC · [original](https://github.com/vktory6/VKtory/issues/123#issuecomment-7354924362) Thanks to both of you. firefloc, your sighting now has a task of its own, "Clothing drawn see-through after a long session": https://github.com/vktory6/VKtory/commit/a58cd901ddf9004fdcbc8a1a936f868cca0e0e5d. The no-contents counter stayed quiet around your marks, so it doesn't point at the null placed views. The rising number of partly unmapped textures points more at a stale or partial image, and a missing draw isn't ruled out. The next step is the one you named: at the next sighting, the clothing's draw and the image ids it samples, with a RenderDoc capture first. TheRifai, the other fork's case is in the same task as a lead shape (compute writes that never reach the memory the draw reads). As you say, we have no pool mirror, so it's a hint, not a cause. The null placed views themselves are tracked in "Null views read an unfilled image", so this issue's finding now lives in TASKS and I'm closing it.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/vktory6--VKtory#123
No description provided.