Repository navigation
runtime: recover the published disk pair when native candidate PSO creation fails - #3139
Conversation
A native graphics candidate reports ready=1 before pipeline_for creates its desktop PSO. When CreateGraphicsPipelineState failed, the draw returned null and cached that result, so the target stayed clear even when a valid published pair existed in the shader cache. Reload that pair for the same render-target key, bump a translation revision so earlier native PSOs are not reused, and refuse the draw with a diagnostic when the pair is missing or invalid. Native-only mode keeps its explicit refusal. The published manifest and stage files are read, never rewritten. Refs R0Y00#3134
|
Note: the Windows checks workflow triggers only for pull requests to |
|
Hi @lambirou, I claimed #3134 shortly before this PR was opened and had been working on it locally. Rather than open a competing PR, I'm sharing what may be useful here. One question about ordering. In Two cases I didn't see in the diff. I tested these on my local implementation, not on yours:
Both passed on WARP and on an AMD Radeon RX 9070 XT (driver 32.0.32029.2010) in Debug and Release. The D3D12 debug layer was unavailable ( If these are useful, I can post the test code here. I'm working with AI assistance. |
|
CI-equivalent smoke receipt for this branch-targeted PR. The 41/41 passed, 0 failed (20.9 s). The 12 |
pipeline_for may replace the native candidate with the published disk translation. Create the PSO before preparing the D16, formatted-buffer and fixed-vertex bindings so they come from the final translation, and recompute indexed-rectangle geometry when the fallback changes the fixed stream. Add the RTV variant fallback and invalid pixel-blob cases.
|
Hi @JVProg, yes, the ordering was a real gap: both translations are prepared for the same key, but nothing guaranteed matching bindings. Fixed on I also added both cases you described to
Dev and release on WARP and the RX 9060 XT: native draw 2/2 in each preset; debug regression 8 run, 7 pass, one capability skip (WARP without 32-lane waves). Debug layer unavailable ( |
|
Thanks @lambirou. Here is the RTV block from my local test. I haven't rebuilt or re-run this copy. The results in my earlier comment come from an earlier run on Comparing it by reading it against your test on
Yours also checks things mine doesn't: modification times, and the exact clear value on refusal (mine only checks that the image differs from the native one). RTV blockfrom native_rtv_variant_check import WORDS, pixel_stage
# Inside check(), after the 8-bit PSO cases:
# A float target draws through an RTV variant, whose disk manifest must name the same specialization.
variant_cache = folder / "variant-cache"
variant_cache.mkdir()
variant_ps, variant_pixels = folder / "variant-ps", folder / "variant-pixels"
variant_ps.write_bytes(pixel_stage())
variant_args = [consumer, vs, variant_ps, root, adapter, variant_pixels, "2"] # R32G32B32A32_FLOAT
variant_env = dict(env, X2W_SHADER_CACHE=str(variant_cache))
def variant_draw(run_env):
variant_pixels.unlink(missing_ok=True)
run = subprocess.run(variant_args, env=run_env, capture_output=True, text=True, timeout=45)
assert run.returncode == 0, run.stderr[-8000:]
return run.stderr, variant_pixels.read_bytes()
text, native_image = variant_draw(variant_env)
assert "-> drawn;" in text and struct.pack("<4I", *WORDS) in native_image, text[-8000:]
subprocess.run([compiler, "--watch", sdk, variant_cache, variant_cache, "--once"], check=True, timeout=45)
marker, = variant_cache.glob("req_*.rtv")
variant_manifest = variant_cache / (marker.stem.removeprefix("req_") + ".txt")
variant_files = {p: p.read_bytes() for p in (variant_manifest, variant_manifest.with_suffix(".vs.cso"),
variant_manifest.with_suffix(".ps.cso"))}
fault_env = dict(variant_env, X2W_TEST_NATIVE_GRAPHICS_PSO_FAILURE="1", X2W_NATIVE_SHADERS_ONLY="0")
text, image = variant_draw(fault_env)
assert "-> 0x80004005" in text and "using the published disk pair" in text and "-> drawn;" in text, text[-8000:]
assert image == native_image, (image.hex(), native_image.hex())
assert all(path.read_bytes() == expected for path, expected in variant_files.items())
print(f"{adapter} PSO, RTV variant: published disk pair matches the native float readback")
variant_manifest.unlink()
text, image = variant_draw(fault_env)
assert "no usable disk pair" in text and "-> drawn;" not in text and image != native_image, text[-8000:]
print(f"{adapter} PSO, RTV variant without a manifest: explicit refusal, target not drawn")AI was used. |
|
Thanks, @JVProg. I ran your block against
I kept our version in the PR because it reuses the cache that already holds the base pair and additionally asserts the exact clear value and the manifest/stage mtimes. Your block is complementary: it covers a different pixel payload and a cache without the published base pair. I can add it as a second case if you think that combination is worth pinning in CI; the branch is otherwise unchanged at |
|
LGTM! The PSO fallback recovery is correctly implemented: Key features:
Implementation notes:
This improves runtime stability by providing a reliable fallback when native shader compilation fails, which is essential for compatibility across different GPU configurations. |
R0Y00
left a comment
There was a problem hiding this comment.
Independent Release /O2 retest on exact stack head 9360bcae (tree 7193cd488c831f84dec391e442c4fed45c321305). Built compile_dxil startup_stream_consumer d3d12_xs_shim and ran ctest --test-dir <build> --no-tests=error -j 1 -V -R '^startup_native_graphics_draw_(warp|hardware)$'. 2/2 passed, zero skips. WARP and RTX both recovered the published pair to 16 red / 16 clear after injected native PSO failure, and the same RTV variant recovered its disk pair. Missing and invalid pairs and invalid disk PS blobs kept the target clear, native success still drew, and the cache preservation checks passed. Windows 26200.9974, WARP 10.0.26100.9818, RTX 4060 Laptop driver 32.0.16.1656, SDK/DXC 10.0.26100.0, D3D12 debug layer enabled.
One by-inspection question remains outside the triangle and RTV receipts. If a direct rectangle changes from a fixed-stream native translation to a legacy disk translation, the recursive pipeline_for still receives the original geometry flag. draw_translated only recalculates the flag when that first PSO returns non-null. If disk geometry preparation fails with the old flag, can the caller still retry with the disk translation’s actual flag? Please check this path or derive the rectangle geometry flag from the recovered translation before creating its PSO.
|
Thanks @lambirou for running it. I'm happy to leave that choice to you. The part of my block that seems to add something is the variant case with no published base pair in the cache. Your version already checks the exact clear value and the mtimes. AI was used. |
pigalot
left a comment
There was a problem hiding this comment.
I reviewed 9360bcae merged over current codex/native-graphics-integration b80513fd, the PR's base. The merge is clean and git diff --cached --check is clean.
What I traced.
- Fallback path:
pipeline_fornow treats a failedCreateGraphicsPipelineStateon a native candidate as recoverable. It loads the published pair for the same key and RTV request into a freshTranslation, withcount = falseso the missing and ready counters don't move twice. It then bumpsrevision, swaps the pair intotrand recurses once. The recovered translation hasnative_candidate = false, so the recursion can't loop. - Binding order: after the reorder in
draw_translated, the d16 views, formatted buffers, the fixed vertex view and the indirect checks all read the translation thatpipeline_forleaves intr. That answers JVProg's ordering question. - Sharing: translations are shared by key through
translation_by_key(), so a swap made by one guest pipeline is seen by everyBoundPipelinewith that key. Therevisionterm in the PSO cache key is what stops another pipeline from reusing a native PSO it created earlier against the swapped-in disk bindings. The logic is right, but no test reaches it (see the mutants).
What I ran. I did a full dev build, then ran
ctest --test-dir out/build/dev --no-tests=error -j 1 -R '^(startup_native_graphics_draw_.*|startup_indirect_.*|startup_stream_draw_.*|startup_compute_dispatch_native_.*|native_rtv_variant_.*|startup_manifest_retry.*|startup_.*sampler.*)$' -E 'startup_audio_'dev: 104 of 105 pass, with 1 capability skip (startup_compute_dispatch_native_warp, WARP without 32-lane waves). The indirect refusal census tests are part of this set, so the new refusal precedence (described below) doesn't change any code they assert.release: I builtcompile_dxil startup_stream_consumer d3d12_xs_shimand ran^startup_native_graphics_draw_(warp|hardware)$. 2/2 pass.- Debug layer: it was available on this host (
x2w-d3d12 debug layer: 0x00000000 enabled), and the newassert_debug_cleanpasses instartup_native_graphics_draw_hardware.
Mutants in src/startup_stubs/d3d12_draw.inl. For each, I rebuilt d3d12_xs_shim startup_stream_consumer in dev and ran startup_native_graphics_draw_warp:
| Mutant | Result |
|---|---|
candidate.native_candidate = true; removed (no fallback, as on the base) |
killed: this is the negative control |
| fallback loads with an empty RTV request | killed (RTV case) |
if (!native_shaders_only()) → if (true) |
survives, equivalent: load_translation refuses in native-only mode anyway, and only the diagnostic changes |
revision term removed from the PSO cache key |
survives |
fallback.revision = tr.revision + 1 → tr.revision |
survives |
| geometry-rect recompute after the fallback → never | survives |
Restored and rebuilt afterwards; the tree is clean.
Non-blocking.
- Revision is unpinned. Both revision mutants survive because the fixture has one guest pipeline per key. A case where two pipelines share a key would pin it:
- Pipeline A, for example with a different blend, creates a native PSO successfully.
- Pipeline B's candidate PSO then fails, which swaps the shared translation to the disk pair.
- A draws again and must create a new PSO rather than reuse its native one.
- Geometry recompute is unpinned. That would need a native candidate and a disk pair that differ in
fixed_stream. - Candidate blobs leak.
tr = std::move(fallback)overwrites the candidate's rawvs/psblob pointers withoutRelease.Translationhas no destructor, so they leak once per key that falls back. That's small, but releasing them before the swap is cheap. - A cached null blocks later recovery. When no valid disk pair exists yet,
bound.pipelines[key] = nullptris cached. Ifcompile_dxil --watchpublishes the pair later in the same process, that pipeline still won't recover. The old code behaved the same way, and #3134 asks only for an already-published pair, so this is a possible follow-up, not a gap in this PR. - Refusal precedence changed. The PSO and sampler heap are now created before the d16, formatted-buffer, fixed-stream and indirect refusals. A draw that is refused for one of those reasons now builds its PSO (cached) first. If PSO creation fails as well, the indirect refusal code becomes
pipeline_unavailableinstead of, say,missing_guest_root. The census tests above still pass. I'm noting it so it's a known trade-off.
Verdict: approve on 9360bcae. This targets codex/native-graphics-integration, so I'm leaving the merge to the branch owner.
Environment: Windows 11 25H2 build 26200.9974; MSVC 19.52.37029; Python 3.12.10; WARP and NVIDIA GeForce RTX 5090 (driver 32.0.16.1088); D3D12 debug layer enabled.
CI: none on this PR (the workflow runs only for main and cpp-migration).
This reply was AI-assisted.
|
Agree with pigalot's APPROVED review: the fallback path is correct — |
pipeline_for received only the pre-fallback geometry flag. A direct rectangle whose native candidate had a fixed vertex stream could therefore recurse into the published disk pair with that stale flag, and the caller did not retry when the disk PSO failed. Pass the rectangle kind and derive the flag from the translation the function actually holds. Release the replaced candidate blobs before the swap.
|
@R0Y00 the rectangle geometry flag is now derived from the translation On the true → false case: a valid same-key disk pair cannot drop Tests at ctest --preset dev --no-tests=error -j 1 -R '^(startup_native_graphics_draw_.*|startup_indirect_.*|startup_stream_draw_.*|startup_compute_dispatch_native_.*|native_rtv_variant_.*|startup_manifest_retry.*|startup_.*sampler.*)$' -E 'startup_audio_'
ctest --preset release --no-tests=error -j 1 -R '^startup_native_graphics_draw_(warp|hardware)$|^native_rtv_variant_(warp|hardware)$'Debug: 104 passed, 1 capability skip ( AI was used. |
|
The runtime base #3094 is now 97cde4d, and this PR conflicts in d3d12_draw.inl. The base now uses an already published disk pair before trying the native compiler on the first draw. Please update this PR on the current base and keep that precedence. The remaining PSO-failure control should start with no ready disk marker, make a valid disk pair available before fallback is attempted, and verify native-only refusal plus unchanged files. Keep the rectangle recomputation and exact-head WARP and hardware checks. |
Bring origin/codex/native-graphics-integration (97cde4d, including the updated native shader modules and current main) into the PSO fallback branch. Keep the new PSO recipe path and re-apply the recovered geometry flag and revision cache invalidation to it. Keep the fixed-mesh capture path from the runtime branch, and adapt the native-graphics fixture to the new disk-pair precedence with test-only force hooks. Tests: startup_native_graphics_draw_{warp,hardware} and native_rtv_variant_{warp,hardware} pass in Debug and Release; the draw, indirect, stream and sampler regression set passes 84/84 with one WARP capability skip.
|
@R0Y00 merged the updated The Tests at
The debug layer was unavailable ( |
|
PortBridge's saved Git comparison was for the older The cross-project complement remains XCL #2940, where a presented blob is stale but native creation succeeds. That should count one native create and keep that pipeline. In Xbox2Windows the forced create failure is a different outcome and the disk-pair recovery is the positive case. Our recorded comparison. If useful on a different open PR, a maintainer or agent can send the PR URL, target SHA and expected behavior in PortBridge #98. |
Move the valid manifest into place only when the failed native candidate asks for its fallback. The fixture now proves the native PSO was attempted before disk reuse, covers native-only refusal with the pair still pending, and checks the published files stay unchanged. Drop the test-only forced-native precedence.
|
@R0Y00 the PSO-failure control now starts with The test asserts, in order:
The test-only forced-native precedence from |
R0Y00
left a comment
There was a problem hiding this comment.
Independent review of fdae7f1. The PSO fault fixture proves the candidate was attempted and then recovered the published pair. Debug and Release /O2 each had 17 passes and one inbox WARP wave32 skip in the fixed mesh, first native draw, stream, native Dispatch and raw pixel UAV/atomic selection.
The updated RTV flow regresses late manifests. In translation_for_targets, an unavailable variant takes the state != 1 branch on every draw. The following else if (entry->manifest_retry.due(...)) is therefore unreachable in the missing state. With no native worker it republishes the marker and never reads the valid manifest when it appears. The existing startup_mrt_dxc_warp and startup_mrt_dxc_hardware both reproduce this on the exact head: the first and second draws both log no RTV translation after the fixture has published the disk marker and waited 1.1 s. Windows 11 26200.9974, WARP 10.0.26100.9818, RTX 4060 Laptop 32.0.16.1656, debug layer enabled.
Please retain the ordinary retry before the native decision, and keep native compilation one attempt per RTV entry. Keep the new injected-failure controls, and rerun these two existing late-publication controls alongside them.
ctest --preset dev --no-tests=error --output-on-failure -j 1 -R '^startup_(mrt_dxc|native_graphics_draw)_(warp|hardware)$'|
I rechecked b409dc8. The delayed publication inside the fault fixture now proves the intended native-first failure and disk recovery. The normal late RTV publication regression still reproduces separately: both native graphics tests pass, both startup_mrt_dxc tests fail. A small local resolution passed all four on WARP and RTX. I restored translation_for_targets from #3094 at 97cde4d, kept only entry->rtv_request = request immediately after entry->key = key, and kept the rest of b409dc8's PSO fallback and fixture changes. This leaves initial translation and marker publication inside the new-entry branch and the existing entry's due retry in its reachable else-if. Reproduction: ctest --preset dev --no-tests=error --output-on-failure -j 1 -R '^startup_(mrt_dxc|native_graphics_draw)_(warp|hardware)$'. |
Restore the manifest_retry.due retry before the native decision for RTV variants. The retry had moved into an else-if after a state check that is always taken while the variant is unavailable, so a late published manifest was never loaded. Keep one native compilation attempt per RTV entry and preserve the new PSO-failure controls.
|
@R0Y00 fixed the late-manifest regression on I ran your exact controls: ctest --preset dev --no-tests=error --output-on-failure -j 1 -R '^startup_(mrt_dxc|native_graphics_draw)_(warp|hardware)$'
The new injected-failure controls still pass. D3D12 debug layer unavailable ( |
R0Y00
left a comment
There was a problem hiding this comment.
Approved after independent review of dbca185 on runtime base 97cde4d. The ordinary late RTV retry runs before the one-shot native attempt. The exact head passed the previously failing late-publication control on both adapters. The fault fixture also proves native PSO creation was attempted before the disk pair was published, and checks successful recovery, native-only refusal, unchanged cache files and the RTV variant.
Debug and Release /O2 each passed all six selected source-built tests, no skips. Windows 11 26200.9974, RTX 4060 Laptop driver 32.0.16.1656, WARP 10.0.26100.9818, D3D12 debug layer enabled in the graphics fixtures.
ctest --preset dev --no-tests=error --output-on-failure -j 1 -R '^(startup_(mrt_dxc|native_graphics_draw)_(warp|hardware)|native_rtv_variant_(warp|hardware))$'|
Thanks for the work on this. One thing blocks merging at dbca185: the last commit moved the RTV publish and its log line out of the new-entry block. Every draw on an unavailable RTV variant now stats Could you restore This comment was AI-assisted. |
Restore translation_for_targets from 97cde4d and keep only entry->rtv_request = request. The publish, native attempt and no-translation log now run once when the RTV entry is created; an existing entry only reloads on its due retry. Add a PSO fallback control where the disk pair loads but its PSO cannot be created, and assert the published-disk-pair-pipeline-failed diagnostic.
|
Fixed at
Release and Debug: The revision-invalidation path is still unpinned by a targeted test; I left that as the remaining smaller gap rather than changing the runtime further. |
|
Additional RTV checks on |
|
I independently tested Debug and Release each passed 7/7, no skips, on Windows 26300.10075 with the D3D12 debug layer enabled. Adapters were RTX 4070
cmake --build --preset <dev-or-release> --target compile_dxil startup_stream_consumer d3d12_xs_shim offscreen_check
ctest --preset <dev-or-release> --no-tests=error -j 1 -V -R '^(startup_native_graphics_draw_(warp|hardware)|startup_mrt_dxc_(warp|hardware)|native_rtv_variant_(controls|warp|hardware))$'I used Codex to run and verify the local checks. |
Add a two-draw fixture and a test-only translation revision bump. The second draw must create a new PSO rather than reuse the first; removing the revision from the PSO cache key makes the test fail (one desktop pipeline instead of two).
Keep the translation revision bump, the pre-fallback geometry flag derivation and the transactional PSO fallback against the base's sampler retirement, fixed mesh sync and shared pipeline creation. Keep the test's mtime snapshots and the fault set while adding the base's key variable. The local rasterizer state now takes the base's self parameter.
|
Refreshed onto the merged native graphics base
Debug and Release: |
|
Additional sampler regression on |
|
Follow-up: I built the two remaining sampler executables. |
Change A native graphics candidate marked the translation ready before
pipeline_forcreated its desktop PSO. WhenCreateGraphicsPipelineStatefailed, the draw returned null and cached that null, so the target stayed clear even when a valid published disk pair existed. With candidate PSO creation forced toE_FAIL, the target read 0 red / 32 clear; the disk pair alone drew 16 red / 16 clear. The candidate now recordsnative_candidate,revisionandrtv_request. On a candidate PSO failure the runtime reloads the published pair for the same key and RTV variant, recomputes the PSO with a bumped revision (so earlier native PSOs are not reused), and refuses with a diagnostic when the pair is missing or invalid or its disk PSO fails.X2W_NATIVE_SHADERS_ONLY=1keeps its explicit refusal without a fallback. The published manifest and stage files are read, never rewritten. Refs #3134. Refs #3094. Targetscodex/native-graphics-integrationwhile #3094 is open. ## Verification Windows 11 build 10.0.26300.10075 (26H2), MSVC 19.44.35228.0, Windows SDK/DXC 10.0.26100.0. The D3D12 debug layer was unavailable on these runs (0x887a002d), so debug-layer cleanliness is not claimed. Commit06c7380binnative/graphics-pso-fallback.cmake --preset dev cmake --build --preset dev --target compile_dxil startup_stream_consumer d3d12_xs_shim ctest --preset dev --no-tests=error -j 1 -V -R '^startup_native_graphics_draw_(warp|hardware)$' cmake --preset release cmake --build --preset release --target compile_dxil startup_stream_consumer d3d12_xs_shim ctest --preset release --no-tests=error -j 1 -R '^startup_native_graphics_draw_(warp|hardware)$'Debug and Release: 2/2 passed on WARP (Microsoft Basic Render Driver 10.0.26100.10068) and on the AMD Radeon RX 9060 XT (driver 32.0.32029.2010). Observed lines: -warp/hardware PSO: candidate failure recovered the published disk pair, 16 red and 16 clear pixels-warp/hardware native: successful candidate still drew 16 red and 16 clear pixels-warp/hardware missing pair: refused with a diagnostic, 32 clear pixels-warp/hardware invalid pair: refused with a diagnostic, 32 clear pixelsThe check also asserts that the manifest,.vs.csoand.ps.csobytes and mtimes are unchanged after every case. Debug regression:startup_stream_draw_(warp|hardware),startup_compute_dispatch_native_(warp|hardware),native_rtv_variant_(controls|warp|hardware)andstartup_manifest_retry: 8 run, 7 pass, 1 capability skip (startup_compute_dispatch_native_warp, WARP without 32-lane waves), unrelated to this fixture. ## Evidence and follow-up Synthetic inputs only; no game files or captures. The failure is injected only at candidateCreateGraphicsPipelineStatethroughX2W_TEST_NATIVE_GRAPHICS_PSO_FAILURE, so the published-pair path is the only variable. ## Review update (2026-11-27,9360bcae) JVProg's ordering question was correct: there was no guarantee that the native and published translations have matching bindings.pipeline_formay replace*trwith the disk translation after the old code had already preparedd16_unorm16,formatted_buffersand the fixed vertex view. The PSO is now created first, then every binding is derived from the translationpipeline_forleaves intr; if the fallback changesfixed_stream, the indexed-rectangle geometry key is recomputed before the draw. Added the two missing cases tostartup_native_graphics_draw_check.py: - RTV variant (R32G32B32A32_FLOAT): a native draw publishesreq_<key>.rtv,compile_dxil --watch --oncepublishes the variant, and the injected candidate PSO failure recovers it. The readback is0000803f00000000000000000000803f; removing the variant manifest refuses with 32 clear pixels. - Invalid.ps.csowith a valid manifest: the translation loads, disk PSO creation fails, the draw is refused with 32 clear pixels, and the invalid bytes and mtime are unchanged. Verification: dev and release, WARP (Microsoft Basic Render Driver10.0.26100.10068) and RX 9060 XT (driver32.0.32029.2010):startup_native_graphics_draw_warpand_hardware2/2 each; the debug regression set runs 8, passes 7, with one capability skip; release native draw 2/2. The D3D12 debug layer was unavailable (0x887a002d). ## Review update (2026-11-28,4df09294) R0Y00's geometry-flag question is addressed:pipeline_fornow receives the rectangle kind and derivesgeometry_rectfrom the translation it actually holds. After a disk fallback, the recursive call uses the disk pair'sfixed_streamstate instead of the native candidate's. The replaced candidate blobs are released before the swap. A valid same-key disk pair cannot dropfixed_streamwhile its shaders declare an input layout; a hand-edited version 2 manifest reachesCreateGraphicsPipelineStatewith E_INVALIDARG, and the draw now refuses withpublished disk pair pipeline failed. Verification at4df09294, Debug and Release, WARP and RX 9060 XT:powershell ctest --preset dev --no-tests=error -j 1 -R '^(startup_native_graphics_draw_.*|startup_indirect_.*|startup_stream_draw_.*|startup_compute_dispatch_native_.*|native_rtv_variant_.*|startup_manifest_retry.*|startup_.*sampler.*)$' -E 'startup_audio_' ctest --preset release --no-tests=error -j 1 -R '^startup_native_graphics_draw_(warp|hardware)$|^native_rtv_variant_(warp|hardware)$'Debug: 104 passed, 1 capability skip (startup_compute_dispatch_native_warp), 0 failed. Release: 4/4. The D3D12 debug layer was unavailable (0x887a002d). ## Base update (2026-11-28,fdae7f16) Merged the updatedcodex/native-graphics-integrationbase (97cde4d5, including #3091's247530b0and currentmain) into this branch. Thed3d12_draw.inlconflict keeps the new PSO recipe path and re-applies the recovered-geometry flag and revision cache invalidation to it. The fixed-mesh capture path is preserved. The native-graphics fixture respects the new disk-pair precedence; test-onlyX2W_TEST_NATIVE_GRAPHICS_PREFER_NATIVE(and the existing PSO-failure hook) forces the native candidate for the fallback cases. Tests atfdae7f16: - compiler suite 14/14 in Debug, includingnative_rtv_variant_{controls,warp,hardware}andnative_compile_dxil_watch; - runtime draw/indirect/stream/sampler suite 84/84, one WARP capability skip (startup_compute_dispatch_native_warp); - Releasestartup_native_graphics_draw_{warp,hardware}andnative_rtv_variant_{warp,hardware}: 4/4. The D3D12 debug layer was unavailable (0x887a002d). ## PSO-failure negative control (b409dc83) The control now begins with<key>.txtrenamed to.pending, so the first draw takes the native path. A test-onlyX2W_TEST_MANIFEST_BEFORE_FALLBACKmoves the valid manifest into place only when the failed candidate asks for its fallback. It asserts the injected candidate failure, the manifest publication before fallback, the recovered 16-red draw, unchanged manifest and stage bytes/mtimes, native-only refusal with the pair still pending and 32 clear pixels, plus the equivalent RTV-variant and missing-manifest controls. The earlier forced-native precedence is removed; production keeps the disk-first base behavior. Atb409dc83: 14/14 compiler tests in Debug, 84/84 runtime tests with one WARP capability skip, and 4/4 in Release on WARP and RX 9060 XT. Debug layer unavailable (0x887a002d). ## RTV late-manifest fix (dbca1851) Restored the ordinarymanifest_retry.due()reload before the native decision intranslation_for_targets. The previouselse ifwas unreachable while an RTV entry was unavailable, so a valid manifest published after the first draw was never loaded. Native compilation remains one attempt per RTV entry.ctest --preset dev --no-tests=error --output-on-failure -j 1 -R '^startup_(mrt_dxc|native_graphics_draw)_(warp|hardware)$': - Debug: 4/4 passed. - Release: 6/6 passed, includingnative_rtv_variant_{warp,hardware}. - Broader runtime suite: 84/84 with one WARP capability skip; compiler suite 14/14. The injected-failure controls remain green. Debug layer unavailable (0x887a002d).Base update (2026-11-28,
91d000a9)Merged
codex/native-graphics-integrationc23cbc36(including the reviewed #3091/#3094, sampler retirement and fixed-mesh sync) into the PSO fallback. The conflict keeps the translation revision bump and the pre-fallback geometry-flag derivation, adaptsprepare_draw_sampler_heap(self, ...), and keeps the test's mtime snapshots and fault set.Added a two-draw revision-invalidation control: a test-only revision bump between draws must create a second desktop PSO. Removing the revision from the PSO cache key makes the test fail with one pipeline instead of two.
Debug and Release:
startup_native_graphics_draw_{warp,hardware},startup_mrt_dxc_{warp,hardware}andnative_rtv_variant_{warp,hardware}pass 6/6 each. The D3D12 debug layer was unavailable (0x887a002d).