From 78b9e13a5c6e218aefd4b88cc92b3133b954dff3 Mon Sep 17 00:00:00 2001 From: Mouad-Scriptz-0 Date: Tue, 24 Nov 2026 03:15:53 +0000 Subject: [PATCH 1/2] docs/gpu_test_results: the Intel record's tfe failures are the fixtures' expectation (GPU-INTEL-MTL-TFE) The Meteor Lake record (#246) filed cs_imgload_tfe and cs_imgload_d16_tfe as the translator bug of #31 and noted that #98 made them pass. The review on #98 measured on native gfx1036 that a resident image_load tfe keeps the seeded status VGPR, and LLVM initializes the TFE/LWE result itself before the instruction for that reason: the translator, which keeps it, is exact, and the fixtures expect it cleared. #98 is closed. Reword the Failed line and the #84 note in gpu-test-results/IntelMTL.txt, and the table cell, the summary block and a short paragraph in docs/gpu_test_results.md. The measured words are unchanged. --- docs/gpu_test_results.md | 9 +++++++-- gpu-test-results/IntelMTL.txt | 14 +++++++++----- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/docs/gpu_test_results.md b/docs/gpu_test_results.md index 25a73c7f5d..ac7599261a 100644 --- a/docs/gpu_test_results.md +++ b/docs/gpu_test_results.md @@ -10,7 +10,7 @@ post counts and pass/fail lines there, never game shaders, logs or private paths | AMD Radeon RX 9070 GRE (RDNA4, GFX1201), subgroup 32..64 | RADV, Mesa 26.3.1-arch3.5, Vulkan 1.4.363, CachyOS | `05961f0` | 264/264 translated and valid | 203/206 pass, 3 skipped | 218/235 passed, 16 skipped (native and emulated) | `ms_wave_info_s3`, flaky (see below) | [local note](../gpu-test-results/RX9070GRE.txt) | | AMD Radeon RX 9070 XT (RDNA4, GFX1201), subgroup 32..64 | AMD 26.11.2 (LLPC), Vulkan 1.4.359, Windows 11 26300.9550 | `5d74c27` | not run | not run | 224/241 passed, 16 skipped, 1 failed (native); 225/241 passed, 0 failed (`LEONIDA_W64_EMULATE=1`) | `ms_wave_info_s3`, every native run, flaky emulated (see below) | [local note](../gpu-test-results/RX9070XT.txt) | | AMD Radeon RX 7900 GRE (RDNA3, gfx1100), subgroup 32..64 | AMD proprietary 26.11.2 (LLPC), Vulkan 1.4.359, Windows 11 x64 | `5d74c27` | 247/247 translated and valid | run via run_gpu_tests.py | 225/241 passed, 16 skipped | none | [#166](https://github.com/ItsNotRexed/Leonida/issues/166#issuecomment-7115041436) | -| Intel Graphics (Meteor Lake, Xe-LPG), subgroup 8..32 | ANV, Mesa 26.2.7, Vulkan 1.4.354, Fedora 45 | `84347bb` | 279/279 translated and valid | 177/219 pass, 40 skipped, 2 failed | 194/248 passed, 52 skipped (native); 226/248 passed, 20 skipped (`LEONIDA_W64_EMULATE=1`) | `cs_imgload_tfe`, `cs_imgload_d16_tfe` (#31; pass with #98) | [local note](../gpu-test-results/IntelMTL.txt) | +| Intel Graphics (Meteor Lake, Xe-LPG), subgroup 8..32 | ANV, Mesa 26.2.7, Vulkan 1.4.354, Fedora 45 | `84347bb` | 279/279 translated and valid | 177/219 pass, 40 skipped, 2 failed | 194/248 passed, 52 skipped (native); 226/248 passed, 20 skipped (`LEONIDA_W64_EMULATE=1`) | `cs_imgload_tfe`, `cs_imgload_d16_tfe`: the fixtures expect the tfe status cleared, the hardware keeps it (see below) | [local note](../gpu-test-results/IntelMTL.txt) | | Apple M5 Pro (16-core GPU, Metal 4), subgroup 4..32 | MoltenVK 1.4.2 (Homebrew), Vulkan 1.4.357, macOS 26.7.3 (25G342) | `d42773d07` | 280/280 translated and valid | 175/219 pass, 39 skipped, 5 failed | 183/248 passed, 61 skipped, 4 failed (native); 214/248 passed, 30 skipped, 4 failed (`LEONIDA_W64_EMULATE=1`) | `cs_fma_fused` (known row), `cs_imgload_tfe`, `cs_imgload_d16_tfe` (pass with #291), `ps_imgatomic` flake (#543) | [local note](../gpu-test-results/AppleM5Pro.txt) | ## AMD Radeon RX 9070 GRE — 2026-11-23 @@ -112,7 +112,7 @@ build.py: 279 shaders: 279 translated, 279 pass spirv-val check.py: 177 of 219 pass, 40 skipped, 2 failed run_gpu_tests.py: native 194/248 passed, 52 skipped, 2 failed LEONIDA_W64_EMULATE=1: 226/248 passed, 20 skipped, 2 failed -Failed: cs_imgload_tfe, cs_imgload_d16_tfe (#31); both pass with #98 on the same main +Failed: cs_imgload_tfe, cs_imgload_d16_tfe (#31): the fixtures' expectation, see below ``` The device has no 64-wide subgroup. Natively, the 32 tests that need one skip; under `LEONIDA_W64_EMULATE=1` all 32 @@ -125,3 +125,8 @@ distribution's build. The full record, with every skip by name, is in AI-assisted (Claude Code): built `main` at `84347bb`, ran `build.py`, `check.py` and `run_gpu_tests.py` native and emulated on this GPU, and reran the tfe pair with #98 applied. + +The two failures are not a translator or driver problem. Both fixtures seed the tfe status VGPR and expect a +resident read to clear it, but native gfx1036 keeps the seed (the review on #98), and LLVM initializes the TFE/LWE +result itself before the instruction for the same reason. The translator keeps it too. #98, which cleared it, made +both fixtures pass and was closed; the fixtures are what needs correcting. diff --git a/gpu-test-results/IntelMTL.txt b/gpu-test-results/IntelMTL.txt index bffdfa2080..7ef76b96d2 100644 --- a/gpu-test-results/IntelMTL.txt +++ b/gpu-test-results/IntelMTL.txt @@ -15,8 +15,11 @@ run_gpu_tests.py: 257 shaders: 256 translated, 256 pass spirv-val LEONIDA_W64_EMULATE=1: 226/248 passed, 20 skipped, 2 failed Failed: cs_imgload_tfe and cs_imgload_d16_tfe, in every run: "r32 sint (sint view): 64 bad, texel(5,3) = 2071", the expected 71 plus the 2000 the fixture seeds the tfe status - VGPR with. That is #31, the same words as the 780M. With #98 applied on this same - main both pass, native and emulated (2/2 each). + VGPR with: the same words as the 780M (#31). The translator keeps the seeded + status, which is what native gfx1036 does on a resident read (see the review on + #98, and LLVM's TFE/LWE result initialization); the two fixtures expect it cleared. + So the failures are in the fixtures' expectation, not the translator or this GPU. + #98, which cleared the status, made both pass but was closed for that reason. Skipped: native 52 = 16 documented "run by d3d12_*_test / w64_graphics.py" cases (cs_buf_counter, cs_buf_typed, cs_m4_fill, cs_m4_indirect, ps_live_width, ps_m15, ps_m2, ps_m2_array, ps_m2_literal, ps_m2_uoff, ps_m3, ps_m3_post, ps_m3_query, @@ -35,8 +38,9 @@ Notes: ms_wave_info_s3), as does cs_w32_exec_computed (259 1028 3088 7682 512 4100 0 3) now that #24 is on main; emulated, cs_w64_exec_computed passes too (291 1028 11264 771 8192 4132 0 3). - cs_signed_zero_nan and cs_fmt_int_narrow (136/136 words) pass here. The draft #84 records the - four fixtures it names on an Arc 140T (ANV 25.2.8): on this Intel GPU those four are exactly - the two translator fixes (#24, merged, and #98), not a driver difference. + four fixtures it names on an Arc 140T (ANV 25.2.8): on this Intel GPU none of the four is a + driver difference. The exec_computed pair was a translator bug (#24, merged); the tfe pair + fails on the fixtures' expectation, as above. - The seven texture fixtures of the TEST-399 row in docs/testing.md (cs_sample_lz_int_d16, ps_sample_implicit_sint, ps_ssharp, ps_tex, ps_texture_mip0, ps_texture_sample, ps_texture_sample_d16) pass here. That row lists Mesa 26.2.7 as crashing on Iris Xe (ADL @@ -46,4 +50,4 @@ Notes: wave64 compute and mesh test ran only under LEONIDA_W64_EMULATE=1. - AI-assisted (Claude Code): built main at 84347bbb6, ran build.py, check.py and run_gpu_tests.py native and under LEONIDA_W64_EMULATE=1 on this GPU, and reran the tfe pair - with #98 applied. + with #98 applied. The tfe note was corrected after the review on #98. From 48630f1f9bafb3ec17627ec3b41820be525e87d7 Mon Sep 17 00:00:00 2001 From: Mouad-Scriptz-0 Date: Tue, 24 Nov 2026 21:42:18 +0000 Subject: [PATCH 2/2] docs/gpu_test_results: the Intel record notes #892's fixture fix (GPU-INTEL-MTL-TFE) #892 corrected cs_imgload_tfe and cs_imgload_d16_tfe to expect the seeded status kept. At main 0b45fdc21 both pass on this Intel GPU, native and with LEONIDA_W64_EMULATE=1. AI-assisted. --- docs/gpu_test_results.md | 3 ++- gpu-test-results/IntelMTL.txt | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/gpu_test_results.md b/docs/gpu_test_results.md index ac7599261a..b1ee861c74 100644 --- a/docs/gpu_test_results.md +++ b/docs/gpu_test_results.md @@ -129,4 +129,5 @@ emulated on this GPU, and reran the tfe pair with #98 applied. The two failures are not a translator or driver problem. Both fixtures seed the tfe status VGPR and expect a resident read to clear it, but native gfx1036 keeps the seed (the review on #98), and LLVM initializes the TFE/LWE result itself before the instruction for the same reason. The translator keeps it too. #98, which cleared it, made -both fixtures pass and was closed; the fixtures are what needs correcting. +both fixtures pass and was closed. #892 has since corrected both fixtures to expect the seed kept; at `main` +`0b45fdc21` they pass on this GPU, native and emulated. diff --git a/gpu-test-results/IntelMTL.txt b/gpu-test-results/IntelMTL.txt index 7ef76b96d2..74cc33bb1b 100644 --- a/gpu-test-results/IntelMTL.txt +++ b/gpu-test-results/IntelMTL.txt @@ -20,6 +20,8 @@ Failed: cs_imgload_tfe and cs_imgload_d16_tfe, in every run: "r32 sint (sint #98, and LLVM's TFE/LWE result initialization); the two fixtures expect it cleared. So the failures are in the fixtures' expectation, not the translator or this GPU. #98, which cleared the status, made both pass but was closed for that reason. + #892 has since corrected both fixtures to expect the seed kept: at main + 0b45fdc21 they pass on this GPU, native and emulated. Skipped: native 52 = 16 documented "run by d3d12_*_test / w64_graphics.py" cases (cs_buf_counter, cs_buf_typed, cs_m4_fill, cs_m4_indirect, ps_live_width, ps_m15, ps_m2, ps_m2_array, ps_m2_literal, ps_m2_uoff, ps_m3, ps_m3_post, ps_m3_query,