startup: preserve explicit pixel depth exports #1762
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!1762
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1762/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?
@R0Y00 on GitHub · 2026-11-24 18:12 UTC · original
R0Y00:codex/synthetic-depth-export-control→main· +47 −7 · 3 files · 1 commits · merged 2026-11-24 18:20 UTCRefs #1430.
Lower a single uncompressed
exp mrtz vN, off, off, offin a straight-line pixel shader with its entry execution mask toSV_Depth. Color exports retain theirSV_Targetoutputs. The existing stream fixture now checks three source-built variants using the same green and red triangles. The original vertex-depth path and an explicit depth of 0.125 leave all 16 covered pixels green. Changing only the explicit depth to 0.875 makes red win all 16. Every variant checks the clear pixels and the existing DSV controls.Verification
Commit
cada2606, Windows 11 25H2 build 26200.9974, MSVC 19.51.36244.0, FXC from SDK 10.0.26100.0. The depth fixture ran with the D3D12 debug layer enabled on Microsoft Basic Render Driver 10.0.26100.9818 (WARP) and NVIDIA GeForce RTX 4060 Laptop GPU 32.0.16.1656.All 8 CTests passed, with zero skips. Link, bidi, and whitespace checks passed.