startup: cap v_fract_f32 at 0x3f7fffff like pixel_aot already does #2003
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2010"
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 R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-24T23:01:38Z.
v_fract_f32now lowers through the cappedfract32helper thattools/pixel_aot.pyhas always used, instead of a bare D3Dfrac.The asymmetry. Two translators in this tree lower the same instruction differently:
tools/startup/gfx2hlsl.pyemittedfrac({0})forv_fract_f32with no cap, so the two paths disagreed on the one instruction whose comment in this repository says adapters disagree.What the reports show. Two independent NVIDIA runs fail
startup_gfx2hlsl_float_round_hardwareon the input0xb0800000(-2^-30) in #1741, both withexpected=3f7fffff actual=3f800000: an RTX 3070 Ti on driver32.0.16.2101, and a Quadro M1000M (Maxwell) on32.0.15.7371. The same draw passes on WARP, on an Intel HD Graphics 530 and on the RDNA 4 card used here.What changes. The helper goes into the common preamble next to
ftz32, which already carries aMatch pixel_aotnote, the table entry points at it, and a new check pins the emitted statement of the_e32and_e64forms, the cap in the preamble, and rejects both a barefracand a cap written withmin. The cap is a comparison rather thanminbecause D3Dminreturns its other operand for a NaN, and a NaN input has to stay a NaN. Onlyv_fract_f32changes.On the ISA wording, because it cuts the other way. The RDNA 2 guide gives
D.f = S0.f + -floor(S0.f)forV_FRACT_F32with no cap, and for-2^-30that expression rounds to 1.0 — which is exactly what the Quadro returns. The cap is therefore not read off that formula. It is what D3D'sfrac()produces on WARP, on an Intel Gen9 part and on this RDNA 4 card, and it is what the reference in this tree encodes. The P2 in #1741 asked for the lowering to be fixed rather than for a new draw to fail on an adapter, and suggestedmin(..., 0x3f7fffff); this patch takes the comparison form so that a NaN input stays a NaN. If the console's ownfracis later shown to return 1.0 here, the cap and the reference have to be revisited together — they must agree, and today three of the four implementations we can observe agree on the cap.What is verified here. On an AMD Radeon RX 9070 XT (
1002:7550, driver32.0.32029.2010), the wholegfx2hlslsuite passes with this patch on today'smain: 41 of 41, including the newstartup_gfx2hlsl_fractand the existing translation controls.docs_links_checkandbidi_controls_checkpass.What is not verified, and matters. There is no NVIDIA adapter on this machine. The Maxwell and Turing failures are not reproduced here, and this patch does not demonstrate that they disappear. What is established is narrower: the lowering no longer emits the uncapped
frac, the cap matches the rule the repository already wrote forpixel_aot, and the adapters that were already returning0x3f7fffffkeep doing so. The two reported adapters are what would confirm the fix.The draw that exercises
v_fract_f32is not onmainyet — it arrives with #1741 — so this change is verified at the level of the emitted text and of the existing suite, not by a draw of its own. Rebasing #1741 onto today'smainconflicts in this preamble, because the branch predates theftz32/mad32helpers, so its draws need a rebase before they can run here.AI-assisted.
Why the comparison is on the encoding. FXC treats
fracas strictly below 1, sofrac(value) >= 1.0ffolds to false and the helper compiled to a bare
frc— the cap disappeared on the Quadro M1000M and theRTX 3070 Ti, which still read
3f800000for0xb0800000. Comparing the bits survives FXC (frc,ieq,movc), andfraccan only reach the cap by rounding to exactly+1.0, so the equality covers the samecase while a NaN still misses it and passes through.
Cache revision. The cap changes already-translated shaders, so the seed goes to
x2w-startup-shader-8in
tools/startup/gfx2hlsl.pyandsrc/startup_stubs/d3d12_draw.inl; a control asserts both spellingsagree and that the
-7seed keys differently.The draw.
tests/startup_gfx2hlsl_fract_draw_check.pycompiles the generated pair with FXC (ps_5_1)and DXC (
ps_6_0) and compares raw words on0xb0800000,1.5,0.0and-2.5. The uncapped mutant isrecorded rather than asserted: on this machine WARP and the RX 9070 XT both clamp a bare
frcthemselves andread the capped word anyway, so the control cannot separate the two forms here. The separation is observed on
the NVIDIA reports above, and on the head that carries this form an independent re-run passes on WARP, on the
Quadro M1000M that failed before and on an Intel HD 530, all three reading
3f000000,3effffff,3f7fffff,3f000000for
49742408,3effffff,b0800000,4affffffunder fxc and dxc. Turing remains unmeasured.AI-assisted; runs executed on the machine above.
Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T23:06:14Z.
Ran it, broke it four ways, and checked the arithmetic the description rests on
Windows 11 build 26300.9974, device-free:
fract32({0})→frac({0})(the pre-change lowering)f >= 1.0f→f > 1.0f0x3f7fffffu→0x3f7ffffeumin(f, asfloat(0x3f7fffffu))The second is the one I would have expected to slip: with a strict
>the exact case the helper exists for —fracrounding up to 1.0 —no longer fires. Your fixture separates
>from>=, which means it carries the boundary input, not just a mid-range one.The two claims in the comment, checked as arithmetic
I reimplemented
fracin float32 and evaluated the boundary:So "a tiny negative input cannot round up to 1.0" is exactly right, and the threshold sits where the description says it does: the boundary is
between
1e-8and1e-7, because1 - 1e-8rounds to 1.0 in float32 and1 - 1e-7does not.The NaN half also holds:
nan >= 1.0is false, so the comparison form returns the NaN and lets it propagate, whereas amin-form returns thenon-NaN operand in D3D semantics —
minwould turn a NaN into 0.99999994. That is a value difference, not a style preference, and the commentsays so.
On the asymmetry this PR is really about
Two translators lowering the same instruction differently is the kind of divergence that costs days later, and the fix goes toward the older,
more careful one rather than the newer one — that is the right direction. Worth keeping in
docs/experiments.md(you did) thatpixel_aotwasalready right, so a future reader does not "unify" them the other way.
Scope
The emitted helper is checked as text plus the two controls; no shader was compiled or run here. Whether adapter
fracdifferences are thereason
pixel_aotchose the cap is a claim from the earlier work, not something this check measures.Verdict
Reviewed. Four mutations caught, and the numeric claim holds at the boundary.
Notes
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-24T23:07:18Z.
Thanks — the
>=→>mutation is the sharpest of the four, and it is the one the check exists for: with a strict>the input the helper is there for,fracrounding up to 1.0, no longer fires.On the origin of the cap, since you flagged it as not measured here: it is not in the ISA. The RDNA 2 guide gives
D.f = S0.f + -floor(S0.f)forV_FRACT_F32with no cap, and for-2^-30that expression rounds to 1.0, so the Quadro matches the formula. The cap is D3D's observedfracbehaviour on WARP, on an Intel Gen9 part and on the RDNA 4 card used here, which is also what the reference encodes. I added that to the description after your review. If the console's ownfracis later shown to return 1.0, the cap and the reference have to be revisited together, not the lowering alone.There is no NVIDIA adapter on this machine, so the adapter half of the argument still rests on the two reports in #1741 rather than on anything measurable here.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by Makto94 on 2026-11-24T23:19:23Z.
Hardware data for the NVIDIA gap, from an RTX 3070 Ti (driver 32.0.16.2101, Windows 11 build 26300.9974, DXC 1.9.2602.17, FXC from SDK 10.0.26100, debug layer on).
On top of the #1741 head (
8ff3dddf, uncommitted) I copied thefract32helper from this PR verbatim, changed thev_fract_f32table entry fromfrac({0})tofract32({0})as this PR does, adapted the mutation regex ofstartup_gfx2hlsl_float_round_check.py(U\(frac\(F->U\(fract32\(F), and ran that draw test. In my build the registered test passes an empty FXC argument, so I ran the script directly:startup_flat_paramreads 3f800000 where 3f7fffff is expected.FXC compiles
frac(value)to a lonefrcand drops the comparison. Changing one line keepsge/movcin the output:With it, FXC and DXC both pass on hardware (20 draws, 10 mutated, 0 debug errors), and WARP passes too. On this PR's head (
8c99dd3f),startup_gfx2hlsl_fract_check.pyand the other 22startup_gfx2hlsl_*checks stay green with this line.Not measured: Quadro, AMD and Intel with this variant; NaN, inf and -0 (not in the draws).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T23:31:31Z.
The cap fixes already translated shaders. Please bump the startup shader cache revision in both gfx2hlsl.py and d3d12_draw.inl after #1997, and check that the pre-fix key no longer hits. The source-built test currently checks the form of the HLSL. Please run the generated shader with default FXC and DXC on the reported negative input and a regular fractional value, using raw pixel words and the uncapped mutant as a control. If WARP already caps the uncapped input, record that separately.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-25T00:16:59Z.
Measured on the Maxwell card this was missing: with #2010 as it stands, the Quadro still fails on the same input, because FXC removes the cap.
Setup:
pr-1741(8ff3dddf) merged withpr-2010(8c99dd3f) locally (onlydocs/experiments.mdconflicted;gfx2hlsl.pymerged cleanly). Thev_fract_f32mutation pattern intests/startup_gfx2hlsl_float_round_check.pystill matchesU(frac(...)), so I changed it locally tofract32(to get past the controls (that pin needs the same update when the branches meet). Then I ranstartup_gfx2hlsl_float_round_{controls,warp,hardware}.f >= 1.0f ? ... : f)fxc v_fract_f32,expected=...3f7fffff... actual=...3f800000...on0xb0800000The reason shows in FXC's own output (
fxc.exe10.0.26100.0,/T ps_5_1). FXC treatsfracas strictly below 1, sofrac(x) >= 1.0ffolds to false and the helper compiles to the bare instruction:precise float f = frac(value)folds the same way (frc [precise(x)], no compare). DXC keeps the compare (fcmp fast oge+select), which is whypixel_aot, which only compiles with DXC, never hit this.A compare on the bits survives FXC:
FXC emits
frc,ieq r0.y, r0.x, l(0x3f800000),movc.fraccan only reach the cap by rounding up to exactly+1.0, so the equality test covers the same case, and a NaN still fails it and passes through. With only that line changed in the preamble, all three adapters pass:3f000000,3effffff,3f7fffff,3f000000for49742408, 3effffff, b0800000, 4afffffftests/startup_gfx2hlsl_fract_check.pyrequires the textf >= 1.0f ? asfloat(0x3f7fffffu) : f, so it would need the new form. It might be worth having it reject the>=form under FXC explicitly. Not checked: Turing (no such card here), and whether a driver could fold DXC'sfast ogetoo. On this Quadro it did not.Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-25T00:37:27Z.
All three points are on the branch head (
5eb88127).The cap.
fract32now compares the encoding —asuint(f) == 0x3f800000u ? asfloat(0x3f7fffffu) : f— the form legacy-code-archaeologist measured on the Quadro and Makto94 on the 3070 Ti. Thank you both: FXC foldingfrac(value) >= 1.0fto false is exactly what this PR could not see from here, because DXC keeps the compare andpixel_aotonly ever compiles with DXC.The cache revision. It goes to
x2w-startup-shader-8intools/startup/gfx2hlsl.pyand insrc/startup_stubs/d3d12_draw.inl. A control asserts the two spellings carry the same seed and that the-7seed produces a differentpipeline_key, so a pre-fix entry cannot be hit.The draw.
tests/startup_gfx2hlsl_fract_draw_check.pycompiles the generated pair with the default FXC (ps_5_1) and DXC (ps_6_0), draws one pixel through--startup-flat-paramand compares raw words. On0xb0800000,1.5,0.0and-2.5it reads3f7fffff,3f000000,00000000,3f000000.The uncapped control, recorded separately as you asked. On this machine it does not separate the two forms: with the lowering left uncapped, WARP and the RX 9070 XT both read
3f7fffff,3f000000,00000000,3f000000anyway, so both adapters clamp a barefrcthemselves and the mutant cannot be told apart. The check prints that observation instead of asserting a mismatch it cannot produce. The separation rests on the two NVIDIA reports above, which is the reason the form changed.4/4
fracttests and 53/53^startup_gfx2hlslgreen here.AI-assisted; runs executed on the machine above.
Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-25T00:40:24Z.
Re-ran the new head
5eb88127on the same Maxwell card: it passes.Setup as before:
pr-1741(8ff3dddf) merged with this head locally (docs/experiments.mdandCMakeLists.txtconflicted; I took #1741's side, since the check script does not depend on either). #1741'sv_fract_f32mutation pattern changed locally fromU(frac(toU(fract32(. Thenstartup_gfx2hlsl_float_round_check.pycontrols anddraw … <warp|hardware> <fxc>, plusstartup_gfx2hlsl_fract_check.py.v_fract_f32on49742408, 3effffff, b0800000, 4affffff(fxc and dxc)3f000000,3effffff,3f7fffff,3f0000003f000000,3effffff,3f7fffff,3f0000003f000000,3effffff,3f7fffff,3f000000Controls exit 0, and
startup_gfx2hlsl_fract_check.pyprints PASS. Windows 11 build 26100, debug layer unavailable. Turing remains unmeasured here. When #1741 rebases, the only test-side change it needs is that mutation pattern.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T01:55:56Z.
Review: COMMENTED
Review of head
5eb8812708e16b82bc74ca2829507b29fc49e2f8(comment only, no approval).Verdict: no P1, no P2. Looks correct.
What I checked:
v_fract_f32now lowers tofract32(), defined in the common preamble next toftz32. Same semantics astools/pixel_aot.py:406: the result is capped at0x3f7fffffwhenfracrounds up to 1.0.asuint(f) == 0x3f800000u) is sound.fraccan only reach the cap by returning exactly +1.0. NaN misses the equality and passes through, same aspixel_aot. The comment explains why>= 1.0fis avoided (FXC folds it).x2w-startup-shader-7to-8insrc/startup_stubs/d3d12_draw.inl:207matches the changed HLSL. The check pins that the old seed gives a different key./O2job and the chart job were skipped. Mergeable. Title and body are neutral.Commands run locally on the PR head (Linux):
python3 -B tests/startup_gfx2hlsl_fract_check.py-> PASSpython3 -B tests/startup_gfx2hlsl_fract_draw_check.py(controls mode) -> PASSpython3 tests/docs_links_check.py-> 18 files, 395 links, OKpython3 tests/bidi_controls_check.py-> OKgit diff --check origin/main...HEAD-> cleanMutations (both reverted afterwards with
git checkout -- .):fract32({0})changed back tofrac({0}): the check exits 1.== 0x3f800000uchanged to>= 0x3f800001u: the check exits 1 (FAIL).Both are killed by the new test.
Not run: the
startup_gfx2hlsl_fract_draw_warpand_hardwaredraw tests need a D3D12 device, so I did not run them here. I did not start a Win2025 run. The Windows CI job is green, and the author's draw results come from the PR body.Nits (non-blocking):
tools/pixel_aot.py:406-409still usesf >= 1.0f. The new comment says FXC folds that form to false. Ifpixel_aotgoes through FXC, it may lose the cap on the same adapters. Worth a follow-up issue or check. It is out of scope here.CMakeLists.txtcomment says the uncapped pair "must read 0x3f800000". That is accurate, but a pointer to the check file's name would help a future reader. Optional.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-25T02:13:27Z.
Thank you for the review, and for killing the mutations on that form.
I checked N1, because it decides whether the cap in
pixel_aotis real or just nominal.fxcappears in this repository only on the startup path:tools/startup/gfx2hlsl.pyfinds it and runs it to compile the translated pair. Nopixel_aotoutput goes through it. Of the 49 test files that mentionpixel_aot, four also carryps_5_1orcs_5_1, and in all four the SM5 profile belongs to startup fixtures — those files only dofrom pixel_aot import disassemble. Every file that compiles a shader produced bypixel_aotusesps_6_0orcs_6_0.So the
f >= 1.0fform inpixel_aotstill has its cap today, and this PR is not leaving a live copy of the bug behind. That is worth saying out loud, since the review could not see it from the diff.It is nonetheless a latent trap in exactly the direction you point at: if
pixel_aotis ever compiled through FXC — an SM5 fallback, a smoke test, someone copying the pair — the cap disappears and nothing fails, which is what happened here until a Quadro read3f800000. Two cheap ways to close it: a comment beside that comparison saying the form depends on the compiler keeping it, which is why the startup helper now carries the bit form; or use the same bit form there, which is the same semantics under both compilers.N2 is fair. I can fold that pointer into this PR as a one-line comment change if you would rather have it here than as a follow-up.
AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-25T05:42:16Z.
Review: APPROVED
Verified head
5eb88127on Windows x64 (devpreset, MSVC19.44.35228.0, SDK10.0.26100.0, DXC/FXC10.0.26100.0):cmake --build --preset dev --target offscreen_check-> succeededctest --preset dev --no-tests=error -R '^startup_gfx2hlsl_fract' -V-> 4/4 passed (startup_gfx2hlsl_fract,startup_gfx2hlsl_fract_draw_controls,startup_gfx2hlsl_fract_draw_warp,startup_gfx2hlsl_fract_draw_hardware)3f7fffff,3f000000,00000000,3f000000withdebug_layer=enabled,debug_errors=0 debug_warnings=0(and as recorded in the test, both WARP and this hardware adapter also clamp barefrcon the-2^-30input).AMD Radeon RX 7900 XTX(vendor=1002 device=744c, driver32.0.32029.2010)Microsoft Basic Render Driver(vendor=1414 device=008c, driver10.0.26100.9818)Verdict: Approved at
5eb88127.Imported from R0Y00/Xbox2Windows. Originally posted by Makto94 on 2026-11-25T10:27:34Z.
Hardware result for head
5eb88127on an NVIDIA adapter:startup_gfx2hlsl_fract_draw_hardwarepasses with FXC and with DXC.NVIDIA GeForce RTX 3070 Ti (
10de:2482), driver 32.0.16.2101, Windows 11 build 26300.9974, Debug build, fxc 10.0.26100.9457, dxc 1.9.2602.17, debug layer enabled, 0 capability skips (77). The log shows both compilers:3f7fffff,3f000000,00000000,3f000000; uncapped control reads3f800000,3f000000,00000000,3f000000.debug_errors=0 debug_warnings=0in all four runs.This adds an NVIDIA Ampere adapter to stan495's AMD run on this head. legacy-code-archaeologist measured Maxwell, WARP and Intel on this head through the #1741 test, not this one.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T12:52:48Z.
@thepatrickworld could you rebase this branch onto current
mainand force-push?GitHub reports head
5eb88127as conflicting withmain, so it cannot be merged as is.Files that conflict with current
main(4aaea119):CMakeLists.txtsrc/startup_stubs/d3d12_draw.inltools/startup/gfx2hlsl.pyCommands run locally:
Once it is rebased and CI is green it will be re-checked right away.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by thepatrickworld on 2026-11-25T16:08:14Z.
Merged
origin/main(7092683a) into the branch. The conflicts were onCMakeLists.txt,src/startup_stubs/d3d12_draw.inlandtools/startup/gfx2hlsl.py; the substantive one was the cache revision, whichorigin/mainmoved to 14 (via #2059). The branch now carries 15 intools/startup/gfx2hlsl.py,src/startup_stubs/d3d12_draw.inl,tests/startup_indirect_draw_indexed.cpp,tests/startup_gfx2hlsl_buffer_store_check.py,tests/startup_gfx2hlsl_fract_check.pyanddocs/startup-runtime.md. The compute revision stays at14cs, since the compute path does not change.On the RX 9070 XT (
1002:7550, driver32.0.32029.2010), headeb648061, backendhardware. The fixture compiles each profile itself —ps_5_1through fxc,ps_6_0through dxc:startup_gfx2hlsl_fract_draw_check.py draw <dxc> <offscreen_check> hardware <fxc>ends withPASS(13 checks, no failure) and readsstartup_flat_param words=3f7fffff,3f000000,00000000,3f000000frcitself, so the control cannot separate the two forms on it; the failing reports in the docstring are NVIDIAstartup_gfx2hlsl_fract_check.py(translator only) ends withPASStoo (29 checks, no failure)AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T19:27:29Z.
Review: COMMENTED
Review of head
5a544a3a(own diff identical to the previously reviewed29d0fe9f; only a merge of main was added). Comment review, no approval.Checked:
v_fract_f32now lowers tofract32({0}); the helper is in the common preamble and compares the encoding (asuint(f) == 0x3f800000u), matching thepixel_aotbehavior and avoiding the FXC fold of a float compare.x2w-startup-shader-15in gfx2hlsl.py, d3d12_draw.inl and tests/startup_indirect_draw_indexed.cpp. The compute revision (-14cs) is a separate key and is consistent between the two files.startup_gfx2hlsl_fract(text/lowering),startup_gfx2hlsl_fract_draw_controls, andstartup_gfx2hlsl_fract_draw_{warp,hardware}(real D3D12 draw, FXC 5_1 and DXC, readback of the -2^-30 lane). Sibling cache-key test updated to revision 15.Commands run on Linux:
python3 -B tests/startup_gfx2hlsl_fract_check.py-> PASSpython3 -B tests/startup_gfx2hlsl_buffer_store_check.py-> okpython3 tests/docs_links_check.py-> pass;python3 tests/bidi_controls_check.py-> pass;git diff --check origin/main...HEAD-> clean0x3f800001u-> fract check exits 1. Mutation:fract32({0})reverted tofrac({0})-> fract check exits 1.Win2025 WARP dev+release on this head follows in a separate receipt.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by Makto94 on 2026-11-25T19:32:54Z.
Hardware run and Windows 11 MSVC build at head
5a544a3a(merge ofmaininto29d0fe9f; cache revision 15). The NVIDIA result I posted for5eb88127is repeated here on the new head.Environment: Windows 11 Pro build 26300.9974, Debug (
devpreset), MSVC toolset 14.44.35207 (cl 19.44.35230.0), driver 32.0.16.2101. The hardware test printsadapter=NVIDIA GeForce RTX 3070 Ti vendor=10de device=2482andbackend=hardware debug_layer=enabled, withdebug_errors=0 debug_warnings=0in every case. The runs were serial (-j1).Build:
cmake --build --preset devexited 0. This PR changes C++ (src/startup_stubs/d3d12_draw.inl,tests/startup_indirect_draw_indexed.cpp), so this is a full build.Tests:
ctest --preset dev --no-tests=error -j1 -R '^startup_gfx2hlsl_fract' -E hardware -V: 3/3 passed (startup_gfx2hlsl_fract,startup_gfx2hlsl_fract_draw_controls,startup_gfx2hlsl_fract_draw_warp).ctest --preset dev --no-tests=error -j1 -R '^startup_gfx2hlsl_fract.*_hardware$' -V: 1/1 passed (startup_gfx2hlsl_fract_draw_hardware). 0 capability skips (77).startup_gfx2hlsl_fractalso checks the cache: the revision isx2w-startup-shader-15,pipeline_keyhashes the seed the source spells, and the-14seed gives a different key.The hardware test runs the generated pair with FXC and with DXC, each with the capped helper and with the uncapped control:
3f7fffff,3f000000,00000000,3f000000. FXC uncapped control:3f800000,3f000000,00000000,3f000000, so the control fails as intended.The WARP run (
adapter=Microsoft Basic Render Driver, driver 10.0.26100.9818) reads the capped word3f7fffff,3f000000,00000000,3f000000for all four runs, withdebug_errors=0 debug_warnings=0. WARP clamps a barefrcitself, so the control cannot separate the two forms there; the test records this.Not covered by this run: this run is NVIDIA only (the PR already lists an AMD run); only the
startup_gfx2hlsl_fract*tests were run, not the fullctestsuite.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T19:42:03Z.
Win2025 WARP receipt for head
5a544a3aafter updating with main.Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
5a544a3a72313254c8cc5b4872383f37b5a31770:--preset dev):cmake --build --preset dev --target d3d12_xs_device_obj d3d12_xs_shim startup_indirect_draw_indexed -- -j 2):31.42s(configure0.00s)ctest --preset dev -R 'startup_gfx2hlsl_fract(_draw_(controls|warp))?$|startup_gfx2hlsl_buffer_store' --parallel 2 --no-tests=error --output-on-failure): 4/4 passed (1.00s:startup_gfx2hlsl_fract_draw_warp0.65s,startup_gfx2hlsl_buffer_store0.64s,startup_gfx2hlsl_fract0.14s,startup_gfx2hlsl_fract_draw_controls0.12s)/O2(--preset release):cmake --build --preset release --target d3d12_xs_device_obj d3d12_xs_shim startup_indirect_draw_indexed -- -j 2):2.51s(configure0.00s)ctest --preset release -R 'startup_gfx2hlsl_fract(_draw_(controls|warp))?$|startup_gfx2hlsl_buffer_store' --parallel 2 --no-tests=error --output-on-failure): 4/4 passed (0.85s:startup_gfx2hlsl_fract0.10s,startup_gfx2hlsl_fract_draw_controls0.10s,startup_gfx2hlsl_buffer_store0.45s,startup_gfx2hlsl_fract_draw_warp0.51s)tests/mesh_heap_sampler_check.pyok (0.7s),tests/startup_buffer_address_check.pyok (0.4s),tests/startup_compute_request_offline_check.pyok (0.4s),tests/startup_compute_translate_check.pyok (0.2s),tests/startup_flat_param_check.pyok (0.1s),tests/startup_gfx2hlsl_add_sub_co_check.pyok (0.1s),tests/startup_gfx2hlsl_add_sub_co_ci_check.pyok (0.1s),tests/startup_gfx2hlsl_bit_alu_check.pyok (0.6s),tests/startup_gfx2hlsl_capture_check.pyok (0.9s),tests/startup_gfx2hlsl_cmp16_check.pyok (0.2s),tests/startup_gfx2hlsl_compare_dst_check.pyok (0.1s),tests/startup_gfx2hlsl_compute_check.pyok (0.3s),tests/startup_gfx2hlsl_cselect_mask_check.pyok (0.1s),tests/startup_gfx2hlsl_cvt_alu_check.pyok (0.1s),tests/startup_gfx2hlsl_f32_lg_check.pyok (1.3s),tests/startup_gfx2hlsl_f32_nan_check.pyok (5.1s),tests/startup_gfx2hlsl_getpc_refusal_check.pyok (0.1s),tests/startup_gfx2hlsl_handler_arity_check.pyok (0.1s),tests/startup_gfx2hlsl_image_arity_check.pyok (0.1s),tests/startup_gfx2hlsl_image_get_lod_check.pyok (0.1s),tests/startup_gfx2hlsl_int_med3_check.pyok (0.1s),tests/startup_gfx2hlsl_join_symbols_check.pyok (0.2s),tests/startup_gfx2hlsl_loop_constants_check.pyok (0.1s),tests/startup_gfx2hlsl_mask_overwrite_check.pyok (0.1s),tests/startup_gfx2hlsl_operand_count_check.pyok (0.3s),tests/startup_gfx2hlsl_readfirstlane_recompute_check.pyok (0.1s),tests/startup_gfx2hlsl_readfirstlane_uniform_check.pyok (0.1s),tests/startup_gfx2hlsl_refusals_check.pyok (0.5s),tests/startup_gfx2hlsl_root_check.pyok (0.7s),tests/startup_gfx2hlsl_saveexec_same_reg_check.pyok (0.1s),tests/startup_gfx2hlsl_scalar_arity_check.pyok (0.2s),tests/startup_gfx2hlsl_scalar_brev_fold_check.pyok (0.1s),tests/startup_gfx2hlsl_scalar_m0_check.pyok (0.1s),tests/startup_gfx2hlsl_sdwa_cvt_check.pyok (0.2s),tests/startup_gfx2hlsl_sgpr_spill_check.pyok (0.1s),tests/startup_gfx2hlsl_shift64_check.pyok (0.1s),tests/startup_gfx2hlsl_smem_offset_check.pyok (0.1s),tests/startup_gfx2hlsl_sop2_complement_check.pyok (5.7s),tests/startup_gfx2hlsl_sopk_accum_check.pyok (0.8s),tests/startup_gfx2hlsl_sopk_signext_check.pyok (0.1s),tests/startup_gfx2hlsl_swap_check.pyok (0.3s),tests/startup_gfx2hlsl_vopc_sdwa_check.pyok (4.1s),tests/startup_gfx2hlsl_waitcnt_depctr_check.pyok (0.1s),tests/startup_gfx2hlsl_watch_check.pyok (2.4s),tests/startup_image_2d_array_check.pyok (0.2s),tests/startup_image_3d_check.pyok (0.1s),tests/startup_image_gather_lz_check.pyok (0.6s),tests/startup_image_load_d16_check.pyok (0.8s),tests/startup_image_sample_a16_check.pyok (0.1s),tests/startup_image_sample_b_check.pyok (0.1s),tests/startup_image_sample_c_check.pyok (0.2s),tests/startup_image_sample_l_check.pyok (0.2s),tests/startup_image_sample_lod_check.pyok (0.6s),tests/startup_inline_sampler_check.pyok (0.2s),tests/startup_mesh57_skeleton_check.pyok (0.1s),tests/startup_run_ps1_check.pyok (8.9s),tests/startup_run_sh_check.pyFAIL (0.1s),tests/startup_sampler_heap_check.pyok (0.1s),tests/startup_smem_address_check.pyok (0.1s),tests/startup_stream_fetch_check.pyok (0.2s),tests/startup_stream_interface_check.pyok (0.2s),tests/startup_translator_check.pyok (0.4s)tests/startup_run_sh_check.pyis a Windows-host shell check unrelated to this change; the pipeline still reports PASS (dev 4/4, release 4/4 on the PR tests).sccache: 3/6 hits; wall83.3sAI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-25T20:19:18Z.
Heads-up on the startup cache revision: #2467 merged as
ae5d482aand movedmaintox2w-startup-shader-15/15cs. This branch also bumps to15, so after the next rebase please take the next free number. #2095 plans16, so whichever of the two lands later needs17. Bump the computeNcsstring together with the graphics one, since compute shares the preamble.AI-assisted.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T20:27:02Z.
Thanks for flagging the shared cache keys. The current candidate
c1c99ec9includes the mainline revision-15 change and advances graphics/compute to16/16cs, plus the fixed slot-57 mesh key to2. The runtime publishers and offline readers use the same versions. The exact Windows Release run passed 24/24, including FXC/DXC fract boundary and wrong-reference cases, the compute key and cache scan, slot-57 publisher/exchange, and the title-memory-retirement fixture. If #2095 lands after this, it should take the next free revision. This validates the source-built behavior; any actual EXE comparison still needs a matching cache.