Use versioned feature queries under the app-local Agility SDK #191

Manually merged
github merged 1 commit from gh-pr/191/head into gh-pr/191/base 2026-11-26 21:33:23 +00:00
Owner

@⁠rasptum on GitHub · 2026-11-21 18:11 UTC · original
rasptum:fix/agility-versioned-feature-queries → main · +17 −4 · 4 files · 1 commits · merged 2026-11-21 18:15 UTC

Change

With the app-local Agility SDK (OFFSCREEN_AGILITY_620_DIR) and an available debug layer, ten checks log D3D12 warning 989:

D3D12 989: ID3D12Device::CheckFeatureSupport is superseded by ID3D12Device16::CheckFeatureSupport1. Move to CheckFeatureSupport1 and pass your Agility SDK version ...

dxr_check and the forced wave64 check already call CheckFeatureSupport1(..., 620) under OFFSCREEN_AGILITY_620. Three call sites did not: the cs_6_5 fixture gate in offscreen_check.cpp (from #99), wave_shuffle (from #151) and the packed RCAS format query in ffx_provider_loop.cpp. This adds check_feature(), which uses the versioned call with D3D12SDKVersion when the Agility SDK is configured and plain CheckFeatureSupport otherwise, and switches those three sites to it. Builds without the Agility SDK compile the same call as before.

Verification

First measured as 31263fe on 8ac95cf. Windows 10 22H2 (19045.6466), VS Build Tools 17.14, SDK 10.0.26100, Graphics Tools installed, RTX 3060 (32.0.15.9636). Full suite with -V. Counts are the runs reporting nonzero debug_warnings, and the D3D12 989 lines:

Build main This branch
Default 88/88, 0 warnings 88/88, 0 warnings
Agility 1.620.2 88/88, 10 runs with warnings, 15× 989 88/88, 0 warnings, 0× 989
Agility + WARP 1.0.22 (#147 applied locally) 18 runs with warnings 0 warnings. Only bvh_wave64_warp and wave_shuffle_warp fail (#145).

Rebased onto ccfa703 (3b8a917) and run again: the default and Agility builds each gave 103/104, with 0 warnings, 0 errors and 0× 989 in all 111 debug-layer runs. The one failure, pixel_aot_warp on the in-box WARP 10.0.19041, also fails on unmodified ccfa703 (predicate draw, pixel 0,0 expected 1,1,1,1, got 1,0,0,0). This change does not cause it. Rebased again as 59c413e on 99990ef: the 32 affected checks in the Agility build passed with 0 warnings and 0× 989.

The affected checks were bvh_{atomics,buffer_ops,hits,numeric,packed,reads,waves}, ffx_provider_loop and wave_shuffle, on hardware and WARP. No errors were reported in any configuration, and the D3D12 debug layer was enabled in all 74 GPU runs.

Evidence and follow-up

No fixtures change. The versioned query only clamps reported capabilities to Agility SDK 620, and every check reported the same capability line before and after. A follow-up could move dxr_check and bvh_reads_waves onto the helper too, since each has its own copy of the same #if.

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

**@⁠rasptum** on GitHub · 2026-11-21 18:11 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/191) `rasptum:fix/agility-versioned-feature-queries` → `main` · +17 −4 · 4 files · 1 commits · merged 2026-11-21 18:15 UTC ## Change With the app-local Agility SDK (`OFFSCREEN_AGILITY_620_DIR`) and an available debug layer, ten checks log D3D12 warning 989: ```text D3D12 989: ID3D12Device::CheckFeatureSupport is superseded by ID3D12Device16::CheckFeatureSupport1. Move to CheckFeatureSupport1 and pass your Agility SDK version ... ``` `dxr_check` and the forced wave64 check already call `CheckFeatureSupport1(..., 620)` under `OFFSCREEN_AGILITY_620`. Three call sites did not: the `cs_6_5` fixture gate in `offscreen_check.cpp` (from #99), `wave_shuffle` (from #151) and the packed RCAS format query in `ffx_provider_loop.cpp`. This adds `check_feature()`, which uses the versioned call with `D3D12SDKVersion` when the Agility SDK is configured and plain `CheckFeatureSupport` otherwise, and switches those three sites to it. Builds without the Agility SDK compile the same call as before. ## Verification First measured as `31263fe` on `8ac95cf`. Windows 10 22H2 (19045.6466), VS Build Tools 17.14, SDK 10.0.26100, Graphics Tools installed, RTX 3060 (32.0.15.9636). Full suite with `-V`. Counts are the runs reporting nonzero `debug_warnings`, and the `D3D12 989` lines: | Build | `main` | This branch | |---|---|---| | Default | 88/88, 0 warnings | 88/88, 0 warnings | | Agility 1.620.2 | 88/88, 10 runs with warnings, 15× 989 | 88/88, **0 warnings, 0× 989** | | Agility + WARP 1.0.22 (#147 applied locally) | 18 runs with warnings | **0 warnings**. Only `bvh_wave64_warp` and `wave_shuffle_warp` fail (#145). | Rebased onto `ccfa703` (`3b8a917`) and run again: the default and Agility builds each gave 103/104, with 0 warnings, 0 errors and 0× 989 in all 111 debug-layer runs. The one failure, `pixel_aot_warp` on the in-box WARP 10.0.19041, also fails on unmodified `ccfa703` (predicate draw, pixel 0,0 expected 1,1,1,1, got 1,0,0,0). This change does not cause it. Rebased again as `59c413e` on `99990ef`: the 32 affected checks in the Agility build passed with 0 warnings and 0× 989. The affected checks were `bvh_{atomics,buffer_ops,hits,numeric,packed,reads,waves}`, `ffx_provider_loop` and `wave_shuffle`, on hardware and WARP. No errors were reported in any configuration, and the D3D12 debug layer was enabled in all 74 GPU runs. ## Evidence and follow-up No fixtures change. The versioned query only clamps reported capabilities to Agility SDK 620, and every check reported the same capability line before and after. A follow-up could move `dxr_check` and `bvh_reads_waves` onto the helper too, since each has its own copy of the same `#if`. _AI-assisted (Claude Code); built and run locally on the configuration above._
With OFFSCREEN_AGILITY_620 and the debug layer available, D3D12
warning 989 reported that ID3D12Device::CheckFeatureSupport is
superseded by ID3D12Device16::CheckFeatureSupport1 with the Agility
SDK version. dxr_check and the wave64 check already use the versioned
call. The cs_6_5 fixture gate, wave_shuffle and the packed RCAS
format query did not.

Add check_feature(), which calls CheckFeatureSupport1 with
D3D12SDKVersion when the Agility SDK is configured and
CheckFeatureSupport otherwise, and use it at those three call sites.
Builds without the Agility SDK are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:33:23 +00:00
github manually merged commit 59c413e2d9 into gh-pr/191/base 2026-11-26 21:33:23 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.