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

Merged
ChazY11 merged 1 commit from upstream-pr/1133 into main 2026-11-24 02:10:50 +00:00
ChazY11 commented 2026-11-24 01:38:59 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T01:38:59Z.


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.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6572637258 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1133). Originally posted by [ChazY11](https://github.com/ChazY11) on 2026-11-24T01:38:59Z. --- ## 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.
upstream-sync closed this pull request 2026-11-24 06:46:31 +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!1126
No description provided.