Skip cs_6_5 BVH fixtures on adapters below Shader Model 6.5 #98

Merged
rasptum merged 2 commits from upstream-pr/99 into main 2026-11-21 16:28:17 +00:00
rasptum commented 2026-11-21 15:57:14 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-21T15:57:14Z.


## Change

Seven BVH and buffer-operation tests fail on Windows 10 WARP instead of skipping. Their fixtures are compiled as cs_6_5. The Windows 10 22H2 in-box WARP (10.0.19041) reports Shader Model 6.2, so CreateComputePipelineState returns E_INVALIDARG (0x80070057):

bvh_waves_warp: Create BVH fixture pipeline failed (HRESULT 0x80070057)
bvh_buffer_ops_warp: Create buffer operation PSO failed (HRESULT 0x80070057)

--bvh-wave64, --bvh-differential and the DXR operations already query the shader model and return 77. This applies the same pattern to the seven cs_6_5 operations: offscreen_check prints shader_model_capped_at_6_5=0x.. and returns 77 when the adapter is below SM 6.5. The WARP variants now accept 77 as a skip. The hardware variants already did.

Adapters at SM 6.5 or higher take the same path as before. On windows-2025 CI, WARP reports SM 6.5 or higher, so these tests still run there. package-gpu-check.ps1 still requires bvh_waves_warp, bvh_atomics_warp and bvh_packed_warp to PASS, so a CI WARP that dropped below SM 6.5 would still fail the job and not skip silently.

The released gpu-check-v0.1.0 package has the same failure on Windows 10: .\Run-GpuCheck.ps1 -Backend warp reports bvh_waves_warp - FAIL with the same HRESULT.

Verification

Commit 27567fa on 88fd8c5, Windows 10 22H2 (19045.6466), VS Build Tools 17.14, MSVC 14.44.35207, Windows SDK 10.0.26100 (DXC 1.7.2308).

ctest --preset dev --no-tests=error -R '^bvh_|^dxr_'
Backend Before (b7f7e3f, unmodified) After (27567fa)
WARP 10.0.19041.5794, SM 6.2 7 failed (buffer_ops, reads, waves, hits, packed, numeric, atomics) Same 7 skipped, shader_model_capped_at_6_5=0x62
RTX 3060, driver 32.0.15.9636, SM 6.5 11 passed, wave64 skipped Unchanged: 11 passed, wave64 skipped

Debug layer unavailable on both (Graphics Tools not installed). Full suite after the change: 74 of 75 pass or skip. The remaining failure, shader_metadata_probe, is separate and caused by the SDK's DXC version: #98.

Evidence and follow-up

No new fixtures. The change only adds a capability query before existing ones.

Running these seven tests on Windows 10 WARP would need a newer WARP (the Microsoft.Direct3D.WARP package) or the app-local Agility SDK path. That is a possible follow-up. I haven't tested it.

AI-assisted (Claude Code); built and run locally on the configuration above.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6531059747 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/99). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-21T15:57:14Z. --- ## Change Seven BVH and buffer-operation tests fail on Windows 10 WARP instead of skipping. Their fixtures are compiled as `cs_6_5`. The Windows 10 22H2 in-box WARP (10.0.19041) reports Shader Model 6.2, so `CreateComputePipelineState` returns `E_INVALIDARG` (0x80070057): ```text bvh_waves_warp: Create BVH fixture pipeline failed (HRESULT 0x80070057) bvh_buffer_ops_warp: Create buffer operation PSO failed (HRESULT 0x80070057) ``` `--bvh-wave64`, `--bvh-differential` and the DXR operations already query the shader model and return 77. This applies the same pattern to the seven `cs_6_5` operations: `offscreen_check` prints `shader_model_capped_at_6_5=0x..` and returns 77 when the adapter is below SM 6.5. The WARP variants now accept 77 as a skip. The hardware variants already did. Adapters at SM 6.5 or higher take the same path as before. On `windows-2025` CI, WARP reports SM 6.5 or higher, so these tests still run there. `package-gpu-check.ps1` still requires `bvh_waves_warp`, `bvh_atomics_warp` and `bvh_packed_warp` to PASS, so a CI WARP that dropped below SM 6.5 would still fail the job and not skip silently. The released `gpu-check-v0.1.0` package has the same failure on Windows 10: `.\Run-GpuCheck.ps1 -Backend warp` reports `bvh_waves_warp - FAIL` with the same HRESULT. ## Verification Commit `27567fa` on `88fd8c5`, Windows 10 22H2 (19045.6466), VS Build Tools 17.14, MSVC 14.44.35207, Windows SDK 10.0.26100 (DXC 1.7.2308). ```powershell ctest --preset dev --no-tests=error -R '^bvh_|^dxr_' ``` | Backend | Before (`b7f7e3f`, unmodified) | After (`27567fa`) | |---|---|---| | WARP 10.0.19041.5794, SM 6.2 | 7 failed (`buffer_ops`, `reads`, `waves`, `hits`, `packed`, `numeric`, `atomics`) | Same 7 skipped, `shader_model_capped_at_6_5=0x62` | | RTX 3060, driver 32.0.15.9636, SM 6.5 | 11 passed, wave64 skipped | Unchanged: 11 passed, wave64 skipped | Debug layer unavailable on both (Graphics Tools not installed). Full suite after the change: 74 of 75 pass or skip. The remaining failure, `shader_metadata_probe`, is separate and caused by the SDK's DXC version: #98. ## Evidence and follow-up No new fixtures. The change only adds a capability query before existing ones. Running these seven tests on Windows 10 WARP would need a newer WARP (the `Microsoft.Direct3D.WARP` package) or the app-local Agility SDK path. That is a possible follow-up. I haven't tested it. _AI-assisted (Claude Code); built and run locally on the configuration above._
upstream-sync closed this pull request 2026-11-24 06:41:18 +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!98
No description provided.