Skip to content

Measure cold pipeline readiness under competing compilation - #77

Draft
akimfomin wants to merge 18 commits into
mainfrom
codex/pipeline-readiness
Draft

akimfomin wants to merge 18 commits into
mainfrom
codex/pipeline-readiness

Conversation

@akimfomin

@akimfomin akimfomin commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Current engineering status · 26 November 2026

The current Mobile NeRF inference results and compiler source in #90 cover two complete open passes and the current-main regression suite. The tables below preserve the provenance and status of earlier experiments.

Result Evidence Upstream status
Wave32 carry correctness in ordinary HLSL DarkPanda69 reproduced the original failure and passed the fix on an RX 9070 XT and RTX 3060. The complete suite on PortBridge’s RTX 4070 Ti SUPER passed 1,431 tests. XCL discussion and independent result. The fork is ready for technical review. The required paired title smoke is open.
Experimental direct-DXIL SSA mask projection The published default-off code passed 1,433 workspace tests on the same RTX. Raylib measurements and mixed Microsoft filter timings are below. Independent test entry.
Withdrawn Lane-local Masks A triangle-edge Wave32 counterexample invalidated its original eligibility rule. Old timings are retained as historical evidence. Corrected research archive.

Full commands, skip counts and raw workspace logs · Public Wave32 engineering case

Published Wave32 and experimental SSA evidence

PortBridge found an incorrect Wave32 carry result at triangle edges in ordinary XCL HLSL. The focused fix restores 668 wrong pixel-draws out of 2,953 to the reference, while preserving emitted HLSL across 195 open configurations. Upstream issue and patch · Reproduction and raw observations.

A separate opt-in direct-DXIL change extracts a proven lane bit from the existing SSA value. On one RTX 4070 Ti SUPER, the two views of raylib's open scene took 16.9–17.6% less time to draw on D3D12 and 19.2–19.6% less on Vulkan, with all 720,000 pixels unchanged. Three cold pairs saved 99–120 ms through the first verified raylib image. A Microsoft filter showed inconsistent draw-time changes. The older aggressive lane-local path failed a correctness control and is retired. Title-level performance, the driver-wide memory limit and independent hardware confirmation remain open. First-image measurements · Strong upstream comparison · Voluntary hardware check.

Earlier experiments

This starts PortBridge's sustained study of cold pipeline readiness. XCL and XBVK both report first-output stalls under cold compilation. The experiment uses only source-generated shaders and standard Vulkan.

  • On an RTX 4070 Ti SUPER, a reserve for one execution slot reduced request-to-verified-output median from 14.220 ms with demand-first scheduling to 11.067 ms. It improved all four paired blocks. Median completion time for the same six-job batch rose from 19.824 to 22.701 ms.
  • All 20 measured runs executed the required shader and matched its 512 output words and two guards. Cold and warm controls record Vulkan pipeline-creation feedback. The fixture is a bounded compute test. Full application and peak-memory measurements are open.
  • The deterministic replay compares global estimated-memory headroom with a worker-only reserve. It records the regression when reservation blocks useful warmup and when a phase signal comes after admission. It also covers a failed required compile and request promotion.

The branch preserves sources, timing data, manifests and the research decision. Ten replay tests and all 195 PortBridge tests passed.

Full open-scene measurements

A Beautiful Game rendered 49 draws and 1,500,224 triangles per frame on RTX 4070 Ti SUPER. In the corrected repeat, a reserved worker improved request latency in four of eight pairs with a paired median gain of 0.10 ms.

Starting both known first-frame pipelines during texture and geometry upload reduced the matched interval to the first verified frame from 65.84 to 57.15 ms across eight pairs. All 48 frames matched byte for byte. The matched three-frame interval fell from 102.88 to 91.81 ms. Peak private commit was 205.76 and 205.79 MiB. Peak working set rose from 149.92 to 161.58 MiB. Process-start timings also varied before the treatment began. These findings apply to this renderer and tested workload.

Code, raw results, and reproduction

Read Guard Fusion validation

  • On RTX 4070 Ti SUPER, the divergent-window test measured 4,168.748 → 412.822 ms for cold D3D12 pipeline creation and 86.528 → 86.016 µs per ready draw. The separate four-root-window prototype measured 531.532 → 246.251 ms on its 96-group fixture. Pixels matched the CPU reference.
  • One of 72 open inputs changed with one heap window. None changed with four heap or root windows. Application startup and native pixel instruction size are open.
  • All 195 PortBridge unit tests passed. Independent hardware checks are open at Test request: XCL Read Guard Fusion on AMD D3D12 #86.

Report, exact patches and per-run data · XCL discussion

Proved UMA aperture specialization

The follow-up preserves address carry and uses a proven UMA constraint to replace a multi-window switch with one guarded read. In independent DXV-validated root-window corpus replays, 25 of 72 MiniEngine/Naga inputs and 65 of 122 Khronos inputs used fewer switches. Across both cohorts switches fell from 963 to 821.

On RTX 4070 Ti SUPER, seven affected open translated shaders reached a minimal D3D12 graphics PSO. Their largest cold-creation medians improved by 0.2% and 3.2%. Several lightweight cases improved more. All 1,664 pixels in the separate carry/borrow/EXEC controls matched. Application speed and exact native instruction size remain unmeasured.

Source patches, negative controls, and per-process data

Historical measurements · withdrawn Lane-local Masks

The aggressive mask lowering in this section failed a later correctness control. Its timing measurements describe an earlier experimental revision.

  • The eight root-window combinations and four heap-window combinations cover 194 DXV-validated open pixel entries and keep XCL #2446 scalar CSE enabled. UMA changes 115 entries. Both fusion passes add zero changes in the tested scope. Two heavy shader variants show overlapping cold compilation timings across the byte-distinct combined treatments.
  • A separate direct-DXIL experiment produces a lane's own mask bit when XCL's liveness analysis certifies there are no full-mask readers. On RTX 4070 Ti SUPER, native PSO creation goes from 1653 to 625 ms and 1748 to 629 ms on two open Mobile NeRF shader variants. All ten pairs improved. This measures pipeline creation in a test carrier. Full scene execution remains open.
  • The synthetic derivative control compared both outputs at 2,048 edge pixels. Complex helper-lane reconvergence, AMD and Intel remain open. The lane-mask lowering is offline only. The separate ordinary runtime UMA integration is opt-in, with cache separation and fallback. The XCL workspace reports 1,435 passed, 0 failed and 46 ignored, with adapter-dependent subcases skipped. All 195 PortBridge tests passed on rerun.

Combined report · Lane-local mask source and reproduction

Measure the cost of compiling and executing divergent pixel shaders. Publish the structural corpus and opt-in root-window experiment with source-only reproduction.
Preserve carry semantics and evaluate structural coverage on two licensed corpora and native D3D12 creation on seven open shaders.
Preserve the pinned combined matrix, an opt-in ABI-safe aperture patch and a separate lane-local mask experiment with physical timings and correctness controls.

Assisted-by: Codex
Record the exact #2501 and #2503 stack, independent validation and a physical paired replay.

Assisted-by: Codex
Include the opt-in runtime patch and matched open-shader comparisons on D3D12 and Vulkan. Keep the original wave ballots and complete mask values observable. Record the earlier Wave32 carry counterexample, upstream draft comparisons, the MiniEngine counterexample, reproducible first-image receipts and credit for independent fixtures.
…ions

Publish the licensed hardware and compiler regressions, link the public XCL fork snapshots and upstream review, and retain a separate opt-in route for projected pixel-mask bits.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant