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

Merged
Jess-Doit merged 1 commit from upstream-pr/815 into main 2026-11-23 08:11:24 +00:00
Jess-Doit commented 2026-11-23 07:28:03 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-23T07:28:03Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6554445082 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/815). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-23T07:28:03Z. --- ## 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.
upstream-sync closed this pull request 2026-11-24 06:44:54 +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!809
No description provided.