docs: record the sampler-views readback difference seen on Intel Xe2 #1133

Manually merged
github merged 1 commit from gh-pr/1133/head into gh-pr/1133/base 2026-11-26 22:44:14 +00:00
Owner

@⁠ChazY11 on GitHub · 2026-11-24 01:38 UTC · original
ChazY11:docs/sampler-views-xe2 → main · +25 −0 · 1 files · 1 commits · merged 2026-11-24 02:10 UTC

What

Adds the one missing adapter to the sampler-views section of docs/experiments.md, plus the two controls that
localize its failure. The section already lists the GTX 1060, in-box WARP and RTX 4060 Laptop results; this adds the
Intel Arc 140T case and what separates a shader-level difference from a descriptor-layer one.

Measured

Host: Windows 11 build 26300.9974, x64, Core Ultra 9 285H. MSVC 14.44.35207, Windows SDK 10.0.26100,
DXC 1.8.2502.11, SPIRV-Tools v2025.5 262bdab4, SPIRV-Cross 57e4efc+ (MinLod patch), Python 3.12.10,
debug layer enabled in every run (debug_errors=0 debug_warnings=0). Commit 110e186 for the fixtures.

$env:XBOX2WINDOWS_ADAPTER = 'Intel'    # or 'NVIDIA'; unset for WARP
ctest --preset dev --no-tests=error -R '^spirv_sampler_views_' -V
adapter driver split shader, 4 words at sampler order 0 verdict
Intel Arc 140T (8086:7d51) 32.0.101.8132 0.25 0.25 / 0 0 fails (word 1 repeats word 0, word 3 repeats word 2)
NVIDIA RTX 5080 Laptop (10de:2c59) 32.0.15.8142 0.25 0.75 / 0 1 passes, and both swaps exchange only their pair
WARP (Microsoft Basic Render Driver) 10.0.26100.9818 0.25 0.75 / 0 1 passes, and both swaps exchange only their pair

Two controls, written as direct HLSL and compiled with the same DXC at cs_6_0, run through the same
--spirv-sampler-views readback path on the Arc:

  1. both bindings explicit — SamplerState ordinary[2] : register(s1), SamplerComparisonState comparison[2] : register(s1, space3) — indexed by SV_DispatchThreadID: read 0.25 0.75 / 0 1, and exchanged only the
    reversed pair in the other two orders, matching the reference.
  2. the same shader with the sampler-array index taken from SV_GroupID, nothing else changed: read
    0.25 0.25 / 0 0, word for word what the split shader produced.

The RTX and WARP readback for both controls were identical to each other and correct. Controls that read one table
only (s1 space 0 alone, then s1 space 3 alone) read the right descriptors on the Arc, so neither table is wrong by
itself. The split shader indexes its samplers with gl_WorkGroupID.x, which is the one line that differs.

Whether the driver folds that index as uniform is not established here, and the entry says so. The Arc result
stays a failure; no expectation is changed.

Tested

.\out\pe-env\Scripts\python.exe -B tests/docs_links_check.py
  Self-test passed. Checked 15 Markdown files and 253 links.
.\out\pe-env\Scripts\python.exe -B tests/bidi_controls_check.py
  Self-test passed. Checked 939 tracked source, script and build/CI files: no bidirectional controls.

Docs only: one paragraph plus two paragraphs of measurement. No fixture, build, CTest registration or expectation
change, so no new test surface and nothing to run on CI beyond the docs checks.

Notes

  • AI-assisted. Every number is from this machine and reproducible with the command above plus the two controls
    described in the entry.
  • Refs #1115, which asked for exactly this direct-HLSL comparison and has the discussion. I have not filed the
    controls as fixtures; if you want them in tests/spirv_window/ with a driver switch, say so and I will send that
    as its own PR.
  • Nothing from a game: the texture, the two depths (0.25, 0.75), the coordinate and the reference value are all
    generated by the fixture.
