shader: test depth occlusion through the SM 6.0 mesh fallback #819

Manually merged
github merged 1 commit from gh-pr/819/head into gh-pr/819/base 2026-11-26 22:20:59 +00:00
Owner

@⁠Jess-Doit on GitHub · 2026-11-23 08:27 UTC · original
Jess-Doit:test/mesh-depth-pair-fallback → main · +141 −52 · 6 files · 1 commits · merged 2026-11-23 08:48 UTC

Change

Reuse #639's two-triangle scene and CPU references in the SM 6.0 mesh fallback. Two compute dispatches export geometry into separate buffer ranges, then two vertex draws share one color target and depth buffer. The fallback uses the same depth-write and LESS settings as the native path.

Verification

Tested e860c8c on 6de5738, Windows 10 22H2 build 19045.6456 and Windows SDK 10.0.26100.0 DXC.

  • GTX 1060 6 GB (32.0.15.6094), in-box WARP (10.0.19041.5794), and app-local WARP 1.0.22 with Agility 1.620.2 matched all 256 export bytes and all 1,024 pixels in each of the color and depth targets for baseline, reversed order, and swapped depths.
  • Each stale reference changed only its own target: 190 color pixels or 172 depth pixels. Exports still matched. All fallback cases reported zero D3D12 debug warnings or errors.
  • Debug and Release each passed 13 checks with 22 expected native mesh capability skips. App-local WARP passed all 18 checks, including the native depth pair against the same CPU references. The capability table self-test verifies exit 77 below SM 6.0 and exit 2 for missing arguments.
$env:XBOX2WINDOWS_ADAPTER = 'GTX 1060'
$tests = '^((mesh_.+|compute_mesh_texture(_fallback)?|depth_mask_draw)_(hardware|warp)|offscreen_capability_table_self_test|offscreen_invalid_operation_warp|docs_links)$'
foreach ($preset in 'dev', 'release') {
    cmake --build "out/build/$preset" --parallel 4 --target offscreen_check
    ctest --test-dir "out/build/$preset" --no-tests=error -V -R $tests
}
# With app-local Agility and WARP configured
cmake --build out/build/app-local --parallel 4 --target offscreen_check
ctest --test-dir out/build/app-local --no-tests=error -V -R '^((mesh_.+|compute_mesh_texture(_fallback)?|depth_mask_draw)_warp|offscreen_capability_table_self_test|app_local_warp_toggle)$'

Evidence and follow-up

The MIT-licensed fixture builds its shaders from the existing mesh and pixel programs. The experiment notes document the fallback command and readback checks.

Checklist

  • Covers one reviewable behavior.
  • Includes test commands, results, and capability skips.
  • Includes independent stale-color and stale-depth controls.
  • Updates the experiment notes.
  • Uses source-built fixtures.

AI-assisted.

**@⁠Jess-Doit** on GitHub · 2026-11-23 08:27 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/819) `Jess-Doit:test/mesh-depth-pair-fallback` → `main` · +141 −52 · 6 files · 1 commits · merged 2026-11-23 08:48 UTC ## Change Reuse #639's two-triangle scene and CPU references in the SM 6.0 mesh fallback. Two compute dispatches export geometry into separate buffer ranges, then two vertex draws share one color target and depth buffer. The fallback uses the same depth-write and LESS settings as the native path. ## Verification Tested `e860c8c` on `6de5738`, Windows 10 22H2 build 19045.6456 and Windows SDK 10.0.26100.0 DXC. - GTX 1060 6 GB (32.0.15.6094), in-box WARP (10.0.19041.5794), and app-local WARP 1.0.22 with Agility 1.620.2 matched all 256 export bytes and all 1,024 pixels in each of the color and depth targets for baseline, reversed order, and swapped depths. - Each stale reference changed only its own target: 190 color pixels or 172 depth pixels. Exports still matched. All fallback cases reported zero D3D12 debug warnings or errors. - Debug and Release each passed 13 checks with 22 expected native mesh capability skips. App-local WARP passed all 18 checks, including the native depth pair against the same CPU references. The capability table self-test verifies exit 77 below SM 6.0 and exit 2 for missing arguments. ```powershell $env:XBOX2WINDOWS_ADAPTER = 'GTX 1060' $tests = '^((mesh_.+|compute_mesh_texture(_fallback)?|depth_mask_draw)_(hardware|warp)|offscreen_capability_table_self_test|offscreen_invalid_operation_warp|docs_links)$' foreach ($preset in 'dev', 'release') { cmake --build "out/build/$preset" --parallel 4 --target offscreen_check ctest --test-dir "out/build/$preset" --no-tests=error -V -R $tests } # With app-local Agility and WARP configured cmake --build out/build/app-local --parallel 4 --target offscreen_check ctest --test-dir out/build/app-local --no-tests=error -V -R '^((mesh_.+|compute_mesh_texture(_fallback)?|depth_mask_draw)_warp|offscreen_capability_table_self_test|app_local_warp_toggle)$' ``` ## Evidence and follow-up The MIT-licensed fixture builds its shaders from the existing mesh and pixel programs. The experiment notes document the fallback command and readback checks. ## Checklist - [x] Covers one reviewable behavior. - [x] Includes test commands, results, and capability skips. - [x] Includes independent stale-color and stale-depth controls. - [x] Updates the experiment notes. - [x] Uses source-built fixtures. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:20:57 +00:00
github manually merged commit e860c8c1f9 into gh-pr/819/base 2026-11-26 22:20:59 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.