renderer: track constant-buffer DCC clears for RGBA16F targets #424
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!424
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/424/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:35 UTC · original
Techx3:techx3/dcc-constant-buffer-clear→main· +465 −2 · 8 files · 1 commits · closed without mergingSummary
Recognize complete, straight-line
uint4metadata fills sourced from a 16-byte constant buffer and track opaque-black DCC clears for registered RGBA16F attachments. This addresses the growing-light accumulation observed in Bendy and the Ink Machine without changing lighting math or selecting a game/shader hash.The original compute dispatch always executes. Only four equal
0x40404040words from CPU-current backing can update the existing deferred attachment-clear state. A complete known single-plane, single-sample HDR metadata range and compatible image aliases are required; unknown, partial and unsupported fills keep their existing behavior.Fixed DCC clear values are enabled for RGBA16F separately from packed clear-register support. The metadata footprint helper is intentionally limited to the supported pipe-aligned R_X layout, not a general DCC layout implementation.
Public references: AMD PAL non-GFX11 black/white clear codes, AMD addrlib Gfx10 metadata dimensions.
Validation
a9166f8.(0,0,0,1)pixels, one-time clear consumption, and preservation of later image writes. Synthetic kernel compilation also validates SPIR-V.VK_LAYER_KHRONOS_validation; passed with no reported validation errors.depthRenderTarget.cppcheck:stencil state without an active stencil attachment. The local depth/stencil prerequisite is deliberately excluded, so this PR does not claim standalone gameplay validation on current upstream.Scope
Independent branch from official
main; no dependency on the separate image-to-CPU coherence change. No Inspector, diagnostic tooling, captured game shaders, SDK files, HDR display presentation, FSR, import stubs or unrelated shader changes are included. General DCC emulation and full-game compatibility are not claimed.Pull request closed