Intel Arc A770 (Alchemist): no barycentrics, so 40 % of pixel programs are refused (E_INVALIDARG); driver hangs compiling 3 shadow shaders; GPU-bound under 1 fps after warm #399

Open
opened 2026-11-27 00:59:11 +00:00 by github-bot · 3 comments
Owner

@⁠jonathan-bdlf on GitHub · 2026-11-26 23:56 UTC · original

Arc tracking issue, to sit next to #98 (B580, device removed). On an A770 the game boots, the menus run at 30 fps, and the prologue cinematic and first scenes render, partly and at 0.3 to 1 fps. I see four problems, and as far as I can tell they come from Intel's driver or hardware rather than from the title:

  1. The driver refuses 235 distinct pipelines at creation with E_INVALIDARG (0x80070057): 204 mesh + pixel, 26 vertex + pixel, 5 compute. That drops 800 to 2,000 draws per frame. The D3D12 debug layer says why: the pixel programs use barycentrics, which the A770 does not support, and 40 % of the title's pixel programs do (details below). It is not the 32 KiB mesh output limit from #125/#138.
  2. The driver's shader compiler hangs on 3 compute pipelines, all cascade shadow tile shaders. warm gives up on each after 180 s.
  3. After warm the run is GPU-bound. The host layer counts the card 85 to 99 % busy, and the submitting thread waits 1.1 to 3.2 s per frame for it, while CPU preparation takes under 100 ms.
  4. Left alone in the cinematic, one run ended with DXGI_ERROR_DEVICE_HUNG on a list of compute dispatches.

Setup

GPU Intel Arc A770 16 GB (device 0x56a0), driver 32.0.101.8991, Resizable BAR on
Host wave lanes min 8, max 32 (host wave lanes min=8 max=32)
VRAM budget 12.8 to 13.0 GB of 16 GB (DXGI local budget)
CPU / RAM Ryzen 9 7950X, 64 GB. Its Radeon iGPU is enumerated too, so VICTORY_D3D12_ADAPTER=Arc is needed
OS Windows 11, build 26300
Build a-publier at 4eb6cfd, cargo build --locked --profile diag -p victory --features diagnostics, Rust 1.98.1
Title 1.0.2.1, Series X profile, scripts\play.ps1 defaults plus -More @{VICTORY_D3D12_ADAPTER='Arc'; VICTORY_PIPELINE_BOOK='1'}
Before the first run victory shaders: 25,787 shaders in 106 s, 198 not translated (195 containers with no vertex, pixel, compute or mesh program; 3 with a lane mask exchanged where not every lane runs)

Three runs of the opening sequence

Runs 1 and 2 were measured in the opening cinematic, run 3 in the car scene right after it, so compare orders of magnitude. At the start of the cinematic in run 3 the recording still waited 375 to 668 ms per frame for pipelines.

