Shaders: early depth for pixel programs the console tests before they run (glass drawn over characters; port of fxceless #907) #435

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

@⁠LeonardoS11 on GitHub · 2026-11-27 06:32 UTC · original
LeonardoS11:pr/av-early-depth → main · +102 −1 · 4 files · 1 commits · open

A 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

**@⁠LeonardoS11** on GitHub · 2026-11-27 06:32 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/435) `LeonardoS11:pr/av-early-depth` → `main` · +102 −1 · 4 files · 1 commits · open A 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](https://claude.com/claude-code)
A 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).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 06:35:41 +00:00
Author
Owner

@⁠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

**@⁠UwUCammie** on GitHub · 2026-11-27 06:49 UTC · [original](https://github.com/avatarmanz/VIctory-7900XTX/pull/435#issuecomment-7211887055) 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](https://github.com/jtrudeau1530/VIctory-7900XTX/pull/58)
This pull request can be merged automatically.
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/435/head:github-bot/gh-435'
git switch 'github-bot/gh-435'

Merge

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