Direct DXIL: one post-chain pixel shader (ps 31a69f00…) draws a tiled glyph pattern on NVIDIA wave32; clean on HLSL #3788
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?
Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-12-03T14:08:25Z.
On an RTX 2070 SUPER (wave32 only, driver 621.40), the retail game's post chain shows a tiled glyph/triangle pattern (rows of small "⁊⁊⁊" shapes, about 8 px high at 1080p, inside blocky screen regions) when the direct DXIL path translates its graphics shaders. With
XCL_DIRECT_DXIL=0(all HLSL) the image is clean. By bisecting with a per-program switch, one pixel shader is enough: sending onlyps 31a69f00a6df2d7c(dump hash) through HLSL removes the pattern, with every other program still on direct DXIL.I searched open issues and PRs first. #3772 (entry
WaveActiveBallot(true)mask losing live lanes on NVIDIA) and #3689 (direct PSv_readlane/v_readfirstlaneread again from the first live lane) are the closest. This shader's direct DXIL builds a first-live-lane read the same way (see below), so it may be the same family. I have not shown that yet.Measured
Series S profile (
XCL_DEVICE_TYPE=lockhart),XCL_UMA_WINDOWS=16,XCL_TWO_PASS_MB=1536, warm cache. Compute programs on HLSL in every run below (XCL_HLSL_PICK=C:1:0), so only graphics programs differ. Each run dumps every render target of one frame at 480 s (XCL_DUMP_TARGETS=2000,2,64). The verdict comes from the 1080p colour-grading pass (ps 0ef7368d…, the first target where the pattern appears).ps 31a69f00a6df2d7cvs 3fa00b601e8382fbOne run per row. Two runs crashed in the title during loading (access violation at ~350 s, video memory ~3.9 GB over budget); both were rerun and are not counted.
ps 31a69f00a6df2d7c(2164 B console blob): one fullscreen draw (3 vertices, about 0.7 ms) into a 960×540R16G16B16A16_FLOATtarget; VScb5b2b8ab61e8524. It uses sixSampleLevels and no derivatives.FMaxresult is read from the first live lane viaWaveActiveBallot(true)→FirstbitLo→WaveReadLaneAt, with aQuadReadLaneAt0..3 fallback (presumably av_readfirstlane). HLSL's DXIL has 36QuadReadLaneAtagainst 4 on the direct side.Not known yet
XCL_DUMP_SHADERS=31a69f00a6df2d7c) next and add it here.How to check on your machine
XCL_HLSL_PICK_HASHES=31a69f00a6df2d7c(needs theXCL_HLSL_PICKdiagnostics switch, not onmainyet; branch available on request), or withXCL_DIRECT_DXIL=0as the coarse check.Setup
main9dfbe3eaplus local diagnostics commits (theXCL_HLSL_PICKswitch, target-dump pipeline listing), head e3b51051. Not pushed.AI use: Claude Code (Claude Opus 5.5) ran the bisection, read the DXIL and wrote this.