[PR #1399] docs/testing: known problem, cs_fmt_int_narrow on Intel ANV Mesa 25.2 (TEST-1000 denormal flush, + Xe2/ARL evidence) #1429

Open
opened 2026-11-26 20:21:13 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1399
Author: @thiefyzheng
Created: 11/25/2026
Status: 🔄 Open

Base: main ← Head: docs/anv-intnarrow-word34


📝 Commits (1)

  • 393792f docs/testing: known problem, cs_fmt_int_narrow on Intel ANV Mesa 25.2 (denormal flush; TEST-1000 + Xe2/ARL evidence)

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 docs/testing.md (+1 -0)

📄 Description

What

One row in docs/testing.md "Known problems": cs_fmt_int_narrow on Intel ANV from Mesa 25.2 fails not just word 34 but three of its 136 dumped words — 34 (0x00000000), 49 and 129 (0x80000000) — natively and under LEONIDA_W64_EMULATE=1 alike. check.py's comparison stops at the first mismatch, which is why every suite log so far names only word 34 (including ours, in #663's gpu-test-results/IntelARL.txt).

Claimed as ANV-INTNARROW-WORD34 on #14.

Why

No known-problems row covers cs_fmt_int_narrow anywhere: the current table has the RADV 25.2 rows but nothing for this fixture, even though the failure reproduces on Intel Gen9 ANV and — measured here — on an Arrow Lake-H Arc 140T (Xe2) at the same Mesa 25.2.8. A tester on either part could take it for a translator regression. The row also records that the runner prints only the first mismatched word, so the three-word signature is invisible in normal suite output.

The mechanism paragraph and the Gen9 measurements are @theswiss24's TEST-1000 diagnosis (old-repo PR #4736, branch docs/test-1000-anv-gen9-denormal, which never merged before the original repository closed). This carries that diagnosis with credit and adds our Arc 140T evidence.

What I ran (all on hub main, synthetic fixtures only, no game data)

  • Full 136-word dump of the fixture's vk_compute_test ... dump readback on the Arc 140T (ANV 25.2.8-0ubuntu0.24.04.5, Vulkan 1.4.318, Intel Core Ultra 7 255H, PCI 8086:7d51), natively and with LEONIDA_W64_EMULATE=1, both at main 21625bca8: mismatch_count=3, words 34/49/129 exactly as the row states; all other 133 words match FMT_INT_NARROW_WORDS.
  • Freshness control plus a hand-modified module with one added line OpExecutionMode %2 DenormPreserve 32 (spirv-dis → edit → spirv-as → spirv-val clean): the unmodified module reproduces the three mismatches, the modified one passes 136/136. So the failure behaves on Xe2 exactly as TEST-1000 measured on Gen9.
  • Module inspection (spirv-dis, 12,161 lines): the second source dword is OpConstant %uint 2147549183 (= 0x8000FFFF) stored by a single dword OpStore to PhysicalStorageBuffer; no float operation on the path, no 16-bit heap stores; DenormPreserve 16 and SignedZeroInfNanPreserve 32 requested, DenormPreserve 32 not. The raw buffer readback (word 129) is where the corruption is directly visible.
  • CPU interpreter: tests/semantic/test_value_semantics.py TranslatorValueSemantics.test_narrow_integer_typed_buffers — 136/136 OK, so the translator is excluded at that layer too; the translated modules in both subgroup modes are byte-identical (whole-module SHA-256 compared), matching the identical failure in both modes.

Not run / not claimed

Gen9 was not re-run by us (the row's Gen9 wording is TEST-1000's, credited, not our measurement). Neither Gen9 nor the Arc 140T has been run on a newer Mesa with this fixture — so the row does not attribute the failure to hardware vs Mesa version beyond what the matrix shows: Xe-LP (ANV 26.3.1) and Meteor Lake (ANV 26.2.7) pass in #663's records, and the failing parts are both at 25.2.8.

Complements draft #84 (our carried old-PR #9810), which documents the other four Arc-140T fixture failures (cs_imgload_tfe, cs_imgload_d16_tfe, cs_w32_exec_computed, cs_w64_exec_computed) and explicitly leaves this fixture to a row of its own.

Docs-only change: one line in docs/testing.md, no code or tests touched; scripts/check_no_game_data.py passes.

