renderer: synchronize linear storage images before CPU access #423
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!423
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/423/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Techx3 on GitHub · 2026-08-31 11:34 UTC · original
Techx3:techx3/linear-image-cpu-coherence→main· +510 −16 · 13 files · 1 commits · closed without mergingSummary
Publish GPU-written linear storage images before the guest CPU reads or partially overwrites them. This fixes the missing image-to-CPU visibility observed during Bendy's ambient-probe calculation: the GPU image contained finite pixels while the CPU used stale bytes and produced non-finite lighting coefficients.
The path is limited to registered, linear, uncompressed, non-depth, single-subresource storage images with a supported download plan fitting the existing download buffer. The optional eager linear-image readback remains off. No lighting constants, shaders or NaN replacement are introduced.
Validation
a9166f8.VK_LAYER_KHRONOS_validation; passed with no reported validation errors.depthRenderTarget.cppcheck:stencil state without an active stencil attachment. Its separate local prerequisite is excluded; standalone gameplay on this upstream base is not yet validated.Scope and limits
Independent branch from official
main, with no dependency on the separate DCC clear PR. No Inspector, diagnostic tooling, raw game/SDK artifacts, HDR display presentation, FSR, NpCommerce or unrelated shader changes. Windows is the locally validated platform; Linux/macOS OS-read branches require CI/platform validation. Full-game compatibility, including unrelated Demon’s Souls shader failures, is not claimed.Visual evidence and local integration retest (2026-09-08)
Observed regression
User-supplied screenshot of the affected local build: most corridor surfaces are nearly black and only the distant light remains visible.
Expected appearance — reference
Gameplay reference showing the ambient illumination after the PR.
Verified result in the current local integration
These new results validate the correction adapted into the current combined local build. They do not replace the original isolated-branch validation above or establish that the unchanged PR head was retested on its own. No full-game compatibility or measured FPS improvement is claimed.
@Techx3 on GitHub · 2026-09-08 17:56 UTC · original · edited 2026-09-08 23:57 UTC
I see that the error is present in main, add the capture to help you see the incident. @Nmzik
@Nmzik on GitHub · 2026-09-26 19:01 UTC · original
@Techx3 Whoops sorry! I thought that was the intended look
Pull request closed