xshader: join the unpacked FP64 significand from two scalars #593
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/593"
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 NickStallman on 2026-11-30T18:41:16Z.
Refs #533 (follow-up to #546).
tb_f64_unpackassigned itsoutsignificand on three paths, one of them before an early return. With-fnew-inlining-behaviorDXC leaves that as a merge of vectors, which its validator refuses ("Instructions must be of an allowed type"). So the programs holding soft FP64 arithmetic fail the launcher's fast compile and take the slower route. The helper now computes the two words as scalars and assigns the vector once at the end. Its results are unchanged (read; the GPU check compares words with a reference).@JeffreyBytes confirmed on #592 that the 17 programs behind it are all FP64 ones and that this clears them (17 of 17 failed validation before, 17 of 17 pass after).
Measured (the DXC compile followed by
dxv, in one time; DXC 1.9.2609,-O1 -disable-lifetime-markers -fnew-inlining-behavior, thendxv, 32-lane host translation, one core), three of the large volumetrics programs #546 newly accepts:Effect on recorded ProjectScarlett requests: 10,734 compute jobs (5,367 requests, both hosts) against
a564e8c0: 17 requests change on each host, all of the transmission-volumetrics families, each by +200 bytes; none newly accepted or refused. Vertex, mesh and pixel stages were not surveyed (the helper is only emitted for FP64 programs, and no such recorded program was in the earlier translated set).It doesn't shrink those programs: the FP64 helpers are 1% of the text. The size is the two-halves wrapper; I'll propose a change for that separately if it looks worthwhile.
Tested
python tuxbox.py checkof6fb04f1b(onbbc26254, GE-Proton11-14): RTX 5090 (10de:2b85, 620.70.10) 203 pass, 0 fail; AMD iGPU (1002:13c0, RADV) 202 pass, 0 fail.Not run: the launcher's own compile route end to end, the game. Main has moved since (twelve commits to
451db047); the branch merges cleanly.Evidence: TuxBox check of
6fb04f1b7a, no uncommitted changes, GPU 10de:2b85: 17 passed, 0 failed, 0 not runEvidence: TuxBox check of
6fb04f1b7a, no uncommitted changes, GPU 1002:13c0: 17 passed, 0 failed, 0 not run🤖 Generated with Claude Code