shader: run SPIR-V sampler views at Shader Model 6.0 #707

Manually merged
github merged 2 commits from gh-pr/707/head into gh-pr/707/base 2026-11-26 22:13:21 +00:00
Owner

@⁠Jess-Doit on GitHub · 2026-11-22 21:30 UTC · original
Jess-Doit:test/spirv-sampler-sm60 → main · +26 −13 · 4 files · 2 commits · merged 2026-11-22 22:23 UTC

Change

Compile the indexed ordinary and depth-comparison sampler fixture from #676 as cs_6_0 and ps_6_0. Set the same floor for its readback command so Windows 10 adapters can run the existing descriptor-swap checks.

Verification

Tested 706100f over 3b9bb1a on Windows 10 22H2 build 19045.6456 with Vulkan SDK 1.4.363.0 and Windows SDK 10.0.26100.0 DXC.

  • GTX 1060 6 GB, driver 32.0.15.6094, and in-box WARP 10.0.19041.5794 each matched all four compute output words in all three descriptor orders in Debug and Release. Each pair swapped independently. The D3D12 debug layer reported zero warnings and errors.
  • App-local WARP 1.0.22 with Agility 1.620.2 returned the same words for SM 6.0 and SM 6.6. All three app-local SPIR-V tests passed.
  • The pixel shader compiled at ps_6_0. GPU readback exercised the compute shader.
  • The original SM 6.6 sampler gate returned 77 on both in-box adapters. Reversing just the comparison index in the generated SM 6.0 HLSL and rerunning offscreen_check <hardware|warp> --spirv-sampler-views <control.dxil> returned 1 with the expected readback mismatch and a clean debug layer. Hardware below SM 6.0 was unavailable.
. .\tools\dev.ps1
$env:XBOX2WINDOWS_ADAPTER = 'GTX 1060'
$tests = '^(spirv_(sampler_views|address_window)_(hardware|warp)|offscreen_invalid_operation_warp|docs_links)$'
foreach ($preset in 'dev', 'release') {
    cmake --preset $preset
    cmake --build --preset $preset --target offscreen_check
    ctest --preset $preset --no-tests=error -V -R $tests
}
# After configuring out/build/app-local with Agility and WARP
ctest --test-dir out/build/app-local --no-tests=error -V -R '^spirv_(sampler_views|address_window|ballot_extract)_warp$'

Each in-box run had four passes and two expected address-window skips. The separate ballot fixture submits cs_6_6 on these adapters and fails pipeline creation. I reproduced that result with the unmodified compute-store handler.

Evidence and follow-up

Reuses the MIT-licensed fixture from #676. README and the experiment notes document the lower profile and measured readbacks.

Checklist

  • Covers one source-built fixture behavior.
  • Includes reproduction commands, results, and capability skips.
  • Includes a reversed comparison-sampler negative control.
  • Updates the compatibility documentation.
  • Uses source-built fixtures and documentation.

AI-assisted.

**@⁠Jess-Doit** on GitHub · 2026-11-22 21:30 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/707) `Jess-Doit:test/spirv-sampler-sm60` → `main` · +26 −13 · 4 files · 2 commits · merged 2026-11-22 22:23 UTC ## Change Compile the indexed ordinary and depth-comparison sampler fixture from #676 as `cs_6_0` and `ps_6_0`. Set the same floor for its readback command so Windows 10 adapters can run the existing descriptor-swap checks. ## Verification Tested `706100f` over `3b9bb1a` on Windows 10 22H2 build 19045.6456 with Vulkan SDK 1.4.363.0 and Windows SDK 10.0.26100.0 DXC. - GTX 1060 6 GB, driver 32.0.15.6094, and in-box WARP 10.0.19041.5794 each matched all four compute output words in all three descriptor orders in Debug and Release. Each pair swapped independently. The D3D12 debug layer reported zero warnings and errors. - App-local WARP 1.0.22 with Agility 1.620.2 returned the same words for SM 6.0 and SM 6.6. All three app-local SPIR-V tests passed. - The pixel shader compiled at `ps_6_0`. GPU readback exercised the compute shader. - The original SM 6.6 sampler gate returned 77 on both in-box adapters. Reversing just the comparison index in the generated SM 6.0 HLSL and rerunning `offscreen_check <hardware|warp> --spirv-sampler-views <control.dxil>` returned 1 with the expected readback mismatch and a clean debug layer. Hardware below SM 6.0 was unavailable. ```powershell . .\tools\dev.ps1 $env:XBOX2WINDOWS_ADAPTER = 'GTX 1060' $tests = '^(spirv_(sampler_views|address_window)_(hardware|warp)|offscreen_invalid_operation_warp|docs_links)$' foreach ($preset in 'dev', 'release') { cmake --preset $preset cmake --build --preset $preset --target offscreen_check ctest --preset $preset --no-tests=error -V -R $tests } # After configuring out/build/app-local with Agility and WARP ctest --test-dir out/build/app-local --no-tests=error -V -R '^spirv_(sampler_views|address_window|ballot_extract)_warp$' ``` Each in-box run had four passes and two expected address-window skips. The separate ballot fixture submits `cs_6_6` on these adapters and fails pipeline creation. I reproduced that result with the unmodified compute-store handler. ## Evidence and follow-up Reuses the MIT-licensed fixture from #676. README and the experiment notes document the lower profile and measured readbacks. ## Checklist - [x] Covers one source-built fixture behavior. - [x] Includes reproduction commands, results, and capability skips. - [x] Includes a reversed comparison-sampler negative control. - [x] Updates the compatibility documentation. - [x] Uses source-built fixtures and documentation. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:13:19 +00:00
github manually merged commit b6ec4ae058 into gh-pr/707/base 2026-11-26 22:13:21 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-22 22:05 UTC · original

I resolved the docs/experiments.md conflict with #681 and pushed b6ec4ae to this branch. The indexed sampler views retain the SM 6.0 Windows 10 results, and the separate standalone sampler section stays intact. git diff --cached --check, python -B tests/docs_links_check.py (134 links) and python -B tests/bidi_controls_check.py (601 files) passed on the combined tree. Both Windows jobs are running on the new commit.

**@⁠R0Y00** on GitHub · 2026-11-22 22:05 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/707#issuecomment-7086538037) I resolved the `docs/experiments.md` conflict with #681 and pushed `b6ec4ae` to this branch. The indexed sampler views retain the SM 6.0 Windows 10 results, and the separate standalone sampler section stays intact. `git diff --cached --check`, `python -B tests/docs_links_check.py` (134 links) and `python -B tests/bidi_controls_check.py` (601 files) passed on the combined tree. Both Windows jobs are running on the new commit.
This discussion has been locked. Commenting is limited to contributors.
No description provided.