Runtime tests d3d12_descriptor, d3d12_copy_xfmt and d3d12_vulkan_device fail on Intel UHD 770 (Xe-LP, 101.7092)

Aperta
#1,725 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
20/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp

Direzione di ricerca

Start with the three failing runtime tests, d3d12_descriptor, d3d12_copy_xfmt and d3d12_vulkan_device, built by scripts\build_runtime.ps1 and run with ctest and LEONIDA_VK_DEVICE=UHD. The d3d12_vulkan_device failure is at the host_side(host10.p) assertion near line 4847, and the discussion in #166 covers the full GPU results. Done means the tests pass on the UHD 770 or the Intel driver rounding difference is handled by a justified tolerance, and it is not yet settled which of those applies.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

What happens

On an Intel UHD 770, three runtime tests fail: d3d12_descriptor, d3d12_copy_xfmt and d3d12_vulkan_device. All three pass on an RTX 4070 SUPER built from the same tree. The GPU tests (run_gpu_tests.py) show no failures on either device.

Commit

a0acd33d

System
  • Windows 11 26H2 (build 26300)
  • i7-14700K
  • Intel UHD Graphics 770 (Xe-LP iGPU): driver 101.7092, Vulkan 1.4.323, subgroup 8..32
  • Comparison device in the same machine: RTX 4070 SUPER, NVIDIA 616.64
  • MSVC 19.44, Vulkan SDK 1.4.363.0, llvm-mc 21.1.8
Where

runtime

Command and steps

scripts\build_runtime.ps1, then ctest --test-dir runtime/build --output-on-failure with LEONIDA_VK_DEVICE=UHD.

The test executables were also run directly:

Test Result on the UHD 770
d3d12_descriptor Fails on every run
d3d12_copy_xfmt Fails 4 times out of 5; passed once under ctest
d3d12_vulkan_device Fails

With LEONIDA_VK_DEVICE=4070, all three pass.

Output

1. d3d12_descriptor: minimum-LOD views and a sampler read wrong values on every run.

The device reports VK_EXT_image_view_min_lod with minLod = true.

minimum LOD view 1 texel 0: got 0 0 128 255, expected 16 160 64 255
minimum LOD view 2 texel 0: got 16 160 64 255, expected 208 48 240 255
2D LOD view 1: 64/64 mismatched
2D LOD view 2: 64/64 mismatched
array LOD 1.75, layer 1: got 100,100,64,255; expected 100,180,64,255
array LOD 1.75: 64/64 mismatched
view 5001 through sampler 2100, texel 0: got 0,0,0,0
line 1684: differ == 0

2. d3d12_copy_xfmt: copies from uncompressed formats into BC1 regions differ from WARP.

This fails 4 times out of 5. Only the destination bytes differ, which looks like uninitialised or unsynchronised memory.

CopyTextureRegion R32G32_UINT 2x2 -> BC1 16x16 at (8, 4): DIFFERS from WARP (ours submitted, Close 0x00000000; first differing byte 0: ours 0x80 host 0x00)
CopyResource R32G32_UINT 3x2 -> BC1 12x8, 2 mips: DIFFERS from WARP (ours submitted, Close 0x00000000; first differing byte 56: ours 0xfb host 0x00)
40 compared, 2 differ (BC <-> uncompressed, controls), 0 depth <-> colour differ

3. d3d12_vulkan_device: the placed castable clear check fails on the host side.

The failing assertion is host_side(host10.p), the native D3D12 run on the Intel driver. On a 0.5 UNORM value, the layer writes 80 and the host writes 7f.

placed SRGB-cast clear row 0 byte 1: ours bb, host bc
placed plain clear row 0 byte 1: ours 80, host 7f
line 4847: host_side(host10.p)

This looks like the Intel D3D12 driver rounding a tie differently, not a layer bug. The test already tolerates a similar "host quirk" for D24 clears, so it may only need the same tolerance here.

Full GPU results for this device are in #166.

Lingua principale
Python
Stelle
14.9k
Fork
1.2k
Merge medio
1h 58m
PR unite (30g)
40

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ItsNotRexed/Leonida

Tutte le issue di ItsNotRexed/Leonida

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.