shader: verify textured indexed mesh fallback #796

Merged
Jess-Doit merged 2 commits from upstream-pr/802 into main 2026-11-23 06:37:10 +00:00
Jess-Doit commented 2026-11-23 05:59:09 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-23T05:59:09Z.


Change

Extend the indexed mesh fallback from #606 to the source-built textured draw at Shader Model 6.0. Separate the compute and graphics root signatures so compute can read its vertex buffer at t0 and graphics can bind the sampled texture at t0. The graphics root keeps b0 and b1.

Verification

Tested d8819fe on d998665 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 128 export bytes and all 1,024 pixels for the baseline, rotated texture, and flipped UV. The stale texture, stale UV, stale b0, and stale b1 controls each changed 276 pixels with matching exports. All 35 fallback cases had zero D3D12 warnings and errors.
  • Debug and Release each passed 7 checks with 22 native mesh capability skips. App-local WARP passed all 14 checks, including the plain and traced native texture draws against the same CPU images, indexed fallback, descriptors, depth, compute-produced texture, lit mesh, and shadow mesh.
  • The textured fallback test reads both pixel CBVs and requires a matching export trace, a matching image, and clean diagnostics on successful draws when the debug layer is available.
$env:XBOX2WINDOWS_ADAPTER = 'GTX 1060'
$tests = '^((mesh_.+|compute_mesh_texture)_(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
}
# In a configured app-local Agility and WARP build
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)_warp|offscreen_capability_table_self_test)$'

Evidence and follow-up

Reuses the MIT-licensed textured fixture and CPU image reference. The three texture_case results remained byte-identical, and the compute-produced texture regression from #658 passed on app-local WARP. The experiment notes in docs/experiments.md document the fallback bindings and controls.

Checklist

  • Covers one reviewable behavior.
  • Includes test commands, results, and capability skips.
  • Includes stale texture, stale UV, and independent pixel CBV negative controls.
  • Updates the compatibility documentation.
  • Uses source-built fixtures.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6553292601 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/802). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-23T05:59:09Z. --- ## Change Extend the indexed mesh fallback from #606 to the source-built textured draw at Shader Model 6.0. Separate the compute and graphics root signatures so compute can read its vertex buffer at `t0` and graphics can bind the sampled texture at `t0`. The graphics root keeps `b0` and `b1`. ## Verification Tested `d8819fe` on `d998665` 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 128 export bytes and all 1,024 pixels for the baseline, rotated texture, and flipped UV. The stale texture, stale UV, stale `b0`, and stale `b1` controls each changed 276 pixels with matching exports. All 35 fallback cases had zero D3D12 warnings and errors. - Debug and Release each passed 7 checks with 22 native mesh capability skips. App-local WARP passed all 14 checks, including the plain and traced native texture draws against the same CPU images, indexed fallback, descriptors, depth, compute-produced texture, lit mesh, and shadow mesh. - The textured fallback test reads both pixel CBVs and requires a matching export trace, a matching image, and clean diagnostics on successful draws when the debug layer is available. ```powershell $env:XBOX2WINDOWS_ADAPTER = 'GTX 1060' $tests = '^((mesh_.+|compute_mesh_texture)_(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 } # In a configured app-local Agility and WARP build 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)_warp|offscreen_capability_table_self_test)$' ``` ## Evidence and follow-up Reuses the MIT-licensed textured fixture and CPU image reference. The three `texture_case` results remained byte-identical, and the compute-produced texture regression from #658 passed on app-local WARP. The experiment notes in `docs/experiments.md` document the fallback bindings and controls. ## Checklist - [x] Covers one reviewable behavior. - [x] Includes test commands, results, and capability skips. - [x] Includes stale texture, stale UV, and independent pixel CBV negative controls. - [x] Updates the compatibility documentation. - [x] Uses source-built fixtures. AI-assisted.
upstream-sync closed this pull request 2026-11-24 06:44:51 +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!796
No description provided.