shader: draw a GPU-produced texture through the mesh fallback #815

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

@⁠Jess-Doit on GitHub · 2026-11-23 07:28 UTC · original
Jess-Doit:shader/mesh-produced-fallback → main · +82 −17 · 7 files · 1 commits · merged 2026-11-23 08:11 UTC

Change

Reuse the translated texture producer from #658 with the Shader Model 6.0 indexed mesh fallback from #802. The new fixture keeps the producer dispatch, texture copy, geometry export, and draw on one direct command list.

Verification

Tested 2e8eef8 on ea370ed with 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 128 export bytes and 1,024 pixels for the first palette and the second of two palettes. The stale SRV selected the first palette and changed exactly 276 pixels with matching exports. All 15 fallback runs reported zero D3D12 warnings and errors.
  • Debug and Release each passed 9 checks with 22 native mesh capability skips. App-local WARP passed all 15 checks, including native and fallback producer draws against the same CPU images, CPU-uploaded texture, indexed, depth, lit, and shadow draws.
  • Missing producer, stale flag without a second producer, and unknown trailing flag each returned usage exit 2.
$env:XBOX2WINDOWS_ADAPTER = 'GTX 1060'
$tests = '^((mesh_.+|compute_mesh_texture(_fallback)?)_(hardware|warp)|offscreen_capability_table_self_test|offscreen_invalid_operation_warp|docs_links)$'
foreach ($preset in 'dev', 'release') {
    cmake --build "out/build/$preset" --parallel 3 --target offscreen_check
    ctest --test-dir "out/build/$preset" --no-tests=error -V -R $tests
}
# With an app-local Agility and WARP build configured
cmake --build out/build/app-local --parallel 3 --target offscreen_check
ctest --test-dir out/build/app-local --no-tests=error -V -R '^((mesh_.+|compute_mesh_texture(_fallback)?)_warp|offscreen_capability_table_self_test)$'

Evidence and follow-up

The MIT-licensed source fixture reuses the existing palettes, geometry export, and CPU references. Fallback cases retain the graphics b0 and b1 markers from #802. The experiment notes describe the producer handoff and stale binding control.

Checklist

  • Covers one reviewable behavior.
  • Includes test commands, results, and capability skips.
  • Includes an incorrect producer selection control.
  • Updates the experiment documentation.
  • Uses source-built fixtures.

AI-assisted.

**@⁠Jess-Doit** on GitHub · 2026-11-23 07:28 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/815) `Jess-Doit:shader/mesh-produced-fallback` → `main` · +82 −17 · 7 files · 1 commits · merged 2026-11-23 08:11 UTC ## Change Reuse the translated texture producer from #658 with the Shader Model 6.0 indexed mesh fallback from #802. The new fixture keeps the producer dispatch, texture copy, geometry export, and draw on one direct command list. ## Verification Tested `2e8eef8` on `ea370ed` with 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 128 export bytes and 1,024 pixels for the first palette and the second of two palettes. The stale SRV selected the first palette and changed exactly 276 pixels with matching exports. All 15 fallback runs reported zero D3D12 warnings and errors. - Debug and Release each passed 9 checks with 22 native mesh capability skips. App-local WARP passed all 15 checks, including native and fallback producer draws against the same CPU images, CPU-uploaded texture, indexed, depth, lit, and shadow draws. - Missing producer, stale flag without a second producer, and unknown trailing flag each returned usage exit 2. ```powershell $env:XBOX2WINDOWS_ADAPTER = 'GTX 1060' $tests = '^((mesh_.+|compute_mesh_texture(_fallback)?)_(hardware|warp)|offscreen_capability_table_self_test|offscreen_invalid_operation_warp|docs_links)$' foreach ($preset in 'dev', 'release') { cmake --build "out/build/$preset" --parallel 3 --target offscreen_check ctest --test-dir "out/build/$preset" --no-tests=error -V -R $tests } # With an app-local Agility and WARP build configured cmake --build out/build/app-local --parallel 3 --target offscreen_check ctest --test-dir out/build/app-local --no-tests=error -V -R '^((mesh_.+|compute_mesh_texture(_fallback)?)_warp|offscreen_capability_table_self_test)$' ``` ## Evidence and follow-up The MIT-licensed source fixture reuses the existing palettes, geometry export, and CPU references. Fallback cases retain the graphics `b0` and `b1` markers from #802. The experiment notes describe the producer handoff and stale binding control. ## Checklist - [x] Covers one reviewable behavior. - [x] Includes test commands, results, and capability skips. - [x] Includes an incorrect producer selection control. - [x] Updates the experiment documentation. - [x] Uses source-built fixtures. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:20:41 +00:00
github manually merged commit 2e8eef82ed into gh-pr/815/base 2026-11-26 22:20:43 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.