Shaders: early depth for pixel programs the console tests before they run (glass drawn over characters; port of fxceless #907) #435
No reviewers
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX!435
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-435"
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?
@LeonardoS11 on GitHub · 2026-11-27 06:32 UTC · original
LeonardoS11:pr/av-early-depth→main· +102 −1 · 4 files · 1 commits · openA pixel program whose DB_SHADER_CONTROL has DEPTH_BEFORE_SHADER (bit 12,
HLSL [earlydepthstencil]) now declares ForceEarlyDepthStencil, unless it
exports depth, stencil or coverage (bits 0-2 and 8, or an SV_Depth*,
SV_Coverage or SV_StencilRef output). Without it the host tests after the
shader: the title's glass prepass wrote its depth and motion for every pixel
of a window pane, the character standing in front of it too, and a later
pass copied those over the character's (the frosted glass of the prologue's
window drawn over Lucia's hair and shoulder). TRANSLATOR_VERSION bumped so
cached translations are made again.
Port of fxceless/victory #907 by SpaghettiMaster545 (the same idea as
avatarmanz #353 for RADV). Checked on an RTX 3080 Ti, Series S profile,
prologue cell at 190 s: hair and shoulder clean in front of the window, the
glass still frosted behind; frame time unchanged (42.4 ms against 42.7 on an
RTX 5070 Ti, one run each).
Note: this bumps TRANSLATOR_VERSION like our VOP1 PR does; whichever lands second needs the next number.
AI-assisted (Claude in Claude Code). Built from source; no game data.
🤖 Generated with Claude Code
@UwUCammie on GitHub · 2026-11-27 06:49 UTC · original
The AMD port passed the generated pixel-shader regression in the Windows MSVC build under Wine. Microsoft’s DXIL validator from DXC 1.9.2609 accepted the early-depth shader, and the fixture confirmed that the flag stays clear for depth exports. The RADV glass scene still needs a side-by-side visual check. AMD #58
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.