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

Merged
Jess-Doit merged 2 commits from upstream-pr/707 into main 2026-11-22 22:23:03 +00:00
Jess-Doit commented 2026-11-22 21:30:59 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-22T21:30:59Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6548045418 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/707). Originally posted by [Jess-Doit](https://github.com/Jess-Doit) on 2026-11-22T21:30:59Z. --- ## 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.
upstream-sync closed this pull request 2026-11-24 06:44:26 +00:00
R0Y00 commented 2026-11-24 06:48:48 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-22T22:05:02Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7086538037 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/707#issuecomment-7086538037). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-22T22:05:02Z. --- 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.
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!701
No description provided.