startup: preserve explicit pixel depth exports #1755

Merged
R0Y00 merged 1 commit from upstream-pr/1762 into main 2026-11-24 18:20:35 +00:00
R0Y00 commented 2026-11-24 18:12:57 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T18:12:57Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6588397536 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1762). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-24T18:12:57Z. --- 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.
upstream-sync closed this pull request 2026-11-24 19:01:22 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!1755
No description provided.