[GH-ISSUE #725] GPU test: Intel Arc A770 (Alchemist) - 180/248 pass, 66 skip, 2 fail (the tfe pair in #31); retail exe maps with 0 unimplemented #20

Open
opened 2026-11-26 20:14:00 +01:00 by 4ld0 · 2 comments
Owner

Originally created by @iiiirokuuug-rgb on GitHub (Nov 24, 2026).
Original GitHub issue: https://github.com/ubiquitarianism/leonida/issues/725

What happens

The GPU suite on this GPU: 180 passed, 66 skipped, 2 failed (scripts/run_gpu_tests.py, 248 programs, 257 shaders translated, 256 pass spirv-val). Both failures are the MIMG tfe pair already tracked in #31; everything else passes or skips for a device limit.

The retail executable also maps and runs here with zero unimplemented imports, and with the command-list IID patch from #523 it reaches resource creation (13 -> 1,639 D3D12 calls) before stopping at a bounds assert. Reported on #523 rather than duplicated here.

Commit

21625bc (main, ubiquitarianism/leonida), MSVC 2022 RelWithDebInfo, CMake + Ninja.

System

Windows 11 Pro build 26200, Intel Arc A770 (Alchemist, 16 GB), Intel Windows driver 32.0.101.9033 (24.09.2026), Vulkan device 1.4.356, Xeon E5-2678 v3, 24 GB.

Subgroup:   8..32 (default 32), subgroupSizeControl on, computeFullSubgroups on
maxPushConstantsSize: 256

Present: VK_EXT_mesh_shader (maxOutputVertices 1024), VK_KHR_cooperative_matrix, VK_EXT_subgroup_size_control, upload heaps in VRAM via Resizable BAR, tiled resources tier 4.
Absent: VK_KHR_fragment_shader_barycentric, VK_EXT_shader_object, VK_KHR_maintenance8, shaderFloat64.

Where

GPU tests (run_gpu_tests.py) and --dry-run/--run of the retail executable.

Command and steps

python -I scripts/run_gpu_tests.py --build runtime/build --work <dir>

Output

257 shaders: 256 translated, 256 pass spirv-val
180/248 passed, 66 skipped

Skips, by class: no 64-wide compute subgroup (the largest group — this device is 8..32), covered by a composite d3d12_* test, no VK_KHR_fragment_shader_barycentric (barycentrics and ps_uniform_branch), no VK_KHR_maintenance8 (non-constant texel Offset), no shaderFloat64, and the subgroup-size cases that need a 32-wide fragment subgroup this device cannot require.

Failures, both in #31:

FAIL  cs_imgload_d16_tfe    exit 1: r32 sint (sint view): 64 bad, texel(5,3) = 2071
FAIL  cs_imgload_tfe        exit 1: r32 sint (sint view): 64 bad, texel(5,3) = 2071

Also measured on this GPU, earlier commits of the predecessor repo

Same hardware, driver and API version, so a record rather than new work:

  • Full corpus pipeline creation: 8,000 of 26,503 pipelines created with no failure, then the Intel driver faulted (0xC0000005) creating one CS_RaytracingResolve compute pipeline. The module alone compiles cleanly (326 s, ~4.5 GB peak) and does not fault, so it does not reproduce alone; a second A770 on driver 32.0.101.9175 measured 449 s for the same module with the same clean result. Individual MSNC_VS_PedTransformSkinD_* mesh shaders take 60-250 s each to compile under wave64 emulation.
  • valu_fuzz and lds_fuzz (default 50 programs, seed 1, both waves, --emulate): mem 100/100, f16 100/100, lds 100/100, and both again with --pc-tail-ubo (the 128-byte push-constant contract) 100/100 each. No mismatch, native or emulated.
  • ctest: 120 of 122 pass; d3d12_vulkan_device and d3d12_buffer_tiles fail. The first diverges only on formats the Intel Vulkan driver cannot create while the vendor D3D12 driver accepts them (195 FORMAT_INFO queries and 94 FORMAT_SUPPORT comparisons match, copies 0 of 75 differ, resolves 60 of 60); the second matches its own replay but not native D3D12 tile contents on Arc (tiled resources tier 4).
  • First Light drew a model exported from the package with its own translated VS/PS pair on this GPU: 128x128, 5,349 of 16,384 pixels covered, geometry rasterised correctly (--check exits 1 only because the coverage fell outside its 0.5-0.99 band for that model).
Originally created by @iiiirokuuug-rgb on GitHub (Nov 24, 2026). Original GitHub issue: https://github.com/ubiquitarianism/leonida/issues/725 ### What happens The GPU suite on this GPU: **180 passed, 66 skipped, 2 failed** (`scripts/run_gpu_tests.py`, 248 programs, 257 shaders translated, 256 pass `spirv-val`). Both failures are the MIMG `tfe` pair already tracked in #31; everything else passes or skips for a device limit. The retail executable also maps and runs here with **zero** unimplemented imports, and with the command-list IID patch from #523 it reaches resource creation (13 -> 1,639 D3D12 calls) before stopping at a bounds assert. Reported on #523 rather than duplicated here. ### Commit `21625bc` (`main`, `ubiquitarianism/leonida`), MSVC 2022 `RelWithDebInfo`, CMake + Ninja. ### System Windows 11 Pro build 26200, **Intel Arc A770 (Alchemist, 16 GB)**, Intel Windows driver **32.0.101.9033** (24.09.2026), Vulkan device 1.4.356, Xeon E5-2678 v3, 24 GB. ``` Subgroup: 8..32 (default 32), subgroupSizeControl on, computeFullSubgroups on maxPushConstantsSize: 256 ``` Present: `VK_EXT_mesh_shader` (maxOutputVertices 1024), `VK_KHR_cooperative_matrix`, `VK_EXT_subgroup_size_control`, upload heaps in VRAM via Resizable BAR, tiled resources tier 4. Absent: `VK_KHR_fragment_shader_barycentric`, `VK_EXT_shader_object`, `VK_KHR_maintenance8`, `shaderFloat64`. ### Where GPU tests (`run_gpu_tests.py`) and `--dry-run`/`--run` of the retail executable. ### Command and steps ``` python -I scripts/run_gpu_tests.py --build runtime/build --work <dir> ``` ### Output ``` 257 shaders: 256 translated, 256 pass spirv-val 180/248 passed, 66 skipped ``` Skips, by class: no 64-wide compute subgroup (the largest group — this device is 8..32), covered by a composite `d3d12_*` test, no `VK_KHR_fragment_shader_barycentric` (barycentrics and `ps_uniform_branch`), no `VK_KHR_maintenance8` (non-constant texel `Offset`), no `shaderFloat64`, and the subgroup-size cases that need a 32-wide fragment subgroup this device cannot require. Failures, both in #31: ``` FAIL cs_imgload_d16_tfe exit 1: r32 sint (sint view): 64 bad, texel(5,3) = 2071 FAIL cs_imgload_tfe exit 1: r32 sint (sint view): 64 bad, texel(5,3) = 2071 ``` ### Also measured on this GPU, earlier commits of the predecessor repo Same hardware, driver and API version, so a record rather than new work: - **Full corpus pipeline creation**: 8,000 of 26,503 pipelines created with no failure, then the Intel driver faulted (`0xC0000005`) creating one `CS_RaytracingResolve` compute pipeline. The module alone compiles cleanly (326 s, ~4.5 GB peak) and does not fault, so it does not reproduce alone; a second A770 on driver 32.0.101.9175 measured 449 s for the same module with the same clean result. Individual `MSNC_VS_PedTransformSkinD_*` mesh shaders take 60-250 s each to compile under wave64 emulation. - **`valu_fuzz` and `lds_fuzz`** (default 50 programs, seed 1, both waves, `--emulate`): `mem` 100/100, `f16` 100/100, `lds` 100/100, and both again with `--pc-tail-ubo` (the 128-byte push-constant contract) 100/100 each. No mismatch, native or emulated. - **`ctest`**: 120 of 122 pass; `d3d12_vulkan_device` and `d3d12_buffer_tiles` fail. The first diverges only on formats the Intel Vulkan driver cannot create while the vendor D3D12 driver accepts them (195 `FORMAT_INFO` queries and 94 `FORMAT_SUPPORT` comparisons match, copies 0 of 75 differ, resolves 60 of 60); the second matches its own replay but not native D3D12 tile contents on Arc (tiled resources tier 4). - **First Light** drew a model exported from the package with its own translated VS/PS pair on this GPU: 128x128, 5,349 of 16,384 pixels covered, geometry rasterised correctly (`--check` exits 1 only because the coverage fell outside its 0.5-0.99 band for that model).
Author
Owner

@iiiirokuuug-rgb commented on GitHub (Nov 24, 2026):

Update after #892 (SHADER-1266, merged in 3295055): the two failures this record lists are gone on this GPU.

PASS  cs_imgload_d16_tfe    r32 sint (sint view): 0 bad, texel(5,3) = 71
PASS  cs_imgload_tfe        r32 sint (sint view): 0 bad, texel(5,3) = 71
2/2 passed

They failed with 64 bad, texel(5,3) = 2071 on 21625bc; the fix corrected the fixtures to check preservation of the pre-seeded status VGPR instead of expecting 0, so the count is now 182 passed / 66 skipped / 0 failed on the Intel Arc A770 at 3295055.

Everything else in the record stands: the retail executable maps with 0 unimplemented imports here, and the earlier numbers (pipeline creation, valu_fuzz/lds_fuzz, ctest, First Light) were measured on the predecessor commits.

<!-- gh-comment-id:7139339910 --> @iiiirokuuug-rgb commented on GitHub (Nov 24, 2026): Update after #892 (SHADER-1266, merged in `3295055`): the two failures this record lists are gone on this GPU. ``` PASS cs_imgload_d16_tfe r32 sint (sint view): 0 bad, texel(5,3) = 71 PASS cs_imgload_tfe r32 sint (sint view): 0 bad, texel(5,3) = 71 2/2 passed ``` They failed with `64 bad, texel(5,3) = 2071` on `21625bc`; the fix corrected the fixtures to check preservation of the pre-seeded status VGPR instead of expecting 0, so the count is now **182 passed / 66 skipped / 0 failed** on the Intel Arc A770 at `3295055`. Everything else in the record stands: the retail executable maps with 0 unimplemented imports here, and the earlier numbers (pipeline creation, `valu_fuzz`/`lds_fuzz`, `ctest`, First Light) were measured on the predecessor commits.
Author
Owner

@pepefroge commented on GitHub (Nov 26, 2026):

Hardware Test Report: Intel Arc Pro B60 (Battlemage / Xe2, 0xe211) — Windows 11, Driver 32.0.101.9150

Adding the first Battlemage (Xe2) test numbers alongside the Arc A770 Alchemist record above. Battlemage closes the major Vulkan extension gaps that caused 66 skips on Alchemist (VK_KHR_fragment_shader_barycentric, VK_KHR_maintenance8, and shaderSignedZeroInfNanPreserveFloat32 are all supported), leaving 0 numeric driver divergences across all executed shader tests, while reproducing and isolating the exact C++ root causes of the Intel Arc sparse/tile residency failures.

System & Vulkan Profile

  • GPU: Intel Arc Pro B60 (0xe211, Battlemage / BMG-G21, 24 GiB VRAM)
  • Driver / API: Windows driver 32.0.101.9150 (1663934), Vulkan 1.4.359 (4211047)
  • Subgroups: subgroupSize 16..32 (supported sizes 32, 64, 128), VK_KHR_shader_subgroup_rotate & VK_KHR_shader_maximal_reconvergence present
  • Sparse Capability Bits (VkPhysicalDeviceFeatures):
    • sparseBinding = true
    • sparseResidencyBuffer = true
    • sparseResidencyImage2D = true
    • sparseResidencyImage3D = true
    • sparseResidencyAliased = true

1. Standalone GPU Shader Suite (scripts/run_gpu_tests.py with LEONIDA_W64_EMULATE=1)

  • Result: 99 passed, 1 skipped, 1 failed (0 numeric driver divergences; 4096/4096 pixel-exact across all executed compute/pixel wave64-emulated tests).
  • 1 Skip (ps_vcmpx_forms): Expected capability guard (subgroupSize 16..32).
  • 1 Fail (cs_w64x_partial_swizzle — hand-written fixture gap, not an Intel driver bug):
    • tests/semantic/fixtures/disasm/cs_w64x_partial_swizzle.s:12 (s_cbranch_execz 9) is missing a ; encoding: comment. When running with --assembler python, tools/rdna2spirv.py requires enc on branch instructions to compute relative target offsets, raising Unsupported("branch without encoding") before emitting .spv.

2. D3D12→Vulkan Proxy Tests (4/6 passed, 2/6 failed — Root Cause Isolated)

  • Passed (4/6): d3d12_vulkan_device_test, descriptor_table_test, d3d12_xdxr_rt_test (BLAS/TLAS builds), and d3d12_shader_path_test.
  • Failed (2/6 — Sparse / Aliased Tile Residency): Both pass on Native D3D12 (Intel reports Tiled Resources Tier 4), even though all five Vulkan sparseResidency* feature bits are true on this driver:
  1. d3d12_buffer_tiles_test (ID3D12CommandQueue::UpdateTileMappings: invalid mapping or sparse residency unavailable):

    • Root cause (runtime/shims/d3d12_vulkan_device.cpp:13890–13897, 9636, 8106): The device probes sparse_buffer_memory_types via a sample sparse VkBuffer (tile_size_in_bytes). On Intel's Windows Vulkan driver, the memoryTypeBits returned for a 64 KiB sparse buffer do not overlap the default tile arena's memory type (or fail the alignment check), leaving sparse_buffer_memory_types / tiles_share_arena() empty and causing Heap::tiles (line 9636) to return null -> E_NOTIMPL in UpdateTileMappings (line 8106).
    • Direction for fix: Allocate tile heaps from sparse_buffer_memory_types directly when creating sparse buffer heaps (instead of requiring overlap with the non-sparse default arena type), or fall back to a dense backing buffer when memoryTypeBits cannot share the arena.
  2. d3d12_texture_tiles_test (alias tile 0 at (0,0): got 0x1cc0200, expected 0xcc020000):

    • Root cause (runtime/src/vulkan_backend.h:4167): VulkanQueue::bind_tiles hardcodes constexpr auto shape = element_tile_shape(false, 4); (assuming a 4-byte element / 128×128 tile geometry) regardless of the actual image format's element byte width or VkSparseImageFormatProperties granularity, causing an exact 1-byte (8-bit) left-shift (0x01CC0200 << 8 == 0xCC020000) on aliased tile (0,0).

Hardware tests executed directly on Intel Arc Pro B60 (32.0.101.9150); C++ source trace assisted locally via Hermes + Qwen 3.8 27B.

<!-- gh-comment-id:7196634156 --> @pepefroge commented on GitHub (Nov 26, 2026): ### Hardware Test Report: Intel Arc Pro B60 (Battlemage / Xe2, `0xe211`) — Windows 11, Driver `32.0.101.9150` Adding the first Battlemage (Xe2) test numbers alongside the Arc A770 Alchemist record above. Battlemage closes the major Vulkan extension gaps that caused 66 skips on Alchemist (`VK_KHR_fragment_shader_barycentric`, `VK_KHR_maintenance8`, and `shaderSignedZeroInfNanPreserveFloat32` are all supported), leaving **0 numeric driver divergences** across all executed shader tests, while reproducing and isolating the exact C++ root causes of the Intel Arc sparse/tile residency failures. #### System & Vulkan Profile - **GPU:** Intel Arc Pro B60 (`0xe211`, Battlemage / BMG-G21, 24 GiB VRAM) - **Driver / API:** Windows driver `32.0.101.9150` (`1663934`), Vulkan `1.4.359` (`4211047`) - **Subgroups:** `subgroupSize` `16..32` (supported sizes `32, 64, 128`), `VK_KHR_shader_subgroup_rotate` & `VK_KHR_shader_maximal_reconvergence` present - **Sparse Capability Bits (`VkPhysicalDeviceFeatures`):** - `sparseBinding = true` - `sparseResidencyBuffer = true` - `sparseResidencyImage2D = true` - `sparseResidencyImage3D = true` - `sparseResidencyAliased = true` --- #### 1. Standalone GPU Shader Suite (`scripts/run_gpu_tests.py` with `LEONIDA_W64_EMULATE=1`) - **Result:** **99 passed, 1 skipped, 1 failed** (0 numeric driver divergences; 4096/4096 pixel-exact across all executed compute/pixel wave64-emulated tests). - **1 Skip (`ps_vcmpx_forms`):** Expected capability guard (`subgroupSize 16..32`). - **1 Fail (`cs_w64x_partial_swizzle` — hand-written fixture gap, not an Intel driver bug):** - `tests/semantic/fixtures/disasm/cs_w64x_partial_swizzle.s:12` (`s_cbranch_execz 9`) is missing a `; encoding:` comment. When running with `--assembler python`, `tools/rdna2spirv.py` requires `enc` on branch instructions to compute relative target offsets, raising `Unsupported("branch without encoding")` before emitting `.spv`. --- #### 2. D3D12→Vulkan Proxy Tests (`4/6 passed`, `2/6 failed` — Root Cause Isolated) - **Passed (4/6):** `d3d12_vulkan_device_test`, `descriptor_table_test`, `d3d12_xdxr_rt_test` (`BLAS`/`TLAS` builds), and `d3d12_shader_path_test`. - **Failed (2/6 — Sparse / Aliased Tile Residency):** Both pass on Native D3D12 (Intel reports **Tiled Resources Tier 4**), even though all five Vulkan `sparseResidency*` feature bits are `true` on this driver: 1. **`d3d12_buffer_tiles_test` (`ID3D12CommandQueue::UpdateTileMappings: invalid mapping or sparse residency unavailable`):** - **Root cause (`runtime/shims/d3d12_vulkan_device.cpp:13890–13897`, `9636`, `8106`):** The device probes `sparse_buffer_memory_types` via a sample sparse `VkBuffer` (`tile_size_in_bytes`). On Intel's Windows Vulkan driver, the `memoryTypeBits` returned for a 64 KiB sparse buffer do not overlap the default tile arena's memory type (or fail the alignment check), leaving `sparse_buffer_memory_types` / `tiles_share_arena()` empty and causing `Heap::tiles` (`line 9636`) to return `null` -> `E_NOTIMPL` in `UpdateTileMappings` (`line 8106`). - **Direction for fix:** Allocate tile heaps from `sparse_buffer_memory_types` directly when creating sparse buffer heaps (instead of requiring overlap with the non-sparse default arena type), or fall back to a dense backing buffer when `memoryTypeBits` cannot share the arena. 2. **`d3d12_texture_tiles_test` (`alias tile 0 at (0,0): got 0x1cc0200, expected 0xcc020000`):** - **Root cause (`runtime/src/vulkan_backend.h:4167`):** `VulkanQueue::bind_tiles` hardcodes `constexpr auto shape = element_tile_shape(false, 4);` (assuming a 4-byte element / 128×128 tile geometry) regardless of the actual image format's element byte width or `VkSparseImageFormatProperties` granularity, causing an exact 1-byte (8-bit) left-shift (`0x01CC0200 << 8 == 0xCC020000`) on aliased tile `(0,0)`. --- *Hardware tests executed directly on Intel Arc Pro B60 (`32.0.101.9150`); C++ source trace assisted locally via Hermes + Qwen 3.8 27B.*
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#20
No description provided.