AI-assisted: a pi coding agent operated by the repo contributor ran the rig measurements, the module surgery and the CPU checks; the diagnosis carried is TEST-1000's, and the PR text quotes only measurements actually run.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1399 **Author:** [@thiefyzheng](https://github.com/thiefyzheng) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs/anv-intnarrow-word34` --- ### 📝 Commits (1) - [`393792f`](https://github.com/ubiquitarianism/leonida/commit/393792fece0d1841e96540d98fe86e14cfe071d8) docs/testing: known problem, cs_fmt_int_narrow on Intel ANV Mesa 25.2 (denormal flush; TEST-1000 + Xe2/ARL evidence) ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/testing.md` (+1 -0) </details> ### 📄 Description ## What One row in docs/testing.md "Known problems": `cs_fmt_int_narrow` on Intel ANV from Mesa 25.2 fails not just word 34 but three of its 136 dumped words — 34 (`0x00000000`), 49 and 129 (`0x80000000`) — natively and under `LEONIDA_W64_EMULATE=1` alike. `check.py`'s comparison stops at the first mismatch, which is why every suite log so far names only word 34 (including ours, in #663's `gpu-test-results/IntelARL.txt`). Claimed as **ANV-INTNARROW-WORD34** on #14. ## Why No known-problems row covers `cs_fmt_int_narrow` anywhere: the current table has the RADV 25.2 rows but nothing for this fixture, even though the failure reproduces on Intel Gen9 ANV **and** — measured here — on an Arrow Lake-H Arc 140T (Xe2) at the same Mesa 25.2.8. A tester on either part could take it for a translator regression. The row also records that the runner prints only the first mismatched word, so the three-word signature is invisible in normal suite output. The mechanism paragraph and the Gen9 measurements are **@theswiss24's TEST-1000 diagnosis** (old-repo PR #4736, branch `docs/test-1000-anv-gen9-denormal`, which never merged before the original repository closed). This carries that diagnosis with credit and adds our Arc 140T evidence. ## What I ran (all on hub `main`, synthetic fixtures only, no game data) - Full 136-word dump of the fixture's `vk_compute_test ... dump` readback on the Arc 140T (ANV 25.2.8-0ubuntu0.24.04.5, Vulkan 1.4.318, Intel Core Ultra 7 255H, PCI 8086:7d51), natively and with `LEONIDA_W64_EMULATE=1`, both at `main` 21625bca8: mismatch_count=3, words 34/49/129 exactly as the row states; all other 133 words match `FMT_INT_NARROW_WORDS`. - Freshness control plus a hand-modified module with one added line `OpExecutionMode %2 DenormPreserve 32` (spirv-dis → edit → spirv-as → spirv-val clean): the unmodified module reproduces the three mismatches, the modified one passes **136/136**. So the failure behaves on Xe2 exactly as TEST-1000 measured on Gen9. - Module inspection (spirv-dis, 12,161 lines): the second source dword is `OpConstant %uint 2147549183` (= `0x8000FFFF`) stored by a single dword `OpStore` to PhysicalStorageBuffer; no float operation on the path, no 16-bit heap stores; `DenormPreserve 16` and `SignedZeroInfNanPreserve 32` requested, `DenormPreserve 32` not. The raw buffer readback (word 129) is where the corruption is directly visible. - CPU interpreter: `tests/semantic/test_value_semantics.py` `TranslatorValueSemantics.test_narrow_integer_typed_buffers` — 136/136 OK, so the translator is excluded at that layer too; the translated modules in both subgroup modes are byte-identical (whole-module SHA-256 compared), matching the identical failure in both modes. ## Not run / not claimed Gen9 was not re-run by us (the row's Gen9 wording is TEST-1000's, credited, not our measurement). Neither Gen9 nor the Arc 140T has been run on a newer Mesa with this fixture — so the row does not attribute the failure to hardware vs Mesa version beyond what the matrix shows: Xe-LP (ANV 26.3.1) and Meteor Lake (ANV 26.2.7) pass in #663's records, and the failing parts are both at 25.2.8. Complements draft #84 (our carried old-PR #9810), which documents the other four Arc-140T fixture failures (`cs_imgload_tfe`, `cs_imgload_d16_tfe`, `cs_w32_exec_computed`, `cs_w64_exec_computed`) and explicitly leaves this fixture to a row of its own. Docs-only change: one line in docs/testing.md, no code or tests touched; `scripts/check_no_game_data.py` passes. **AI-assisted**: a pi coding agent operated by the repo contributor ran the rig measurements, the module surgery and the CPU checks; the diagnosis carried is TEST-1000's, and the PR text quotes only measurements actually run. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#1429
No description provided.