Run 1: empty caches Run 2: driver cache from run 1 Run 3: after victory warm --used
Frame 0 fps, ~4,100 ms 0.4 fps, 2,295 ms 0.3 to 0.8 fps, 1,260 to 3,370 ms
CPU preparation (frame line) n/a 1,911 ms 72 to 94 ms
Waiting for the card (frame line) n/a 12 ms 1,070 to 3,213 ms
Copying back n/a 822 ms 28 to 41 ms
Waiting for pipelines (recording) 501 ms 500 ms 0 ms
Draws dropped, pipeline being made ~2,860 632 1 to 179
Draws dropped, other reasons refused + ray-tracing builder (off) 685 + 1,359 indirect 802 to 1,894 + 830 to 1,599 indirect
Card busy (the card's clock per frame) 4 % (menus) 8 to 27 % 85 to 99 %
VRAM in use / budget 12,025 / 12,758 MB 11,621 / 12,851 MB 11,871 / 13,007 MB
Title textures with no host copy yet 31,444 (13.6 GB) 22,434 (11.0 GB) 21,254 (11.0 GB)

The rows come from the per-second log lines N fps, N ms/frame (N preparing; N on the GPU; N copying back), recording per frame, the card's clock per frame and memory of textures.

In run 3, Windows' GPU engine counters for victory.exe (Win32_PerfFormattedData_GPUPerformanceCounters_GPUEngine, 8 s average) gave 3D 72 %, Compute 32 %, Copy 1 %. Earlier in the cinematic they gave Compute 51 % and 3D 48 %, and Task Manager shows the Compute engine peaking at 100 %. The process used 5.5 cores (17 % of 32 threads); its busiest thread ran at 89 % of a core. On top of the title's work, the host layer runs 150 to 215 hash passes and about 85 compare passes per frame on the card (our passes over copies in the card's memory).

On screen, a lot of geometry is missing, everything is blurred because of the textures that have no host copy yet, and hair comes out dithered and blocky.

1. Pipelines the driver refuses with E_INVALIDARG

Run 3 logged 292 host pipeline refused / host mesh pipeline refused lines, all with error=… (0x80070057), for 235 distinct pipelines:

Stages Distinct pipelines
mesh + pixel 204 (169 distinct mesh shaders, 205 distinct pixel shaders)
vertex + pixel 26 (vertex: ptfx_VS ×3, VS_HairStrandGeometry, VS_Passthrough)
compute 5

The refused mesh shaders are mostly ordinary world and skin transforms, not the ped passes of #125. Names from victory translate --list:

Refused mesh shader families (169 shaders)
Count Family
59 MS_VS_TransformD
33 MSNC_VS_TransformSkinD
12 MS_VS_PedTransformPreSkinD_Packed
5 each MSR_VS_TransformSkinD, MS_VS_Transform, MS_VS_TransformAlphaPrepass, MS_VS_TransformD_DetailMapsOff
4 each MS_VS_TransformTerrainNormalTint, MSR_VS_TransformSkinD_DetailMapsOff_NoDeform, MS_VS_TransformSkinD_NoDeform, MSNC_VS_PedTransformSkinAlpha, MSR_VS_TransformSkinD_NoDeform
1 to 3 each MS_VS_TransformSkinD, MSNC_VS_TransformSkin_AlphaPrepass, MS_VS_TransformSkinD_DetailMapsOff_NoDeform, MSR_VS_TransformSkinTransmission, MSR_VS_TransformSkin, MS_VS_TransformTransmission, MSNC_VS_TransformSkin, MSR_VS_TransformSkin_AlphaPrepass, MS_VS_TransformSkin, MS_VS_TransformSkin_AlphaPrepass, MS_VS_BreakableGlassNoCrack(_AlphaPrepass), MSNC_VS_BreakableGlassNoCrack(_AlphaPrepass), MSNC_VS_PedTransformSkin_Decals, MSNC_VS_WindshieldWiperMask
  • VICTORY_MESH_OUTPUT_STRICT=1 victory translate --list refuses 71 mesh shaders (the ped set of #125), and only 1 of them is in Intel's 169. So the over-32 KiB shortcut in mesh_prologue is not what the driver objects to.
  • Compute: 4 of the 5 are refused on NVIDIA as well (#346, #259): 02384a60fda6f2d0 (vfx_triangleClip:CS_DefragHeap_ComputeRelocations), 2da4beb386509b77 (alphaResolve:CS_AlphTransmissionPrefilterMip), 369cbe906ea72764 (GpuParticleUpdate:CS_Visibility), 6b82bc7d22016cb5 (vfx_triangleClip:CS_CollectTriangles_Meshlets). Nobody has reported the fifth, b6df66af105d8b2d (smh_draw_128:CS_VisHair), on another vendor yet.

Why: the A770 has no barycentrics (D3D12 debug layer)

With Graphics Tools installed and VICTORY_D3D12_DEBUG=1, every refusal comes with one of three messages:

Debug layer message After a refusal
ID3D12Device::CreatePixelShader: Shader uses Barycentrics, but the device does not support this (id 93) 319
ID3D12Device::CreatePixelShader: Shader uses atomic int64 on typed resources, but the device does not support this (id 622) 21
ID3D12Device::CreateComputeShader: Shader wants wave lane count of 64 but maximum wave lane count for device is 32 (id 622) 4

So the mesh shaders are fine. The pixel shader paired with them uses SV_Barycentrics / attributeAtVertex (lower.rs barycentric and vertex_input), and with driver 32.0.101.8991 the A770 does not report D3D12_OPTIONS3.BarycentricsSupported. That is why vertex + pixel pipelines are refused too.

It is not a handful of shaders. In the shader cache after victory shaders, 4,870 of the 12,070 pixel programs (40 %) carry the Barycentrics feature flag (SFI0 bit 0x20000), and 13 carry 64-bit typed atomics. On an Arc every pipeline that uses one of them is refused; we only met 205 because we only got as far as the opening.

What makes a pixel program read per vertex: I traced where i and j come from for the 1,126 v_interp_p1/p2 pairs in shaders.rpf that Halves::pair classes as computed (Interp::Weighted):

i and j Pairs Meaning
v_mov_b32 …, 0 for both 570 weights 0 and 0: the value at vertex 0, on attribute rows the program also interpolates normally
hardware barycentrics on loop entry, then changed in the loop (v_sub_f32 1.0, …, v_mul_legacy_f32, v_fmac_f32…) about 550 the attribute evaluated at other weights the program computes

For the first kind, a row is both interpolated and read at vertex 0. Without barycentrics a D3D12 pixel shader cannot get both from one input element, so per_vertex turns the whole row into per-vertex reads. I checked 400 of these programs with dxc -dumpbin: 381 only ever combine the per-vertex reads as P0 + b.y (P1 - P0) + b.z (P2 - P0). I don't see an exact way to keep them on a host without barycentrics short of exporting such rows twice from the vertex/mesh stage (once interpolated, once nointerpolation). The second kind needs real per-vertex data.

2. The driver's compiler hangs on 3 compute pipelines

victory warm --used knew 83,557 pipelines and had 1,870 to make with 21 processes. It made 1,867 in 388 s; 287 got no host pipeline, and 3 ended their process after hanging for 180 s:

Pipeline key Shader
0705fe43639c8313a1443a0791bcfa67 compute 922e1d0ee1e19a85, cascadeshadows_rendering:CS_ShadowRenderTiledCascadesAlphaCB
07b75ef64201ec38ae82fee6daee75e9 compute 20b78ee12ecdb57d, cascadeshadows_rendering:CS_ShadowRenderTiledCascadesCBPPPC
988d6e303de04badef08279d84661e8b compute f133e35efed2a48a, cascadeshadows_rendering:CS_ShadowRenderTiledCascadesAlphaCBPPPC

Compile time per pipeline: median 7.3 ms, p90 719 ms, p99 14.2 s, worst 140 s. In game the same three show up as not made: the driver's compiler crashed on it before.

3. GPU-bound after warm

warm took the CPU side from about 1.9 s to under 0.1 s per frame. What is left is card time: 1 to 3 s for 3,800 to 7,300 draws. I haven't profiled it yet. Suspects, none verified:

  • console wave64 compute run as two 32-lane halves (the A770 has no 64-lane mode);
  • the host layer's own hash and compare passes on the card (--skip-hash-passes in a replay would show it);
  • mesh and indirect draws, which Alchemist is said to handle poorly.

4. Device hung in the cinematic

Run 4 sat in the opening cinematic with nobody playing. After about 3.5 minutes at 0.2 to 0.4 fps the device was removed with 0x887A0006 (DXGI_ERROR_DEVICE_HUNG):

host GPU device removed after 32 submissions sent ahead (VICTORY_RELAY=1) of 237 lists;
breadcrumbs ... "victory host list 1454", its pipelines {"[compute 006d583a371f22ec]", ... "[compute f7c4f227a2a4c4b2]"} (22 compute pipelines);
no command completed of 4; the first uncompleted is command index 0 (op 46)

DRED breadcrumbs were on but the debug layer was not loaded in that run, so the command is not named.

Also in the log (probably not Intel-specific)

  • a pipeline creation method that is not implemented: the title goes without this pipeline at slot=0x1c8 (16×) and slot=0x218 (13×).
  • 1,560 draws per frame dropped as a stage of the ray-tracing structure builder, which is off (ray tracing was off).

Logs

Attached, with paths replaced by <game_dir>, <repo> and %USERPROFILE%:

  • run3-after-warm-full.log: the whole run 3
  • run1-empty-caches-excerpt.log, run2-title-screen-excerpt.log, run2-cinematic-excerpt.log: the last few hundred lines of runs 1 and 2 (terminal scrollback, still wrapped at the terminal width)
  • run4-d3d12-debug-layer.log: run 4, up to the device hang (the debug layer did not load in that run)
  • run5-d3d12-debug-layer-reasons.log: run 5, with the debug layer, so each refusal is followed by its D3D12: message
  • warm-used.log, shaders.log
  • translate-list-mesh-output-strict.log: VICTORY_MESH_OUTPUT_STRICT=1 victory translate --list

Options I can see for hosts without barycentrics

  1. Export rows that a pixel program reads both ways twice from the vertex/mesh stage, one copy nointerpolation. Exact for the vertex-0 reads, but it touches the stage linkage and the 32 KiB mesh output budget.
  2. A fallback behind the host's BarycentricsSupported (fed to the translator like set_host_max_wave, and part of the shader cache fingerprint). On such a host, read vertex 0 as the interpolated value and evaluate computed weights at the hardware ones. Pipelines would load and draw, approximately where the attribute really varies across the triangle. AMD and NVIDIA would not change.
  3. Leave it. Arc then drops 40 % of pixel programs.

I can try option 2 as a PR if that direction is acceptable. Is there a reason to prefer option 1?

Next

  1. Record a frame with VICTORY_RECORD and run victory replay --timing detailed, then --compare --skip-hash-passes, to see where the A770's time goes.
  2. The barycentrics fallback, depending on the answer above.

Data collected and analysed with the help of Claude Code.

victory-intel-arc-a770-logs.zip

**@⁠jonathan-bdlf** on GitHub · 2026-11-26 23:56 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/399) Arc tracking issue, to sit next to #98 (B580, device removed). On an A770 the game boots, the menus run at 30 fps, and the prologue cinematic and first scenes render, partly and at 0.3 to 1 fps. I see four problems, and as far as I can tell they come from Intel's driver or hardware rather than from the title: 1. The driver refuses 235 distinct pipelines at creation with `E_INVALIDARG` (0x80070057): 204 mesh + pixel, 26 vertex + pixel, 5 compute. That drops 800 to 2,000 draws per frame. The D3D12 debug layer says why: the pixel programs use barycentrics, which the A770 does not support, and 40 % of the title's pixel programs do (details below). It is not the 32 KiB mesh output limit from #125/#138. 2. The driver's shader compiler hangs on 3 compute pipelines, all cascade shadow tile shaders. `warm` gives up on each after 180 s. 3. After `warm` the run is GPU-bound. The host layer counts the card 85 to 99 % busy, and the submitting thread waits 1.1 to 3.2 s per frame for it, while CPU preparation takes under 100 ms. 4. Left alone in the cinematic, one run ended with `DXGI_ERROR_DEVICE_HUNG` on a list of compute dispatches. ## Setup | | | |---|---| | GPU | Intel Arc A770 16 GB (device 0x56a0), driver 32.0.101.8991, Resizable BAR on | | Host wave lanes | min 8, max 32 (`host wave lanes min=8 max=32`) | | VRAM budget | 12.8 to 13.0 GB of 16 GB (DXGI local budget) | | CPU / RAM | Ryzen 9 7950X, 64 GB. Its Radeon iGPU is enumerated too, so `VICTORY_D3D12_ADAPTER=Arc` is needed | | OS | Windows 11, build 26300 | | Build | `a-publier` at `4eb6cfd`, `cargo build --locked --profile diag -p victory --features diagnostics`, Rust 1.98.1 | | Title | 1.0.2.1, Series X profile, `scripts\play.ps1` defaults plus `-More @{VICTORY_D3D12_ADAPTER='Arc'; VICTORY_PIPELINE_BOOK='1'}` | | Before the first run | `victory shaders`: 25,787 shaders in 106 s, 198 not translated (195 containers with no vertex, pixel, compute or mesh program; 3 with a lane mask exchanged where not every lane runs) | ## Three runs of the opening sequence Runs 1 and 2 were measured in the opening cinematic, run 3 in the car scene right after it, so compare orders of magnitude. At the start of the cinematic in run 3 the recording still waited 375 to 668 ms per frame for pipelines. | | Run 1: empty caches | Run 2: driver cache from run 1 | Run 3: after `victory warm --used` | |---|---|---|---| | Frame | 0 fps, ~4,100 ms | 0.4 fps, 2,295 ms | 0.3 to 0.8 fps, 1,260 to 3,370 ms | | CPU preparation (frame line) | n/a | 1,911 ms | 72 to 94 ms | | Waiting for the card (frame line) | n/a | 12 ms | 1,070 to 3,213 ms | | Copying back | n/a | 822 ms | 28 to 41 ms | | Waiting for pipelines (recording) | 501 ms | 500 ms | 0 ms | | Draws dropped, pipeline being made | ~2,860 | 632 | 1 to 179 | | Draws dropped, other reasons | refused + ray-tracing builder (off) | 685 + 1,359 indirect | 802 to 1,894 + 830 to 1,599 indirect | | Card busy (`the card's clock per frame`) | 4 % (menus) | 8 to 27 % | 85 to 99 % | | VRAM in use / budget | 12,025 / 12,758 MB | 11,621 / 12,851 MB | 11,871 / 13,007 MB | | Title textures with no host copy yet | 31,444 (13.6 GB) | 22,434 (11.0 GB) | 21,254 (11.0 GB) | The rows come from the per-second log lines `N fps, N ms/frame (N preparing; N on the GPU; N copying back)`, `recording per frame`, `the card's clock per frame` and `memory of textures`. In run 3, Windows' GPU engine counters for `victory.exe` (`Win32_PerfFormattedData_GPUPerformanceCounters_GPUEngine`, 8 s average) gave 3D 72 %, Compute 32 %, Copy 1 %. Earlier in the cinematic they gave Compute 51 % and 3D 48 %, and Task Manager shows the Compute engine peaking at 100 %. The process used 5.5 cores (17 % of 32 threads); its busiest thread ran at 89 % of a core. On top of the title's work, the host layer runs 150 to 215 hash passes and about 85 compare passes per frame on the card (`our passes over copies in the card's memory`). On screen, a lot of geometry is missing, everything is blurred because of the textures that have no host copy yet, and hair comes out dithered and blocky. ## 1. Pipelines the driver refuses with E_INVALIDARG Run 3 logged 292 `host pipeline refused` / `host mesh pipeline refused` lines, all with `error=… (0x80070057)`, for 235 distinct pipelines: | Stages | Distinct pipelines | |---|---| | mesh + pixel | 204 (169 distinct mesh shaders, 205 distinct pixel shaders) | | vertex + pixel | 26 (vertex: `ptfx_VS` ×3, `VS_HairStrandGeometry`, `VS_Passthrough`) | | compute | 5 | The refused mesh shaders are mostly ordinary world and skin transforms, not the ped passes of #125. Names from `victory translate --list`: <details><summary>Refused mesh shader families (169 shaders)</summary> | Count | Family | |---|---| | 59 | `MS_VS_TransformD` | | 33 | `MSNC_VS_TransformSkinD` | | 12 | `MS_VS_PedTransformPreSkinD_Packed` | | 5 each | `MSR_VS_TransformSkinD`, `MS_VS_Transform`, `MS_VS_TransformAlphaPrepass`, `MS_VS_TransformD_DetailMapsOff` | | 4 each | `MS_VS_TransformTerrainNormalTint`, `MSR_VS_TransformSkinD_DetailMapsOff_NoDeform`, `MS_VS_TransformSkinD_NoDeform`, `MSNC_VS_PedTransformSkinAlpha`, `MSR_VS_TransformSkinD_NoDeform` | | 1 to 3 each | `MS_VS_TransformSkinD`, `MSNC_VS_TransformSkin_AlphaPrepass`, `MS_VS_TransformSkinD_DetailMapsOff_NoDeform`, `MSR_VS_TransformSkinTransmission`, `MSR_VS_TransformSkin`, `MS_VS_TransformTransmission`, `MSNC_VS_TransformSkin`, `MSR_VS_TransformSkin_AlphaPrepass`, `MS_VS_TransformSkin`, `MS_VS_TransformSkin_AlphaPrepass`, `MS_VS_BreakableGlassNoCrack(_AlphaPrepass)`, `MSNC_VS_BreakableGlassNoCrack(_AlphaPrepass)`, `MSNC_VS_PedTransformSkin_Decals`, `MSNC_VS_WindshieldWiperMask` | </details> - `VICTORY_MESH_OUTPUT_STRICT=1 victory translate --list` refuses 71 mesh shaders (the ped set of #125), and only 1 of them is in Intel's 169. So the over-32 KiB shortcut in `mesh_prologue` is not what the driver objects to. - Compute: 4 of the 5 are refused on NVIDIA as well (#346, #259): `02384a60fda6f2d0` (`vfx_triangleClip:CS_DefragHeap_ComputeRelocations`), `2da4beb386509b77` (`alphaResolve:CS_AlphTransmissionPrefilterMip`), `369cbe906ea72764` (`GpuParticleUpdate:CS_Visibility`), `6b82bc7d22016cb5` (`vfx_triangleClip:CS_CollectTriangles_Meshlets`). Nobody has reported the fifth, `b6df66af105d8b2d` (`smh_draw_128:CS_VisHair`), on another vendor yet. ### Why: the A770 has no barycentrics (D3D12 debug layer) With Graphics Tools installed and `VICTORY_D3D12_DEBUG=1`, every refusal comes with one of three messages: | Debug layer message | After a refusal | |---|---| | `ID3D12Device::CreatePixelShader: Shader uses Barycentrics, but the device does not support this` (id 93) | 319 | | `ID3D12Device::CreatePixelShader: Shader uses atomic int64 on typed resources, but the device does not support this` (id 622) | 21 | | `ID3D12Device::CreateComputeShader: Shader wants wave lane count of 64 but maximum wave lane count for device is 32` (id 622) | 4 | So the mesh shaders are fine. The pixel shader paired with them uses `SV_Barycentrics` / `attributeAtVertex` (`lower.rs` `barycentric` and `vertex_input`), and with driver 32.0.101.8991 the A770 does not report `D3D12_OPTIONS3.BarycentricsSupported`. That is why vertex + pixel pipelines are refused too. It is not a handful of shaders. In the shader cache after `victory shaders`, **4,870 of the 12,070 pixel programs (40 %)** carry the Barycentrics feature flag (SFI0 bit 0x20000), and 13 carry 64-bit typed atomics. On an Arc every pipeline that uses one of them is refused; we only met 205 because we only got as far as the opening. What makes a pixel program read per vertex: I traced where i and j come from for the 1,126 `v_interp_p1`/`p2` pairs in `shaders.rpf` that `Halves::pair` classes as computed (`Interp::Weighted`): | i and j | Pairs | Meaning | |---|---|---| | `v_mov_b32 …, 0` for both | 570 | weights 0 and 0: the value at vertex 0, on attribute rows the program also interpolates normally | | hardware barycentrics on loop entry, then changed in the loop (`v_sub_f32 1.0, …`, `v_mul_legacy_f32`, `v_fmac_f32`…) | about 550 | the attribute evaluated at other weights the program computes | For the first kind, a row is both interpolated and read at vertex 0. Without barycentrics a D3D12 pixel shader cannot get both from one input element, so `per_vertex` turns the whole row into per-vertex reads. I checked 400 of these programs with `dxc -dumpbin`: 381 only ever combine the per-vertex reads as `P0 + b.y (P1 - P0) + b.z (P2 - P0)`. I don't see an exact way to keep them on a host without barycentrics short of exporting such rows twice from the vertex/mesh stage (once interpolated, once `nointerpolation`). The second kind needs real per-vertex data. ## 2. The driver's compiler hangs on 3 compute pipelines `victory warm --used` knew 83,557 pipelines and had 1,870 to make with 21 processes. It made 1,867 in 388 s; 287 got no host pipeline, and 3 ended their process after hanging for 180 s: | Pipeline key | Shader | |---|---| | `0705fe43639c8313a1443a0791bcfa67` | compute `922e1d0ee1e19a85`, `cascadeshadows_rendering:CS_ShadowRenderTiledCascadesAlphaCB` | | `07b75ef64201ec38ae82fee6daee75e9` | compute `20b78ee12ecdb57d`, `cascadeshadows_rendering:CS_ShadowRenderTiledCascadesCBPPPC` | | `988d6e303de04badef08279d84661e8b` | compute `f133e35efed2a48a`, `cascadeshadows_rendering:CS_ShadowRenderTiledCascadesAlphaCBPPPC` | Compile time per pipeline: median 7.3 ms, p90 719 ms, p99 14.2 s, worst 140 s. In game the same three show up as `not made: the driver's compiler crashed on it before`. ## 3. GPU-bound after warm `warm` took the CPU side from about 1.9 s to under 0.1 s per frame. What is left is card time: 1 to 3 s for 3,800 to 7,300 draws. I haven't profiled it yet. Suspects, none verified: - console wave64 compute run as two 32-lane halves (the A770 has no 64-lane mode); - the host layer's own hash and compare passes on the card (`--skip-hash-passes` in a replay would show it); - mesh and indirect draws, which Alchemist is said to handle poorly. ## 4. Device hung in the cinematic Run 4 sat in the opening cinematic with nobody playing. After about 3.5 minutes at 0.2 to 0.4 fps the device was removed with `0x887A0006` (`DXGI_ERROR_DEVICE_HUNG`): ``` host GPU device removed after 32 submissions sent ahead (VICTORY_RELAY=1) of 237 lists; breadcrumbs ... "victory host list 1454", its pipelines {"[compute 006d583a371f22ec]", ... "[compute f7c4f227a2a4c4b2]"} (22 compute pipelines); no command completed of 4; the first uncompleted is command index 0 (op 46) ``` DRED breadcrumbs were on but the debug layer was not loaded in that run, so the command is not named. ## Also in the log (probably not Intel-specific) - `a pipeline creation method that is not implemented: the title goes without this pipeline` at `slot=0x1c8` (16×) and `slot=0x218` (13×). - 1,560 draws per frame dropped as `a stage of the ray-tracing structure builder, which is off` (ray tracing was off). ## Logs Attached, with paths replaced by `<game_dir>`, `<repo>` and `%USERPROFILE%`: - `run3-after-warm-full.log`: the whole run 3 - `run1-empty-caches-excerpt.log`, `run2-title-screen-excerpt.log`, `run2-cinematic-excerpt.log`: the last few hundred lines of runs 1 and 2 (terminal scrollback, still wrapped at the terminal width) - `run4-d3d12-debug-layer.log`: run 4, up to the device hang (the debug layer did not load in that run) - `run5-d3d12-debug-layer-reasons.log`: run 5, with the debug layer, so each refusal is followed by its `D3D12:` message - `warm-used.log`, `shaders.log` - `translate-list-mesh-output-strict.log`: `VICTORY_MESH_OUTPUT_STRICT=1 victory translate --list` ## Options I can see for hosts without barycentrics 1. Export rows that a pixel program reads both ways twice from the vertex/mesh stage, one copy `nointerpolation`. Exact for the vertex-0 reads, but it touches the stage linkage and the 32 KiB mesh output budget. 2. A fallback behind the host's `BarycentricsSupported` (fed to the translator like `set_host_max_wave`, and part of the shader cache fingerprint). On such a host, read vertex 0 as the interpolated value and evaluate computed weights at the hardware ones. Pipelines would load and draw, approximately where the attribute really varies across the triangle. AMD and NVIDIA would not change. 3. Leave it. Arc then drops 40 % of pixel programs. I can try option 2 as a PR if that direction is acceptable. Is there a reason to prefer option 1? ## Next 1. Record a frame with `VICTORY_RECORD` and run `victory replay --timing detailed`, then `--compare --skip-hash-passes`, to see where the A770's time goes. 2. The barycentrics fallback, depending on the answer above. _Data collected and analysed with the help of Claude Code._ [victory-intel-arc-a770-logs.zip](https://github.com/user-attachments/files/35488238/victory-intel-arc-a770-logs.zip)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:59:12 +00:00
Author
Owner

@⁠Vicente100204 on GitHub · 2026-11-27 12:12 UTC · original

Hi,
I can confirm it is not Intel specific, also happens on 760M, 64GB RAM.

**@⁠Vicente100204** on GitHub · 2026-11-27 12:12 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/399#issuecomment-7217974826) Hi, I can confirm it is not Intel specific, also happens on 760M, 64GB RAM.
Author
Owner

@⁠jonathan-bdlf on GitHub · 2026-11-27 12:16 UTC · original

Hey @⁠Vicente100204 thanks for testing. Which part do you see on the 760M? The issue covers four things:

  1. pipelines refused at creation (host pipeline refused / host mesh pipeline refused with 0x80070057 in the log)
  2. warm giving up on the three cascadeshadows_rendering compute pipelines after 180 s
  3. a low frame rate with the card close to 100 % busy
  4. DXGI_ERROR_DEVICE_HUNG

A low frame rate alone doesn't tell us much on an 8 CU iGPU, so 1 is the one that matters here. If you get refusals, could you run once with Graphics Tools installed and VICTORY_D3D12_DEBUG=1, and post the D3D12: line that follows a refusal?
On the A770 it reads Shader uses Barycentrics, but the device does not support this. If the 760M gives the same message, the fallback isn't only for Arc.

Your driver version, the commit you built and the log would help too :)

**@⁠jonathan-bdlf** on GitHub · 2026-11-27 12:16 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/399#issuecomment-7218053936) Hey @⁠Vicente100204 thanks for testing. Which part do you see on the 760M? The issue covers four things: 1. pipelines refused at creation (`host pipeline refused` / `host mesh pipeline refused` with `0x80070057` in the log) 2. `warm` giving up on the three `cascadeshadows_rendering` compute pipelines after 180 s 3. a low frame rate with the card close to 100 % busy 4. `DXGI_ERROR_DEVICE_HUNG` A low frame rate alone doesn't tell us much on an 8 CU iGPU, so 1 is the one that matters here. If you get refusals, could you run once with Graphics Tools installed and `VICTORY_D3D12_DEBUG=1`, and post the `D3D12:` line that follows a refusal? On the A770 it reads `Shader uses Barycentrics, but the device does not support this`. If the 760M gives the same message, the fallback isn't only for Arc. Your driver version, the commit you built and the log would help too :)
Author
Owner

@⁠jonathan-bdlf on GitHub · 2026-11-27 13:14 UTC · original

Update after a day on the A770 (Xe-HPG, Alchemist; same driver, 32.0.101.8991). The barycentric refusals are fixed in a local branch. What's left is a GPU hang I could localize but not explain.

1. Pixel programs without barycentrics

The translator now checks D3D12_OPTIONS3.BarycentricsSupported. On a host without it, it translates the programs it used to emit with SV_Barycentrics / GetAttributeAtVertex, with one stand-in per case. VICTORY_NO_BARYCENTRICS_ALLOW turns them off one by one:

  • x: a row that is also read per vertex is interpolated by the hardware. This is exact when those vertex reads are dead, and in this title they are. All 146 lit material pixel programs that were refused translate with x alone, and --validate passes on them.
  • w, p, d: computed weights at the hardware's, vertex 0 of an interpolated row as its interpolated value, P1 - P0 and P2 - P0 as 0. These are approximate.

With the stand-ins on, drops for want of a host pipeline go from about 3,400 draws a frame to about 50. The rest come from 15 programs the driver still refuses with E_INVALIDARG, 4 that read barycentrics as numbers, and the 3 cascade shadow pipelines from the first report. The shader cache keys on the stand-ins only when the host has no barycentrics, so AMD and NVIDIA keys do not change.

2. Tiled lighting: the exact form takes 8.9 s

be6ce5d849d51127 (8x16 threads, two console wave64s per group) takes the "without skips, scalars followed" form on a 32-lane host. With VICTORY_GPU_TIMING=1 and VICTORY_D3D12_DRED=1, one indirect dispatch of it took 8,874 ms, nearly all of the 9 to 10 s frames the original build shows on this card. The wave-wide form does not apply, because a group holds several console waves.

VICTORY_WAVE_DEEP_SKIPS=0 gives it the approximate local-waves form instead. A 1440p run then played for 280 s at 1.4 to 4.4 fps, with per-tile checkerboard artifacts in the lighting. My branch makes this the default only when WaveLaneCountMin is under 32, which means Intel; AMD and NVIDIA report 32 or more. Getting it exact and fast would take wave-wide branches for groups of several console waves.

3. The hang once lit materials draw

With the lit materials enabled, the device hangs (DXGI_ERROR_DEVICE_HUNG) in the first gameplay frame, every run. I added DRED notes to the layer's own copies and widened the stop report (diagnostics only). The command processor always stops at the first CopyTextureRegion of an R32_UINT to R9G9B9E5 alias copy recorded after those draws in the same list. If I skip one half of that copy, it stops at the other half.

run (all 1440p unless noted, lit materials on) result
alias copies on (default) hang in the first gameplay frame
VICTORY_ALIAS_SKIP_COPIES=1 (new diag switch) plays 100 s at 1 to 3.8 fps, R9G9B9E5 lighting black
VICTORY_ALIAS_COPY=0 plays about 100 s
lit materials refused (ALLOW=wpd), copies on plays 280 to 340 s

None of these changed the first-frame hang:

  • 720p at render scale 0.5, so it is not load;
  • loop limit 16, no clean-up passes (VICTORY_SHADER_OPT=0), VICTORY_HELPER_OWN=0;
  • wave64 exact forms only;
  • vanilla settings, without play.ps1's tuning;
  • no zero fill, no upload ahead, no depth twins, no texture pool;
  • resident-at-creation memory, the CPU-side indirect budget;
  • null buffer views as the heap's empty slots;
  • simultaneous-access (uncompressed) R32 UAV textures;
  • waits held list by list.

The debug layer reports nothing on those lists, and GPU-based validation makes the title's own watchdog crash the game.

My guess is that the copy is only where the command processor waits for the 3D pipeline to drain, and that something in the lit material draws on this card only finishes when nothing waits for it. The original build reaches a hang too, later: its device was lost after about 210 s.

Testing on other Intel cards

A run on another Intel card would help tell a driver or Alchemist problem from a VIctory one, especially the B580 from #98 (Xe2, Battlemage). The host barycentrics line in the log shows which path the card takes. If a Battlemage card goes through the same path and plays past the first gameplay frame with the alias copies on, the hang is probably on the Alchemist side. If it stops at the same copy, VIctory is the more likely place to look.

The useful pair is one run with the defaults and one with VICTORY_ALIAS_SKIP_COPIES=1, both on a diagnostics build with VICTORY_D3D12_DRED=1. That switch and the DRED notes only exist in my branch, which is local for now. I can push it, or open a draft PR if a maintainer wants to look at it.

**@⁠jonathan-bdlf** on GitHub · 2026-11-27 13:14 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/399#issuecomment-7219238747) Update after a day on the A770 (Xe-HPG, Alchemist; same driver, 32.0.101.8991). The barycentric refusals are fixed in a local branch. What's left is a GPU hang I could localize but not explain. ## 1. Pixel programs without barycentrics The translator now checks `D3D12_OPTIONS3.BarycentricsSupported`. On a host without it, it translates the programs it used to emit with `SV_Barycentrics` / `GetAttributeAtVertex`, with one stand-in per case. `VICTORY_NO_BARYCENTRICS_ALLOW` turns them off one by one: - `x`: a row that is also read per vertex is interpolated by the hardware. This is exact when those vertex reads are dead, and in this title they are. All 146 lit material pixel programs that were refused translate with `x` alone, and `--validate` passes on them. - `w`, `p`, `d`: computed weights at the hardware's, vertex 0 of an interpolated row as its interpolated value, P1 - P0 and P2 - P0 as 0. These are approximate. With the stand-ins on, drops for want of a host pipeline go from about 3,400 draws a frame to about 50. The rest come from 15 programs the driver still refuses with E_INVALIDARG, 4 that read barycentrics as numbers, and the 3 cascade shadow pipelines from the first report. The shader cache keys on the stand-ins only when the host has no barycentrics, so AMD and NVIDIA keys do not change. ## 2. Tiled lighting: the exact form takes 8.9 s `be6ce5d849d51127` (8x16 threads, two console wave64s per group) takes the "without skips, scalars followed" form on a 32-lane host. With `VICTORY_GPU_TIMING=1` and `VICTORY_D3D12_DRED=1`, one indirect dispatch of it took 8,874 ms, nearly all of the 9 to 10 s frames the original build shows on this card. The wave-wide form does not apply, because a group holds several console waves. `VICTORY_WAVE_DEEP_SKIPS=0` gives it the approximate local-waves form instead. A 1440p run then played for 280 s at 1.4 to 4.4 fps, with per-tile checkerboard artifacts in the lighting. My branch makes this the default only when `WaveLaneCountMin` is under 32, which means Intel; AMD and NVIDIA report 32 or more. Getting it exact and fast would take wave-wide branches for groups of several console waves. ## 3. The hang once lit materials draw With the lit materials enabled, the device hangs (`DXGI_ERROR_DEVICE_HUNG`) in the first gameplay frame, every run. I added DRED notes to the layer's own copies and widened the stop report (diagnostics only). The command processor always stops at the first `CopyTextureRegion` of an R32_UINT to R9G9B9E5 alias copy recorded after those draws in the same list. If I skip one half of that copy, it stops at the other half. | run (all 1440p unless noted, lit materials on) | result | |---|---| | alias copies on (default) | hang in the first gameplay frame | | `VICTORY_ALIAS_SKIP_COPIES=1` (new diag switch) | plays 100 s at 1 to 3.8 fps, R9G9B9E5 lighting black | | `VICTORY_ALIAS_COPY=0` | plays about 100 s | | lit materials refused (`ALLOW=wpd`), copies on | plays 280 to 340 s | None of these changed the first-frame hang: - 720p at render scale 0.5, so it is not load; - loop limit 16, no clean-up passes (`VICTORY_SHADER_OPT=0`), `VICTORY_HELPER_OWN=0`; - wave64 exact forms only; - vanilla settings, without `play.ps1`'s tuning; - no zero fill, no upload ahead, no depth twins, no texture pool; - resident-at-creation memory, the CPU-side indirect budget; - null buffer views as the heap's empty slots; - simultaneous-access (uncompressed) R32 UAV textures; - waits held list by list. The debug layer reports nothing on those lists, and GPU-based validation makes the title's own watchdog crash the game. My guess is that the copy is only where the command processor waits for the 3D pipeline to drain, and that something in the lit material draws on this card only finishes when nothing waits for it. The original build reaches a hang too, later: its device was lost after about 210 s. ## Testing on other Intel cards A run on another Intel card would help tell a driver or Alchemist problem from a VIctory one, especially the B580 from #98 (Xe2, Battlemage). The `host barycentrics` line in the log shows which path the card takes. If a Battlemage card goes through the same path and plays past the first gameplay frame with the alias copies on, the hang is probably on the Alchemist side. If it stops at the same copy, VIctory is the more likely place to look. The useful pair is one run with the defaults and one with `VICTORY_ALIAS_SKIP_COPIES=1`, both on a diagnostics build with `VICTORY_D3D12_DRED=1`. That switch and the DRED notes only exist in my branch, which is local for now. I can push it, or open a draft PR if a maintainer wants to look at it.
This discussion has been locked. Commenting is limited to contributors.
No description provided.