docs: record the per-adapter MinLod mip rule, including the Arc floor case #1389

Manually merged
github merged 1 commit from gh-pr/1389/head into gh-pr/1389/base 2026-11-26 23:03:23 +00:00
Owner

@⁠ChazY11 on GitHub · 2026-11-24 10:16 UTC · original
ChazY11:docs/minlod-clamp-floor-xe2 → main · +27 −0 · 1 files · 1 commits · merged 2026-11-24 10:28 UTC

What

docs/experiments.md, minimum-LOD section: names the two mip rules the recorded adapters follow and adds the adapter
that follows the floor rule, with a 19-clamp sweep instead of five clamps.

Measured

Windows 11 build 26300.9974, x64, Core Ultra 9 285H; DXC 1.8.2502.11, SPIRV-Tools 2025.5, SPIRV-Cross 57e4efc+,
debug layer enabled in every run (debug_errors=0 debug_warnings=0), ps_6_6, MIN_MAG_MIP_POINT, 8x8 four-mip
texture, constant coordinate so the LOD is the clamp.

$env:XBOX2WINDOWS_ADAPTER = 'Intel'    # or 'NVIDIA'; unset for WARP
ctest --preset dev --no-tests=error -R '^spirv_minlod_' -V
clamp Arc 140T (32.0.101.8132) RTX 5080 Laptop (32.0.15.8142) in-box WARP (10.0.26100.9818)
0.5 0 1 1
0.99 0 1 1
1.5 1 2 2
1.5625 1 2 2
1.99 1 2 2
2.5 2 3 3
3.5 3 3 3

All 19 clamps from 0.4375 to 3.75 follow floor(clamp) on the Arc and floor(clamp + 0.5) on the RTX and WARP, with
translated SPIR-V and the direct HLSL control agreeing in all 57 cells.

Two consequences are recorded in the entry: the stale-reference control at 1.5625 cannot reject on the Arc because the
adapter reads mip 1 there, and the wrong-mip control at clamp 1 still rejects everywhere because both rules agree at an
exact mip. That is the same finding I reported in #809, now in the place the repository keeps measurements.

Tested

python -B tests/docs_links_check.py       -> 15 Markdown files, 253 links
python -B tests/bidi_controls_check.py    -> 950 tracked files, no bidirectional controls

Docs only: one paragraph and one table in one section. No fixture, CTest registration, build change or expectation
change.

Notes

  • AI-assisted; every cell is from this machine and reproducible with the command above.
  • Refs #809. The Arc fixture failure and the control-design discussion stay in the issue; this PR only records what
    was measured, and explicitly keeps the cause (driver mip selection) as the adapter's behaviour, not a claim about a
    bug.
  • The Arc is named with adapter id, driver and DXC the way the existing hardware notes are, so a later reader can tell
    which build produced the floor rule.
