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

Merged
rasptum merged 1 commit from upstream-pr/191 into main 2026-11-21 18:15:42 +00:00
rasptum commented 2026-11-21 18:11:49 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-21T18:11:49Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6532578634 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/191). Originally posted by [rasptum](https://github.com/rasptum) on 2026-11-21T18:11:49Z. --- ## 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._
upstream-sync closed this pull request 2026-11-24 06:41:45 +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!190
No description provided.