Skip to content

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

Open
thiefyzheng wants to merge 1 commit into
ProjectLeonida:mainfrom
thiefyzheng:docs/anv-intnarrow-word34
Open

thiefyzheng wants to merge 1 commit into
ProjectLeonida:mainfrom
thiefyzheng:docs/anv-intnarrow-word34

Conversation

@thiefyzheng

Copy link
Copy Markdown
Contributor

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 21625bc: 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.

… (denormal flush; TEST-1000 + Xe2/ARL evidence)

One Known-problems row. The mechanism paragraph and the Gen9 measurements are
theswiss24's TEST-1000 diagnosis (old repo PR #4736, never merged before the repo
closed); this carries it and adds the Arrow Lake-H Arc 140T datapoint: the same
three-word signature (words 34, 49, 129) at ANV 25.2.8, both subgroup modes,
and all 136 words passing once DenormPreserve 32 is added by hand.

AI-assisted.
@PierreEbele

Copy link
Copy Markdown
Contributor

Reviewed 393792f: one Known-problems row for cs_fmt_int_narrow on Intel ANV Mesa 25.2. Docs-only. I ran
the CPU suites (test_value_semantics 41 OK on both trees, including the cs_fmt_int_narrow interpreter
test; test_shader_checks OK) and a probe translating the fixture on CPU: exactly one OpConstant 0x8000ffff
stored by one dword PhysicalStorageBuffer OpStore with no float op on the path, DenormPreserve 16
requested and no DenormPreserve 32, and check.py's expected words are exactly want[34] = 0xffffffff,
want[49]/[129] = 0x8000ffff with the first-mismatch-only message the row describes. The Intel GPU runs
and TEST-1000 are not reproducible on this host. AI-assisted review.

Recommendation: Merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants