Lower live Leap packed stereo to depth socket

This commit is contained in:
Meta Vens 2026-05-30 21:54:58 +01:00
commit 2c197cb3ae
9 changed files with 247 additions and 36 deletions

View file

@ -236,3 +236,4 @@
{"ts":"2026-05-30T00:39:40+01:00","type":"decision","status":"ok","note":"Stereo-depth lowerer does not fabricate shared input handles. BuildStereoDepthCandidateFrame accepts caller-declared input resources, then emits the UAV disparity SurfacePage, confidence texture, Height claim, and AquariumFieldStereoDepthLowering sidecar that references those real texture resource keys. The BufferSmoke proof supplies synthetic input declarations only for contract validation."}
{"ts":"2026-05-30T00:44:38+01:00","type":"decision","status":"ok","note":"Fensalir now owns stereo-depth dispatch readiness accounting before the SGM kernel exists: it only counts a lowering ready when the Height claim is planned and left/right textures plus the UAV disparity SurfacePage resolve. Mimir remains responsible for real input texture resource identity; no placeholder depth output is written."}
{"ts":"2026-05-30T00:48:04+01:00","type":"implementation","status":"ok","note":"Stereo-depth profile/candidate/lowering now carries SGM constants through Mimir into the Fensalir sidecar: min disparity 0, 128 disparities, four aggregation paths, census radius 2, P1 8, and P2 96 for the libSGM-provenance D3D12 profile. Verified Mimir build, --stereo-depth-contract-smoke, and --perfect-machine-profile-smoke."}
{"ts":"2026-05-30T21:58:00+01:00","type":"implementation","status":"ok","note":"Mimir now lowers live Leap packed stereo IR into the stereo-depth FieldEvidence lane. MimirRuntime merges a Leap depth frame when a live LeapStereoIr rolling window has a declared GPU texture resource; BuildLeapPackedStereoDepthCandidateFrame treats the packed R8G8 texture as left/right resource identity with R/G observation lanes, emits the pending-calibration Height claim, UAV R16F disparity SurfacePage, R8 confidence texture, and AquariumFieldStereoDepthLowering sidecar. Verified with Mimir build, --leap-packed-stereo-depth-smoke, and --stereo-depth-contract-smoke."}

View file

@ -61,16 +61,20 @@ invariants:
`MimirStereoDepthConfigurations` names the libSGM-provenance D3D12 SGM
profile, and `MimirFensalirFieldLowering.BuildStereoDepthCandidateFrame`
references caller-declared shader-readable left/right Texture2D resources,
then lowers synthetic rectified stereo depth into a compute-writable R16F
disparity SurfacePage, R8 confidence Texture2D, a Height FieldEvidence claim, and an
then lowers rectified stereo depth into a compute-writable R16F disparity
SurfacePage, R8 confidence Texture2D, a Height FieldEvidence claim, and an
`AquariumFieldStereoDepthLowering` sidecar tying profile, calibration,
camera pair, inputs, disparity output, SGM constants, and depth range
together. The current libSGM-provenance D3D12 SGM profile publishes min
disparity 0, 128 disparities, four aggregation paths, census radius 2, P1
8, and P2 96. The actual
SGM HLSL/D3D12 kernel is still future work. Fensalir now reports
stereo-depth dispatch readiness only after the planned claim and all input/
output resources resolve, without writing placeholder depth.
together. `BuildLeapPackedStereoDepthCandidateFrame` is the live Leap cut:
it recognizes a live `LeapStereoIr` rolling video window, reuses the
declared packed R8G8 texture as both left and right resource identity,
names the left/right observations as packed R/G lanes, and emits the same
depth lowering from the runtime frame. The current libSGM-provenance D3D12
SGM profile publishes min disparity 0, 128 disparities, four aggregation
paths, census radius 2, P1 8, and P2 96. Fensalir now has a first
packed-Leap D3D12 SAD/block-match kernel that writes R16F disparity through
the typed SurfacePage socket; full SGM and calibrated metric depth remain
future work.
- Fensalir packet payload handles are not authority. Live payload references
must resolve through declared typed GPU/native resources with shape,
residency, shader access, validity, version, and handle metadata before