startup: preserve explicit pixel depth exports #1762

Manually merged
github merged 1 commit from gh-pr/1762/head into gh-pr/1762/base 2026-11-26 23:31:42 +00:00
Owner

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

Refs #1430.

Lower a single uncompressed exp mrtz vN, off, off, off in a straight-line pixel shader with its entry execution mask to SV_Depth. Color exports retain their SV_Target outputs. 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.

cmake --build --preset release --target startup_stream_depth startup_stream_consumer
ctest --preset release --no-tests=error -R '^startup_(stream_(depth|draw)|gfx2hlsl_(operand_count|sdwa|sdwa_cvt|vcvt_omod))' -V
python -B tests/docs_links_check.py
python -B tests/bidi_controls_check.py
git diff --check

All 8 CTests passed, with zero skips. Link, bidi, and whitespace checks passed.

**@⁠R0Y00** on GitHub · 2026-11-24 18:12 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1762) `R0Y00:codex/synthetic-depth-export-control` → `main` · +47 −7 · 3 files · 1 commits · merged 2026-11-24 18:20 UTC Refs #1430. Lower a single uncompressed `exp mrtz vN, off, off, off` in a straight-line pixel shader with its entry execution mask to `SV_Depth`. Color exports retain their `SV_Target` outputs. 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. ```powershell cmake --build --preset release --target startup_stream_depth startup_stream_consumer ctest --preset release --no-tests=error -R '^startup_(stream_(depth|draw)|gfx2hlsl_(operand_count|sdwa|sdwa_cvt|vcvt_omod))' -V python -B tests/docs_links_check.py python -B tests/bidi_controls_check.py git diff --check ``` All 8 CTests passed, with zero skips. Link, bidi, and whitespace checks passed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 23:31:40 +00:00
github manually merged commit cada260694 into gh-pr/1762/base 2026-11-26 23:31:42 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.