shader: run the SPIR-V MinLod smoke test at Shader Model 6.0 #818

Merged
Jess-Doit merged 1 commit from upstream-pr/824 into main 2026-11-23 09:14:49 +00:00
Jess-Doit commented 2026-11-23 09:03:27 +00:00 (Migrated from github.com)

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


Change

Run the source-built SPIR-V MinLod smoke fixture at ps_6_0 so the GTX 1060 and Windows 10 in-box WARP can exercise Sample, SampleBias with a texel offset, and SampleGrad. The capability self-test verifies that the smoke command accepts SM 6.0 without WaveOps or Int64ShaderOps and reports skip code 77 below SM 6.0.

Refs #809. The shared capability table edits merge cleanly with #821.

Verification

Tested bf29cae on Windows 10 22H2 build 19045.6456 with DXC 1.9.2602.17, patched SPIRV-Cross 57e4efc, and Vulkan SDK 1.4.363.0 assembly and validation tools. The smoke fixture passed in Debug and Release on the GTX 1060 6 GB (32.0.15.6094), in-box WARP (10.0.19041.5794), and app-local WARP 1.0.22 with Agility SDK 1.620.2. Each positive case matched all 64 pixels. The no-clamp control exited 1 at pixel (0, 0). All 24 smoke draws reported zero D3D12 warnings and errors.

$env:XBOX2WINDOWS_ADAPTER = 'GTX 1060'
foreach ($config in 'dev', 'release') {
    cmake --build --preset $config --target offscreen_check
    ctest --preset $config --no-tests=error -V -R '^(spirv_(minlod|minlod_levels|sampler_views|compare_sampler)_(hardware|warp)|offscreen_capability_table_self_test|docs_links)$'
}
$env:X2W_REQUIRE_SPIRV_TOOLS = '1'
foreach ($config in 'dev', 'release') {
    cmake --build "out/build/app-local-$config" --target offscreen_check
    ctest --test-dir "out/build/app-local-$config" --no-tests=error -V -R '^(spirv_.*_warp|offscreen_capability_table_self_test|app_local_warp_toggle)$'
}

Each in-box run had six passes and four SM 6.6 capability skips in the detailed MinLod and comparison-sampler fixtures. Each app-local run passed nine tests with zero skips, including all seven SPIR-V bridge checks. Documentation links, bidi controls, and git diff --check passed.

Evidence and follow-up

The detailed MinLod tests retain SM 6.6. In a separate probe at ps_6_0 and ps_6_2, in-box WARP selected green mip 1 for a fractional point-filtered clamp of 1.5625 in both translated and direct HLSL forms. Explicit SampleLevel selected blue mip 2, and linear filtering produced the expected green/blue blend of 0.4375/0.5625. A two-mip probe at clamp 0.5625 confirmed the same distinction. The full point-filter expectations stay in place.

Checklist

  • One reviewable behavior with exact test commands and results.
  • Source-built fixture with a negative control.
  • Updated the experiment docs for the capability change.
  • Public synthetic fixtures only.

AI-assisted (Codex).

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6555845800 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/824). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-23T09:03:27Z. --- ## Change Run the source-built SPIR-V MinLod smoke fixture at `ps_6_0` so the GTX 1060 and Windows 10 in-box WARP can exercise `Sample`, `SampleBias` with a texel offset, and `SampleGrad`. The capability self-test verifies that the smoke command accepts SM 6.0 without WaveOps or Int64ShaderOps and reports skip code 77 below SM 6.0. Refs #809. The shared capability table edits merge cleanly with #821. ## Verification Tested `bf29cae` on Windows 10 22H2 build 19045.6456 with DXC 1.9.2602.17, patched SPIRV-Cross `57e4efc`, and Vulkan SDK 1.4.363.0 assembly and validation tools. The smoke fixture passed in Debug and Release on the GTX 1060 6 GB (`32.0.15.6094`), in-box WARP (`10.0.19041.5794`), and app-local WARP 1.0.22 with Agility SDK 1.620.2. Each positive case matched all 64 pixels. The no-clamp control exited 1 at pixel `(0, 0)`. All 24 smoke draws reported zero D3D12 warnings and errors. ```powershell $env:XBOX2WINDOWS_ADAPTER = 'GTX 1060' foreach ($config in 'dev', 'release') { cmake --build --preset $config --target offscreen_check ctest --preset $config --no-tests=error -V -R '^(spirv_(minlod|minlod_levels|sampler_views|compare_sampler)_(hardware|warp)|offscreen_capability_table_self_test|docs_links)$' } $env:X2W_REQUIRE_SPIRV_TOOLS = '1' foreach ($config in 'dev', 'release') { cmake --build "out/build/app-local-$config" --target offscreen_check ctest --test-dir "out/build/app-local-$config" --no-tests=error -V -R '^(spirv_.*_warp|offscreen_capability_table_self_test|app_local_warp_toggle)$' } ``` Each in-box run had six passes and four SM 6.6 capability skips in the detailed MinLod and comparison-sampler fixtures. Each app-local run passed nine tests with zero skips, including all seven SPIR-V bridge checks. Documentation links, bidi controls, and `git diff --check` passed. ## Evidence and follow-up The detailed MinLod tests retain SM 6.6. In a separate probe at `ps_6_0` and `ps_6_2`, in-box WARP selected green mip 1 for a fractional point-filtered clamp of `1.5625` in both translated and direct HLSL forms. Explicit `SampleLevel` selected blue mip 2, and linear filtering produced the expected green/blue blend of `0.4375/0.5625`. A two-mip probe at clamp `0.5625` confirmed the same distinction. The full point-filter expectations stay in place. ## Checklist - [x] One reviewable behavior with exact test commands and results. - [x] Source-built fixture with a negative control. - [x] Updated the experiment docs for the capability change. - [x] Public synthetic fixtures only. AI-assisted (Codex).
upstream-sync closed this pull request 2026-11-24 06:44:57 +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!818
No description provided.