startup: keep the heap-indexing root flags for shader translation on Windows 10 #1270
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1277"
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 rasptum on 2026-11-24T06:30:23Z.
Fixes #1160 (the Windows 10 cause; see the note there on the Windows 11 report).
Problem
The executable's root signatures set
CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED | SAMPLER_HEAP_DIRECTLY_INDEXED(0xC00). The in-box Windows 10 D3D12 runtime predates shader model 6.6, soD3D12SerializeVersionedRootSignature(reached throughd3d12_xs.dll) returnsE_INVALIDARG. The executable doesn't check it, so its pipeline object stays null and a startup run stops at about 75 s on a read through it (#1160).Change (opt-in,
X2W_D3D12_PERMISSIVE=1)d3d12_xs_SerializeVersionedRootSignaturerepeats a refused serialization without the two bits, then records, by blob content, which bits it removed. The record is exported asx2w_stripped_root_flags. Content keying keeps working when a caller copies the blob beforeCreateRootSignature.gfx2hlsllays the registers out one short (s_load through s10 holding None), and the UI glyph pipelines never translate.The desktop root signature itself still lacks the bits, so a shader that really indexes the heaps still needs shader model 6.6. Without the switch, nothing changes.
Test
New scenario
d3d12_xs_shim_heap_indexingintests/d3d12_xs_shim_check.cpp:0xC00(negative control)E_INVALIDARG, no blob, same as desktop0xC00x2w_stripped_root_flags=0xC000xC00 | 0x0300000000xC00 | 0x04000000E_INVALIDARG(the retry doesn't hide other faults)0xC00Mutants (local, not committed): removing the retry fails the scenario (
hr=0x80070057), and so does retrying without recording (recorded=0x0).Result: 7/7 passed on both presets, and again after rebasing onto
943a9ccd.Environment: Windows 10 Pro 19045, in-box D3D12 runtime (no Agility SDK), NVIDIA RTX 3060 (driver 32.0.15.9636), MSVC (VS 2022) x64, debug layer off. On this machine the scenario runs, not skips.
Startup measurement, same machine: with this change the run continues past the 75 s stop. Once
0x800is restored for translation, the four glyph pipelines translate. Together with the colour-blend decode (#1216) and16ac9a22's wide-descriptor fix, that is what made the setup-page text readable on Windows 10 (#1150).Docs:
docs/startup-runtime.md, theX2W_D3D12_PERMISSIVErow.AI-assisted (Claude Code).
🤖 Generated with Claude Code
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T06:43:04Z.
Review: COMMENTED
Peer review at commit
31719cc56f9d0d7755ba161b697bdafec002d2d5:Findings
src/d3d12_xs_shim.cpp&src/d3d12_xs_shim.def:serialize_for_runtimeretriesE_INVALIDARGonly whenX2W_D3D12_PERMISSIVE=1andheap_indexing_flags(0xC00) are set, leaves the caller's descriptor unmodified, restores original failure/error_blobif the retry fails, and records stripped bits by FNV-1a content hash (x2w_stripped_root_flags, bounded to 4096 entries underSRWLOCK).0x400vs0x800and were both stripped, their serialized blobs would hash identically and the second entry would win inx2w_stripped_root_flags; practically benign since callers typically set both (0xC00) or a single consistent mask.src/startup_stubs/d3d12_capture.inl:note_root_blobbounds-checks theDXBC/RTS0header offsets before restoringstrippedinto theRTS0flags word of the translation copy.tests/d3d12_xs_shim_check.cpp:heap_indexing_checkscovers the SM 6.6 pass-through (exit 77 when desktop accepts0xC00), negative control (X2W_D3D12_PERMISSIVEunset), retry with/without console bits, unretried blob isolation, and non-masking of unrelated invalid bits (0x04000000).Verification
git diff --check origin/main...HEAD: clean/root/.local/share/x2w-rev-venv/bin/python -B tests/docs_links_check.py: passed (Checked 16 Markdown files and 284 links)/root/.local/share/x2w-rev-venv/bin/python -B tests/bidi_controls_check.py: passed (Checked 1069 tracked source, script and build/CI files: no bidirectional controls)--preset dev):cmake --build --preset dev --target d3d12_xs_shim_check -- -j 6(22.62s)ctest --preset dev -R '^d3d12_xs_shim_' --parallel 4 --no-tests=error --output-on-failure: 5/6 passed (0.13s),d3d12_xs_shim_heap_indexingSkipped (77) — desktop runtime on Build 26100 accepts0xC00(pass-through verified; Win10 retry path not reachable on this OS build)/O2(--preset release):cmake --build --preset release --target d3d12_xs_shim_check -- -j 6(35.35s)ctest --preset release -R '^d3d12_xs_shim_' --parallel 4 --no-tests=error --output-on-failure: 5/6 passed (0.18s),d3d12_xs_shim_heap_indexingSkipped (77)Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T06:48:04Z.
Review: CHANGES_REQUESTED
The contents of a stripped blob do not identify which input produced it. The same legal baseline, an input with only the view-heap flag, and an input with only the sampler-heap flag will all serialize to the same bytes after stripping. The lookup consequently gives a valid baseline blob the flags from a different call and can conflate the two flagged inputs. The existing control changes an unrelated flag, so it misses this collision.
Please preserve provenance through an explicitly identifiable representation, or keep the fallback scoped to a path that can pass the original flags directly to translation. Add a control for the identical unflagged baseline and the two individual flag combinations in both orders. Also validate the translation-side root-signature consumer, so success checks which flags it uses and not just which value the lookup returns.
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-24T09:24:33Z.
AI-assisted (Claude Code).
Independent Windows 10 confirmation, measured in a startup run.
31719cc5)releaseE_INVALIDARGfromD3D12SerializeVersionedRootSignature)d3d12_xs.dll, and only drops the program on failure;CreateRootSignatureitself was never reached for those programs.ctest --preset release -R '^(d3d12_xs_shim_|startup_stubs$)'passes on this host;d3d12_xs_shim_heap_indexingtakes the retry path (not the exit-77 skip).main,offscreen_checkcompilessrc/startup_stubs/d3d12_xs_device.cppwithout linkingd3d12_xs.dll, so theextern "C" x2w_stripped_root_flagsdeclaration ind3d12_capture.inlfails to link (LNK2019). Resolving it at run time (GetProcAddressond3d12_xs.dll, 0 when absent) fixed the build locally.Imported from R0Y00/Xbox2Windows. Originally posted by ChazY11 on 2026-11-24T10:25:01Z.
Verified on Windows 11: the fallback is inert and nothing in the shim suite regressed
Independent reviewer, not the author; I did not touch the branch. Reviewed
31719cc5(mergeable against currentmain).I am on Windows 11 build 26300.9974, so I cannot exercise the Windows 10 refusal you are fixing. What I can check is the
other half — that on a runtime which accepts
0xC00this change does nothing and breaks nothing.X2W_D3D12_PERMISSIVEX2W_D3D12_PERMISSIVE=1desktop_root_signatured3d12_xs_shim_exportsd3d12_xs_shim_serialized3d12_xs_shim_deserialized3d12_xs_shim_iidsd3d12_xs_shim_warp_rootd3d12_xs_shim_heap_indexing7 of 7 pass or skip in both modes, so the permissive path is genuinely opt-in: with the variable unset the serializer
never retries, and with it set there is nothing to retry because this runtime accepts the flags.
The skip is self-explaining, which is the right behaviour:
That also confirms your premise from the other side: on this build the desktop serializer returns
S_OKfor0xC00, sothe Windows 10 result cannot be reproduced here, and the test says so instead of pretending to pass.
The parts of your new test that can run on Windows 11 do run and pass here: the negative controls for unobserved
invalid flag bits and for a null blob still return
E_INVALIDARGthrough both the desktop and the shim path(
d3d12_xs_shim_serializeprintsembedded_params=3 stripped_hr=0x80070057 null_hr=0x80070057), so the retry logicdid not turn a genuine rejection into an acceptance.
Two things worth adding before merge
ran it in this PR. If you have the Windows 10 build, please paste that run (build, adapter or WARP driver, debug-layer
status, and the
x2w_stripped_root_flagsvalue it recorded) into the description — that is the one claim a reviewercannot otherwise check.
runtime supports the flags" or "a capability is missing". Including the OS build in that
printfwould make therecord self-describing, and it costs nothing.
Verdict
No objection from me for the inertness half: build clean, seven of seven pass or skip with and without the variable, the
negative controls still reject, and the skip is reported rather than hidden. The Windows 10 positive path remains
unverified on my side, so I would like your own Windows 10 run in the description before this merges.
Happy to re-run on this machine after a rebase.
Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-24T17:16:42Z.
@R0Y00 thanks for the review. Addressed in
f92d39c0(plus a merge of main,c31afac4).Provenance. The content-keyed record is gone. After a retry, the serializer now returns its own
ID3DBlobaround the desktop blob. That object registers its buffer with the bits it removed and unregisters it in its destructor, before the desktop blob is released, so the address cannot be reused while a record exists.x2w_stripped_root_flagsanswers only for that exact buffer and size. A blob from any other call, or a copy of the same bytes elsewhere, reports 0, and the translation copy then keeps the desktop flags instead of guessing. I took this option because the recording device only sees (pointer, size) atCreateRootSignatureand cannot be handed the original descriptor.Controls.
d3d12_xs_shim_heap_indexingnow serializes the baseline,0x400only,0x800only and0xC00, holds all four alive together, in both call orders. The four blobs are byte-identical. Each goes through the recording device'sCreateRootSignatureon WARP, and the test parses the RTS0 flags of the translation copy itself: they must be the base flags plus exactly that call's bits. A copy of the0xC00blob in test memory must give the base flags only. The previous content-keyed shim fails this control. Existing controls are unchanged.Results. Windows 10 19045, MSVC, RTX 3060 + WARP: the six
d3d12_xs_shim_*scenarios pass indevandrelease(heap_indexingruns here, it does not skip). On a merge with main atc864f138the same six pass again. Main has moved since; the branch still merges cleanly, and I did not rerun the full suite on the newest main.Still open, as before: the desktop root signature itself lacks the bits, so a shader that really indexes the heaps needs shader model 6.6.
AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T18:06:46Z.
Review: COMMENTED
Re-review of head
c31afac4ef(comment only, not an approval). My earlier review was at31719cc5.Verdict: 0 P1 / 0 P2, three nits.
Earlier points
f92d39c0): the blob-bytes-versus-input question. The content hash is gone;RetriedBlobwraps the desktop blob, records the removed bits against that exact (pointer, size) and unregisters in its destructor before releasing the buffer. The test serializes baseline, 0x400, 0x800 and 0xC00 together in both orders, passes each through the recording device'sCreateRootSignature, parses the RTS0 flags of the translation copy, and checks that a byte copy gets 0 and keeps the desktop flags. The 0x400/0x800 hash-collision nit disappears with the hash.offscreen_check: addressed by/alternatename:x2w_stripped_root_flags=x2w_no_stripped_root_flagsin d3d12_xs_device.cpp (the shim DLL links the strong definition). I could not link either build, so this is a read.X2W_D3D12_PERMISSIVEunset nothing retries.Semantics: the shim retries only on
E_INVALIDARG, only when 0xC00 is set, and only withX2W_D3D12_PERMISSIVE=1; the caller's descriptor is untouched, and a failed retry returns the first error and its blob. Console flags (0x03000000) are stripped first.note_root_blobrestores the removed bits into the translation copy only; the desktop root signature never carries 0x400/0x800. The PR touches only the top of d3d12_xs_device.cpp and addsx2w_d3d12_root_translation_blobafterdevice_create_root_signature; it does not touchSetGraphicsRootSignatureor sampler-heap code, so it does not collide with my open PR #1685, which does.The test diff only adds lines (no loosened assertion) and checks serialized bytes, not source text. No title-specific content.
Run
git diff --check origin/main...HEAD, docs_links_check (16 files, 348 links) and bidi_controls_check: pass.x86_64-w64-mingw32-g++ -std=c++17 -fsyntax-only -Isrc src/d3d12_xs_shim.cpp: 0 errors; on d3d12_xs_device.cpp only the two__try/__excepterrors from the host compiler.StrippedBlob,RetriedBlobandx2w_stripped_root_flags, extracted from the real source into a g++/ASan harness with Win32 stubs (file restored withgit checkout --each time): destructor never unregisters, lookup ignoring size and recording 0xC00 for every blob are all caught; skippinginner_->Release()is caught only by LeakSanitizer. NOT testable on Linux: a mutation ofnote_root_blob's RTS0 offset and of the retry gating; only the Windows-onlyd3d12_xs_shim_heap_indexingtest covers them.Nits
x2w_d3d12_root_translation_blobis a dllexport in the production d3d12_xs.dll that exists only for the test; consider guarding it or exposing it another way.CreateRootSignature, the translation copy silently loses the 0xC00 bits. A one-time log line would help diagnose that.RetriedBlob's constructor doespush_backunder the lock; if that throws, the object leaks. Unlikely in practice.Not run:
d3d12_xs_shim_heap_indexing(needs the Windows desktop D3D12 runtime and WARP; it skips with 77 on Windows 11 and Server 2025, so only Windows 10 exercises the retry) and the MSVC-only/alternatenamepragma.Linux limits: no Windows, WARP or GPU here; LLVM 19 only (CI pins LLVM 15). Anything that needs them was not run.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-24T21:26:24Z.
Thanks. Head
c1afe2a3:f799a9e3plus merges of main up toa6514901. Only prose indocs/startup-runtime.mdand the block next to our fixture export ind3d12_xs_device.cppneeded a hand resolution, and both sides were kept. The shim,note_root_bloband the test are unchanged fromf799a9e3.Interaction with the heap-indexed root changes on main. Device slot 16 reads the heap-indexing flags from the desktop blob passed to
CreateRootSignature; only the separate translation copy gets the restored bits. After a Windows 10 retry the desktop flags are 0. Slot 34 then sets the root directly, the compute-root path does the same, androot_without_bindingsis computed from those same desktop flags. That is consistent with the desktop object, which has no indexed heaps. The.rootrequest and its translation key keep the restored bits. The provenance control checks both sides (translation flags and the flags slot 34 acts on) for the baseline, 0x400 only, 0x800 only and 0xC00, in both orders, plus a byte copy. A mutant that adds the restored bits to slot 34's flags still fails 6 of the 8 flagged cases.Nits on
c31afac4.x2w_d3d12_allocator_pool_size), and guarding it would need a separate test build of the DLL. It now also reports slot 34's flags, so no second export was added.Tests at
c1afe2a3. Windows 10 19045, WARP.ctest --preset <dev|release> --no-tests=error -R '^(d3d12_xs_shim_|desktop_root_signature$|startup_list_resubmit_warp|startup_heap_indexed_root)' -V: 11/11 passed in dev and 11/11 in release, with no skips. The heap-indexing test takes the retry path, and all 10 provenance cases pass.AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T02:20:07Z.
Review: COMMENTED
Review of head
c1afe2a3ae71b2be70ad735f5bb8062743a5b1e0Independent reviewer, not the author; I did not touch the branch.
Result: no P1, no P2. Two nits.
Commands run locally (Linux, in a worktree of this head)
git diff --stat origin/main...HEAD: 7 files, +384/-7 (shim,.def,d3d12_capture.inl,d3d12_xs_device.cpp, test, CMake, one doc line).python3 tests/docs_links_check.py: self-test passed, 18 Markdown files, 385 links OK.python3 tests/bidi_controls_check.py: 1347 files, no bidirectional controls.git diff --check origin/main...HEAD: clean.gh pr checks 1277: Linux Python checks, gfx1013 fixtures and Windows build/test all pass. The/O2and chart jobs are skipped.X2W_D3D12_PERMISSIVE=1), so default behavior is unchanged.What I checked in the code
serialize_for_runtime(src/d3d12_xs_shim.cpp): it retries only onE_INVALIDARG, only for root signature 1.0/1.1, and only when 0xC00 is set and the switch is on. A failed retry returns the firsthrand its error blob. TheFlagsoffset is the same in both versions, which the existingstatic_asserts cover.RetriedBlob: the register/unregister order is safe. The destructor removes the record under the lock before releasing the inner blob, so a reused buffer cannot be matched to a stale record. The allocation-failure paths fall back to the inner blob with no record.note_root_blob(d3d12_capture.inl): the DXBC part walk is bounds-checked (32+4*(i+1) <= bytes,at+8+24 <= bytes). It patchesRTS0flags in the translation copy only, never in the blob given to the runtime./alternatenamefallback keeps the non-shim build (offscreen_check) linking.Not verified
heap_indexingtakes the documented skip (exit 77) there, and the retry branch is not exercised by CI. I did not run a Win2025 job for this reason, since it would only show the skip. No C++ mutation was run: the Linux worktree cannot build this code, and the Windows CI cannot kill a mutation in a branch it never reaches.Nits
src/d3d12_xs_shim.cpp,x2w_stripped_root_flags: on a miss, with at least one live wrapper, it does amemcmppass over every registered blob under the shared lock, just to print a log line once. Cheap for the number of root signatures here, but the scan could stop after the first log.tests/d3d12_xs_shim_check.cpp: because the test is skipped on any runtime that accepts the flags, a note indocs/startup-runtime.mdsaying that the retry path is only tested on pre-SM6.6 runtimes would help future readers.AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by lukaslw-lab on 2026-11-25T03:36:39Z.
AI-assisted (Claude Code). Windows 10 reconfirmation of the current head
c1afe2a3(my earlier report was on31719cc5).c1afe2a3)releasemainatdf1c042frun.ps1 -Render -FakeUser -GpuMirror -HostCpu). Two runs with #1277: the first filled the shader cache and ended earlier, when the title reached the 16 GiB-MemoryGiBcap I ran with. The second is in the table.31719cc5did. The new end point is #1758, not this PR.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T04:13:38Z.
Review: COMMENTED
Re-review of head
9398fce14eResult: no P1, no P2. Both earlier P3 nits are addressed. Windows CI was still pending when I posted.
Commands run locally
git diff c1afe2a3 HEAD --stat: onlydocs/startup-runtime.mdandsrc/d3d12_xs_shim.cppchanged since the last reviewed head (9 insertions, 5 deletions).python3 tests/docs_links_check.py: self-test passed, 18 Markdown files, 385 links OK.python3 tests/bidi_controls_check.py: 1347 files, no bidirectional controls.git diff --check origin/main...HEAD: clean.gh pr checks 1277: Linux Python checks and gfx1013 fixtures pass; "Build and test on Windows" is still pending;/O2is skipped. Mergeable: yes. Title is neutral.What changed and what I checked
x2w_stripped_root_flags(src/d3d12_xs_shim.cpp): thememcmpscan now runs only while the once-only line has not been logged, and it stops at the first match.loggedmoved above the lock and is read withInterlockedCompareExchange. It is set withInterlockedExchange(&logged, 1) == 0, so concurrent callers still print the line once. The returnedbitsare unchanged, so behavior is the same except for the cost of the scan.docs/startup-runtime.md: theX2W_D3D12_PERMISSIVErow now says the retry runs only on runtimes that refuse the flags (before shader model 6.6), and thatd3d12_xs_shim_heap_indexingreports 77 (capability skip) elsewhere. This closes my earlier docs nit.Not verified
Nits
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T04:50:05Z.
Review: CHANGES_REQUESTED
The identical-byte provenance controls address the original review. I independently ran the Release shim and indexed-root suite on Windows 11: 9 pass and the actual retry test is a capability skip here. The contributor’s Windows 10 run covers the retry.
One remaining contract gap is the allocation failure in RetriedBlob::wrap. When the wrapper or its registry entry fails to allocate, the shim returns S_OK with the stripped bare blob. That silently loses both heap-indexing flags for translation, the same incorrect root layout this PR fixes. Please make that path return E_OUTOFMEMORY with no output blob and release the temporary serializer output. A test-only forced wrapper or registration failure should show no successful stripped result. While touching the retry, read and set Flags through the active descriptor member for version 1.0 versus 1.1. The offset assertions do not make the inactive union member active. The GTX 1060 retest in #870 can continue independently.
Imported from R0Y00/Xbox2Windows. Originally posted by rasptum on 2026-11-25T04:08:47Z.
Thanks for the second review. Both P3 notes are applied:
x2w_stripped_root_flagsnow skips the byte comparison once the copied-blob line has been logged, and stops at the first match before that. Commit9398fce1.docs/startup-runtime.mdnow says the retry runs only on runtimes that refuse the flags (before shader model 6.6), and thatd3d12_xs_shim_heap_indexingreports a capability skip (77) where the runtime accepts them. Reranctest --preset <dev|release> -R '^(d3d12_xs_shim_.*|desktop_root_signature|startup_heap_indexed_root.*)$': 10/10 passed on both presets (Windows 10 19045, which refuses the flags, so heap_indexing ran rather than skipped).AI-assisted (Claude Code).
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T05:23:45Z.
Review: APPROVED
Re-reviewed
9deb0453. The retry publishes a blob only after it can preserve its original flags. It now handles the active 1.0 or 1.1 member and releases the retry blob on wrapper or registry failure. In a controlled Windows Release serializer test, both versions took the retry, restored provenance on success, and returned E_OUTOFMEMORY with cleared outputs when wrapper allocation was forced to fail. The regular Release suite had 9 passes and one Win11 capability skip. The native Windows 10 retry was measured on the preceding head. The independent GTX 1060 retest in #870 remains open.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-25T05:26:27Z.
Review: COMMENTED
Re-review of head
9deb0453f0de9ce476a2f19ed835764d8281a166(delta vs the previously reviewed9398fce:src/d3d12_xs_shim.cpponly, +17/-12).Delta read
serialize_for_runtimenow retries into a localretry_blob, so the caller's*blobis only touched once the wrapper and its provenance record both exist. Correct: onnew (nothrow)failure or registrypush_backfailurewrapreturns null, the retry blob is released once, outputs are cleared andE_OUTOFMEMORYis returned. No double release (on registry failureinner_is nulled beforedelete).Desc_1_0/Desc_1_1). Matches the API for both versions.hrwith the first error blob intact.Commands run locally
git diff --stat origin/main...HEAD: 7 files, +393/-7python3 tests/docs_links_check.py: self-test passed, 18 files, 385 linkspython3 tests/bidi_controls_check.py: 1347 files, no bidi controlsgit diff --check origin/main...HEAD: cleangh pr checks 1277: Linux Python checks pass, gfx1013 fixtures pass, Windows build+test pass (O2 job skipped)python3 x2w_pipe.py win2025 1277 --scope direct --targets d3d12_xs_shim_check --regex d3d12_xs_shim --skip-release(default 3-slot pool): Debug build ok,ctest -R d3d12_xs_shim5/6 passed, the sixth (d3d12_xs_shim_heap_indexing) is a capability skip on this host, not a pass.d3d12_xs_shim_serializecovers the 1.0 and 1.1 retry (tests/d3d12_xs_shim_check.cpp:144-150). Release not re-run here (PR text reports it).Findings
E_OUTOFMEMORYbranch (src/d3d12_xs_shim.cpp:148-160, wrapper or registry allocation failure) has no test in the PR;rg -n "OUTOFMEM|nothrow|bad_alloc" tests/d3d12_xs_shim_check.cppfinds nothing. The PR text mentions a controlled forced-failure run, but it is not committed, so a regression there (leak, double release, uncleared output) would pass CI. Suggest a small seam (for example a test-only failure counter inwrap) or state explicitly that this branch is untested.*blob = RetriedBlob::wrap(...)overwrites*blobwithout releasing it. Fine as long as the first serialize leaves it null onE_INVALIDARG; a one-line comment or a*blob = nullptrbefore the retry would make that explicit.Desc_1_1.Flagswould be caught by the existing v1.0 case; removing theretry_blob->Release()on the OOM path would not be caught (see P2).Title is neutral, MIT clean-room, mergeable, no draft. No Windows 10 native measurement was made by me; #870 retest remains open as noted by the author.
AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-25T05:27:29Z.
Independent Windows 10 / GTX 1060 retest, in-box D3D12Core 10.0.19041. The full report is at https://github.com/R0Y00/Xbox2Windows/issues/870#issuecomment-7153790393.
d3d12_xs_shim_heap_indexingand thestartup_heap_indexed_rootset pass 4 of 4.X2W_D3D12_PERMISSIVE=1: serializer calls 89 ×S_OKand 0 ×E_INVALIDARG. The builder results are 11,519 ×S_OK. The run went to the 300 s timeout with no stop and 8,413 presents.E_INVALIDARGand a null-slot stop at about 40 s.I tested this PR merged locally onto current
main(ab9a020c), since the branch is 506 commits behind. It merged cleanly.AI-assisted.