**@⁠ChazY11** on GitHub · 2026-11-24 01:38 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1133) `ChazY11:docs/sampler-views-xe2` → `main` · +25 −0 · 1 files · 1 commits · merged 2026-11-24 02:10 UTC ## What Adds the one missing adapter to the sampler-views section of `docs/experiments.md`, plus the two controls that localize its failure. The section already lists the GTX 1060, in-box WARP and RTX 4060 Laptop results; this adds the Intel Arc 140T case and what separates a shader-level difference from a descriptor-layer one. ## Measured Host: Windows 11 build 26300.9974, x64, Core Ultra 9 285H. MSVC 14.44.35207, Windows SDK 10.0.26100, DXC 1.8.2502.11, SPIRV-Tools v2025.5 `262bdab4`, SPIRV-Cross `57e4efc+` (MinLod patch), Python 3.12.10, debug layer enabled in every run (`debug_errors=0 debug_warnings=0`). Commit `110e186` for the fixtures. ```powershell $env:XBOX2WINDOWS_ADAPTER = 'Intel' # or 'NVIDIA'; unset for WARP ctest --preset dev --no-tests=error -R '^spirv_sampler_views_' -V ``` | adapter | driver | split shader, 4 words at sampler order 0 | verdict | |---|---|---|---| | Intel Arc 140T (8086:7d51) | 32.0.101.8132 | `0.25 0.25` / `0 0` | fails (word 1 repeats word 0, word 3 repeats word 2) | | NVIDIA RTX 5080 Laptop (10de:2c59) | 32.0.15.8142 | `0.25 0.75` / `0 1` | passes, and both swaps exchange only their pair | | WARP (Microsoft Basic Render Driver) | 10.0.26100.9818 | `0.25 0.75` / `0 1` | passes, and both swaps exchange only their pair | Two controls, written as direct HLSL and compiled with the same DXC at `cs_6_0`, run through the same `--spirv-sampler-views` readback path on the Arc: 1. both bindings explicit — `SamplerState ordinary[2] : register(s1)`, `SamplerComparisonState comparison[2] : register(s1, space3)` — indexed by `SV_DispatchThreadID`: read `0.25 0.75` / `0 1`, and exchanged only the reversed pair in the other two orders, matching the reference. 2. the same shader with the sampler-array index taken from `SV_GroupID`, nothing else changed: read `0.25 0.25` / `0 0`, word for word what the split shader produced. The RTX and WARP readback for both controls were identical to each other and correct. Controls that read one table only (`s1` space 0 alone, then `s1` space 3 alone) read the right descriptors on the Arc, so neither table is wrong by itself. The split shader indexes its samplers with `gl_WorkGroupID.x`, which is the one line that differs. Whether the driver folds that index as uniform is **not** established here, and the entry says so. The Arc result stays a failure; no expectation is changed. ## Tested ```text .\out\pe-env\Scripts\python.exe -B tests/docs_links_check.py Self-test passed. Checked 15 Markdown files and 253 links. .\out\pe-env\Scripts\python.exe -B tests/bidi_controls_check.py Self-test passed. Checked 939 tracked source, script and build/CI files: no bidirectional controls. ``` Docs only: one paragraph plus two paragraphs of measurement. No fixture, build, CTest registration or expectation change, so no new test surface and nothing to run on CI beyond the docs checks. ## Notes - AI-assisted. Every number is from this machine and reproducible with the command above plus the two controls described in the entry. - `Refs #1115`, which asked for exactly this direct-HLSL comparison and has the discussion. I have not filed the controls as fixtures; if you want them in `tests/spirv_window/` with a driver switch, say so and I will send that as its own PR. - Nothing from a game: the texture, the two depths (0.25, 0.75), the coordinate and the reference value are all generated by the fixture.
The sampler-views fixture has per-adapter results for the GTX 1060, in-box WARP and
RTX 4060 Laptop. Add the Intel Arc 140T case and the two controls that localize it:

- the adapter under test read 0.25 0.25 and 0 0 at the first sampler order, so the
  second thread repeated the first thread's descriptors, while the RTX 5080 Laptop
  and in-box WARP on the same commit matched all four words in all three orders;
- a direct-HLSL control with both bindings written out and indexed by
  SV_DispatchThreadID matched the reference on the same adapter;
- the same control with the sampler-array index taken from SV_GroupID, and nothing
  else changed, reproduced the failure word for word. The split shader indexes its
  samplers with gl_WorkGroupID.x.

Both index sources read the correct descriptors for each table alone, so neither
table is wrong by itself. Whether the driver folds the group-id index as uniform is
left as a hypothesis.

Docs only: no fixture, build or expectation changes. Refs #1115.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:44:12 +00:00
github manually merged commit 9369db1a16 into gh-pr/1133/base 2026-11-26 22:44:14 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.