**@⁠ChazY11** on GitHub · 2026-11-24 10:16 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1389) `ChazY11:docs/minlod-clamp-floor-xe2` → `main` · +27 −0 · 1 files · 1 commits · merged 2026-11-24 10:28 UTC ## What `docs/experiments.md`, minimum-LOD section: names the two mip rules the recorded adapters follow and adds the adapter that follows the floor rule, with a 19-clamp sweep instead of five clamps. ## Measured Windows 11 build 26300.9974, x64, Core Ultra 9 285H; DXC 1.8.2502.11, SPIRV-Tools 2025.5, SPIRV-Cross `57e4efc+`, debug layer enabled in every run (`debug_errors=0 debug_warnings=0`), `ps_6_6`, `MIN_MAG_MIP_POINT`, 8x8 four-mip texture, constant coordinate so the LOD is the clamp. ```powershell $env:XBOX2WINDOWS_ADAPTER = 'Intel' # or 'NVIDIA'; unset for WARP ctest --preset dev --no-tests=error -R '^spirv_minlod_' -V ``` | clamp | Arc 140T (32.0.101.8132) | RTX 5080 Laptop (32.0.15.8142) | in-box WARP (10.0.26100.9818) | |---|---|---|---| | 0.5 | **0** | 1 | 1 | | 0.99 | **0** | 1 | 1 | | 1.5 | **1** | 2 | 2 | | 1.5625 | **1** | 2 | 2 | | 1.99 | **1** | 2 | 2 | | 2.5 | **2** | 3 | 3 | | 3.5 | **3** | 3 | 3 | All 19 clamps from 0.4375 to 3.75 follow `floor(clamp)` on the Arc and `floor(clamp + 0.5)` on the RTX and WARP, with translated SPIR-V and the direct HLSL control agreeing in all 57 cells. Two consequences are recorded in the entry: the stale-reference control at 1.5625 cannot reject on the Arc because the adapter reads mip 1 there, and the wrong-mip control at clamp 1 still rejects everywhere because both rules agree at an exact mip. That is the same finding I reported in #809, now in the place the repository keeps measurements. ## Tested ```text python -B tests/docs_links_check.py -> 15 Markdown files, 253 links python -B tests/bidi_controls_check.py -> 950 tracked files, no bidirectional controls ``` Docs only: one paragraph and one table in one section. No fixture, CTest registration, build change or expectation change. ## Notes - AI-assisted; every cell is from this machine and reproducible with the command above. - `Refs #809`. The Arc fixture failure and the control-design discussion stay in the issue; this PR only records what was measured, and explicitly keeps the cause (driver mip selection) as the adapter's behaviour, not a claim about a bug. - The Arc is named with adapter id, driver and DXC the way the existing hardware notes are, so a later reader can tell which build produced the floor rule.
The minimum-LOD section lists what each adapter reads under a MinLod clamp, but not the
two rules the adapters actually follow. Add a 19-clamp sweep with both rules named.

- Intel Arc 140T (driver 32.0.101.8132): floor(clamp) at every one of the 19 clamps,
  so 0.5 reads mip 0 and 1.5625 reads mip 1, like the Windows 10 in-box WARP in the
  existing table and unlike every other adapter recorded there;
- RTX 5080 Laptop (32.0.15.8142) and in-box WARP (10.0.26100.9818): floor(clamp + 0.5)
  at the same clamps;
- translated SPIR-V and the direct HLSL control agreed in all 57 cells, so the split is
  the adapter's mip selection rather than clamp translation or readback;
- the stale-reference control at 1.5625 therefore cannot reject on the Arc, because the
  adapter genuinely reads mip 1 there, while the wrong-mip control at clamp 1 still
  rejects on all three adapters.

Docs only; no fixture, build or expectation change. Refs #809.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 23:03:22 +00:00
github manually merged commit ddc9fce433 into gh-pr/1389/base 2026-11-26 23:03:23 +00:00
Author
Owner

@⁠tedin7 on GitHub · 2026-11-24 10:28 UTC · original · reviewed

Reviewed ddc9fce4 (docs/experiments.md).

  • Diff is clean (git diff --check passed) and 100% title-neutral.
  • Linux checks passed:
    • tests/docs_links_check.py: 16 Markdown files, 313 links checked.
    • tests/bidi_controls_check.py: 1171 tracked files checked, no bidirectional controls.
  • The floor(clamp) vs floor(clamp + 0.5) comparison table and fixture-control implications (stale-reference at 1.5625 vs wrong-mip at 1) are clear and consistent with the surrounding MinLod section.
**@⁠tedin7** on GitHub · 2026-11-24 10:28 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1389#pullrequestreview-6037551696) · **reviewed** Reviewed `ddc9fce4` (`docs/experiments.md`). - Diff is clean (`git diff --check` passed) and 100% title-neutral. - Linux checks passed: - `tests/docs_links_check.py`: 16 Markdown files, 313 links checked. - `tests/bidi_controls_check.py`: 1171 tracked files checked, no bidirectional controls. - The `floor(clamp)` vs `floor(clamp + 0.5)` comparison table and fixture-control implications (stale-reference at 1.5625 vs wrong-mip at 1) are clear and consistent with the surrounding `MinLod` section.
This discussion has been locked. Commenting is limited to contributors.
No description provided.