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
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Belobug--VIctory-Belobug-AMD#399
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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:
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.warmgives up on each after 180 s.warmthe 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.DXGI_ERROR_DEVICE_HUNGon a list of compute dispatches.Setup
host wave lanes min=8 max=32)VICTORY_D3D12_ADAPTER=Arcis neededa-publierat4eb6cfd,cargo build --locked --profile diag -p victory --features diagnostics, Rust 1.98.1scripts\play.ps1defaults plus-More @{VICTORY_D3D12_ADAPTER='Arc'; VICTORY_PIPELINE_BOOK='1'}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.
victory warm --usedthe card's clock per frame)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 frameandmemory 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 refusedlines, all witherror=… (0x80070057), for 235 distinct pipelines:ptfx_VS×3,VS_HairStrandGeometry,VS_Passthrough)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)
MS_VS_TransformDMSNC_VS_TransformSkinDMS_VS_PedTransformPreSkinD_PackedMSR_VS_TransformSkinD,MS_VS_Transform,MS_VS_TransformAlphaPrepass,MS_VS_TransformD_DetailMapsOffMS_VS_TransformTerrainNormalTint,MSR_VS_TransformSkinD_DetailMapsOff_NoDeform,MS_VS_TransformSkinD_NoDeform,MSNC_VS_PedTransformSkinAlpha,MSR_VS_TransformSkinD_NoDeformMS_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_WindshieldWiperMaskVICTORY_MESH_OUTPUT_STRICT=1 victory translate --listrefuses 71 mesh shaders (the ped set of #125), and only 1 of them is in Intel's 169. So the over-32 KiB shortcut inmesh_prologueis not what the driver objects to.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:ID3D12Device::CreatePixelShader: Shader uses Barycentrics, but the device does not support this(id 93)ID3D12Device::CreatePixelShader: Shader uses atomic int64 on typed resources, but the device does not support this(id 622)ID3D12Device::CreateComputeShader: Shader wants wave lane count of 64 but maximum wave lane count for device is 32(id 622)So the mesh shaders are fine. The pixel shader paired with them uses
SV_Barycentrics/attributeAtVertex(lower.rsbarycentricandvertex_input), and with driver 32.0.101.8991 the A770 does not reportD3D12_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/p2pairs inshaders.rpfthatHalves::pairclasses as computed (Interp::Weighted):v_mov_b32 …, 0for bothv_sub_f32 1.0, …,v_mul_legacy_f32,v_fmac_f32…)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_vertexturns the whole row into per-vertex reads. I checked 400 of these programs withdxc -dumpbin: 381 only ever combine the per-vertex reads asP0 + 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, oncenointerpolation). The second kind needs real per-vertex data.2. The driver's compiler hangs on 3 compute pipelines
victory warm --usedknew 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:0705fe43639c8313a1443a0791bcfa67922e1d0ee1e19a85,cascadeshadows_rendering:CS_ShadowRenderTiledCascadesAlphaCB07b75ef64201ec38ae82fee6daee75e920b78ee12ecdb57d,cascadeshadows_rendering:CS_ShadowRenderTiledCascadesCBPPPC988d6e303de04badef08279d84661e8bf133e35efed2a48a,cascadeshadows_rendering:CS_ShadowRenderTiledCascadesAlphaCBPPPCCompile 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
warmtook 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:--skip-hash-passesin a replay would show it);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):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 pipelineatslot=0x1c8(16×) andslot=0x218(13×).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 3run1-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 itsD3D12:messagewarm-used.log,shaders.logtranslate-list-mesh-output-strict.log:VICTORY_MESH_OUTPUT_STRICT=1 victory translate --listOptions I can see for hosts without barycentrics
nointerpolation. Exact for the vertex-0 reads, but it touches the stage linkage and the 32 KiB mesh output budget.BarycentricsSupported(fed to the translator likeset_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.I can try option 2 as a PR if that direction is acceptable. Is there a reason to prefer option 1?
Next
VICTORY_RECORDand runvictory replay --timing detailed, then--compare --skip-hash-passes, to see where the A770's time goes.Data collected and analysed with the help of Claude Code.
victory-intel-arc-a770-logs.zip
@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.
@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:
host pipeline refused/host mesh pipeline refusedwith0x80070057in the log)warmgiving up on the threecascadeshadows_renderingcompute pipelines after 180 sDXGI_ERROR_DEVICE_HUNGA 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 theD3D12: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 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 withSV_Barycentrics/GetAttributeAtVertex, with one stand-in per case.VICTORY_NO_BARYCENTRICS_ALLOWturns 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 withxalone, and--validatepasses 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. WithVICTORY_GPU_TIMING=1andVICTORY_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=0gives 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 whenWaveLaneCountMinis 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 firstCopyTextureRegionof 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.VICTORY_ALIAS_SKIP_COPIES=1(new diag switch)VICTORY_ALIAS_COPY=0ALLOW=wpd), copies onNone of these changed the first-frame hang:
VICTORY_SHADER_OPT=0),VICTORY_HELPER_OWN=0;play.ps1's tuning;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 barycentricsline 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 withVICTORY_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.