DXC helper output fails DXV on large compute programs, and the reason isn't logged #592
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 brcly/TuxBox. Originally posted by JeffreyBytes on 2026-11-30T16:34:37Z.
During a cold
--prepare-onlyof ProjectScarlett on main, DXV rejected the DXC helper's output for 16 programs, and each one was compiled again with thedxccommand line. The prep summary still says 0 failed, and the log doesn't say why DXV refused the output.Setup: main at
8345699c, built withbuild.py. Microsoft's Linux DXC 1.9.2609.5, with the helper the launcher builds itself. A copy of a real prefix with 36,712 recorded requests, empty shader caches, and the default job count (15 here). Nothing was overridden.What happened: the log has 16 lines like this:
dxv failed (1)with nothing after the colon.Command '[.../dxv', '.../out.cso']' timed out after 10 seconds).dxv failedhappened during the main pass. The other 9 (6 failures and the 3 timeouts) happened during the slow-shader pass, so they're the largest programs: compute programs with 2–4 MB of DXIL.35476 compiled, 0 cached, 1236 unsupported, 0 failed, so no shader is missing. The cost is an extra command-line compile of a large program each time, plus the helper compile that was thrown away.I saw the same 13
dxv failedon a second run with a modified helper, so this doesn't look like a one-off.Why the reason is missing:
run_toolinproject_tuxbox/shader_prep.pysends stdout toDEVNULLand keeps only stderr. DXV prints its errors on stdout and exits 1 with stderr empty. I checked that with a truncated container: stdout had the error, and stderr was empty. So for these 13 programs we don't know what DXV objected to.What I haven't done: I haven't reproduced it on a single program. The prep doesn't keep the HLSL, and the log doesn't name the request, so I can't tell which programs they were. The helper keeps value names and leaves the container digest empty (the DXC helper section of
docs/PROJECTSCARLETT.md), so its files are larger. That could explain the timeouts, but I haven't measured it.Things that would make it easier to track down:
Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-30T18:41:34Z.
@JeffreyBytes one cause we can show, though I can't say it is yours: on main (
a564e8c0), three of the large volumetrics programs #546 accepts fail DXC itself with the helper's options (-O1 -disable-lifetime-markers -fnew-inlining-behavior, DXC 1.9.2609: exit 5, validation, "Instructions must be of an allowed type"), becausetb_f64_unpackleaves a vector merge in vector form. #593 (draft) computes it as two scalars; with it the same three passdxvin 4, 8 and 42 s. Compute programs with soft FP64 are the only ones it touches (17 requests per host here).If you still have that setup, the count to look at is the number of "Persistent DXC output rejected" lines with and without #593. If your 13 aren't FP64 programs, it won't change them, and the reason is something else; your point about keeping
dxv's stdout in the error would tell.Imported from brcly/TuxBox. Originally posted by JeffreyBytes on 2026-11-30T21:00:41Z.
@NickStallman yes, they're all FP64 programs, and #593 clears them, the timeouts included.
I translated all 5,922 compute requests from my ProjectScarlett cache at
8345699c. 17 of them usetb_f64_unpack, allcs_6_6. I compiled those through the DXC helper with the runtime flags (-O1 -disable-lifetime-markers -fnew-inlining-behavior, DXC 1.9.2609.5) and randxvon each with no time limit. All 17 fail with "Instructions must be of an allowed type" at aninsertelement <2 x i32>.dxvtakes 1.8 to 15.4 s to reject them, and four take over 10 s. Those four are the "timed out after 10 seconds" lines, and the rest are thedxv failed (1)ones. A cold full prep gives me 21 or 22 "Persistent DXC output rejected" lines per run (8 timeouts, 13 or 14 failures), on main with the stock helper as well as on my local helper changes, so a longerdxvlimit wouldn't help: they fail validation either way.With #593 (
6fb04f1b) I translated the same 17 requests again and compiled them the same way. All 17 passdxv, in 0.1 to 0.4 s each.dxvThe HLSL grows by 200 bytes per program. I didn't see the 4 to 42 s
dxvtimes you got. Here the largest (4.0 MB of DXIL) validates in 0.4 s, and I don't know where the difference comes from.One of the 17, request
e8570a69…(CS3f81993d), is the compute program that sat inCreatePipelineStatefor 636 s during the loading screen of a cold game run here (RX 6700 XT, RADV, GE-Proton11-14, before the 11-15 pin). I haven't rerun the game with #593 or on 11-15, so I can't say yet how much of that goes away. I also haven't done a full prep with #593, only these 17 programs.Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-30T21:19:50Z.
@JeffreyBytes thank you, that settles it: all 17 are FP64 programs, and #593 clears them, the timeouts included. On your last point: the 4, 8 and 42 s in #593's table are the DXC compile followed by
dxvon one core, measured together, notdxvalone. I wrote "passes, 4 s", which reads as if it were the validator; I've changed the description. Your separate numbers are the ones to use.Imported from brcly/TuxBox. Originally posted by JeffreyBytes on 2026-12-01T00:22:35Z.
Closing this as fixed by #593. All 16 rejections were the FP64 programs, and with #593 all 17 of them pass
dxv. A cold prep of a random 4,000 recorded requests on82109205(with #593) logged no "Persistent DXC output rejected" lines, with either helper. I haven't repeated the full-cache prep since #593.The logging points at the end aren't addressed:
run_toolstill discardsdxv's stdout, so a future validation failure would again show up asdxv failed (1):with no reason. That's small enough to pick up separately if it's wanted.