diff --git a/artifacts/runtime/mimir-perfect-machine-yuy2-gpu-feature-extraction-headless.png b/artifacts/runtime/mimir-perfect-machine-yuy2-gpu-feature-extraction-headless.png new file mode 100644 index 0000000..971efba Binary files /dev/null and b/artifacts/runtime/mimir-perfect-machine-yuy2-gpu-feature-extraction-headless.png differ diff --git a/docs/implementation-plan.md b/docs/implementation-plan.md index d5a7575..8c0c659 100644 --- a/docs/implementation-plan.md +++ b/docs/implementation-plan.md @@ -351,9 +351,10 @@ a named invariant that the native runtime cannot protect yet. camera textures, a Leap stereo-depth lowering, a disparity SurfacePage, and a derived point-cloud Mesh are present. Fensalir now plans the camera texture Feature requests through its `GpuSensorFusion` backend instead of deferring - them. The current dispatch samples LeapStereoIr plus both Bayer8 PS3 Eyes; - Kiyo YUY2 claims are selected but skipped by the shader inlet until Fensalir - owns an explicit YUY2 conversion/feature lane. + them. The current dispatch samples LeapStereoIr, both Bayer8 PS3 Eyes, Kiyo + Pro YUY2, and regular Kiyo YUY2. Fensalir binds YUY2 through the + Microsoft-documented `R8G8B8A8_UNORM` SRV view over `DXGI_FORMAT_YUY2` and + decodes `Y0/U/Y1/V` in compute before scoring features. `MimirMediaFoundationGpuVideoCaptureDriver` is the first compressed camera path: `native/camera_capture/mimir_mf_gpu_capture.dll` uses Media Foundation SourceReader with a D3D11 device manager, selects MJPG/H264 camera modes, @@ -447,8 +448,12 @@ a named invariant that the native runtime cannot protect yet. `artifacts/runtime/mimir-perfect-machine-gpu-feature-extraction-headless.png`: Mimir planned 12 FieldEvidence packets with zero deferred requests, and Fensalir dispatched GPU sensor fusion over three sampleable live camera - textures, generating 49,152 sparse gaussians. Kiyo YUY2 support remains the - next format-aware shader cut. + textures, generating 49,152 sparse gaussians. The YUY2 follow-up proof + captured + `artifacts/runtime/mimir-perfect-machine-yuy2-gpu-feature-extraction-headless.png`: + all five camera textures dispatched with zero unsupported field textures, + producing 81,920 sparse gaussians at about 0.08 ms/frame sensor-fusion GPU + time. Phase 6 program-output receipts are also structurally complete: Fensalir publishes the final program surface through named shared D3D12 texture/fence resources, the OBS plugin consumes that surface with an explicit D3D12-to- diff --git a/docs/sensor-fusion-architecture.md b/docs/sensor-fusion-architecture.md index 5060dd4..b1bb8cd 100644 --- a/docs/sensor-fusion-architecture.md +++ b/docs/sensor-fusion-architecture.md @@ -48,8 +48,10 @@ flowchart TD lowering, one disparity SurfacePage, and one derived point-cloud Mesh. Camera Feature/SensorObservation claims now plan through Fensalir's `GpuSensorFusion` backend instead of deferring. The current compute dispatch - samples LeapStereoIr plus both Bayer8 PS3 Eyes; Kiyo YUY2 texture claims are - selected but wait for a format-aware YUY2 conversion/feature lane. + samples LeapStereoIr, both Bayer8 PS3 Eyes, Kiyo Pro YUY2, and regular Kiyo + YUY2. Fensalir binds YUY2 through the documented `R8G8B8A8_UNORM` SRV view + over `DXGI_FORMAT_YUY2` and decodes `Y0/U/Y1/V` in compute before scoring + features. - PS3 Eyes own high-rate sparse tracking evidence before they own depth: `MimirSparseFeatureTracker` turns live Bayer/luma frames into stable sensor-local feature tracks, and `MimirFeatureTrackFieldCandidate` lowers diff --git a/notes/current-system-map.md b/notes/current-system-map.md index 0c2237f..1797d59 100644 --- a/notes/current-system-map.md +++ b/notes/current-system-map.md @@ -555,9 +555,11 @@ one Leap stereo-depth lowering, one disparity SurfacePage, and one derived point-cloud Mesh. Fensalir now plans those camera Feature/SensorObservation claims through its `GpuSensorFusion` backend instead of deferring them, then derives compute input metadata and SRVs from resolved FieldEvidence Texture2D -resources. The first dispatch samples LeapStereoIr plus both Bayer8 PS3 Eyes. -Kiyo YUY2 claims are selected but skipped until Fensalir owns an explicit YUY2 -conversion/feature lane; they are not silently treated as RGBA. +resources. The current dispatch samples LeapStereoIr, both Bayer8 PS3 Eyes, +Kiyo Pro YUY2, and regular Kiyo YUY2. Fensalir binds YUY2 through the +Microsoft-documented `R8G8B8A8_UNORM` SRV view over `DXGI_FORMAT_YUY2` and +decodes `Y0/U/Y1/V` in compute; packed camera video is not silently treated as +ordinary RGBA. `MimirMediaFoundationGpuVideoCaptureDriver` plus `native/camera_capture/mimir_mf_gpu_capture.dll` is the compressed camera path: Media Foundation SourceReader runs with a D3D11 device manager, decodes MJPG or @@ -668,6 +670,10 @@ requests, dispatched sensor fusion over three sampleable camera textures, generated 49,152 sparse gaussians at about 0.059 ms/frame sensor-fusion GPU time, and captured `artifacts/runtime/mimir-perfect-machine-gpu-feature-extraction-headless.png`. +The YUY2 decode proof then dispatched all five camera textures with zero +unsupported field textures, generated 81,920 sparse gaussians at about 0.08 +ms/frame sensor-fusion GPU time, and captured +`artifacts/runtime/mimir-perfect-machine-yuy2-gpu-feature-extraction-headless.png`. Once the frustum fit is coherent, detected surface candidates can be sampled across every synchronized view before diff --git a/state/evidence.jsonl b/state/evidence.jsonl index 62a30d9..f668648 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -260,3 +260,4 @@ {"ts": "2026-05-31T03:22:00+01:00", "type": "verification", "status": "ok", "note": "PS3 Eye sparse tracking bootstrap is live. `--ps3eye-tracking-smoke` produced 13 synthetic tracks, 12 stable tracks, and one Feature claim. The final default `--ps3eye-tracking-live --seconds 1.0` captured both Eyes at 320x240@187 and returned 160 tracks / 160 stable tracks from `ps3-eye-0` and 160 tracks / 156 stable tracks from `ps3-eye-1`. This is CPU diagnostic tracking; production feature extraction remains a Fensalir D3D12 owner."} {"ts": "2026-05-31T03:31:08+01:00", "type": "verification", "status": "ok", "note": "2026-05-31 all-sensor GPU proof: config/mimir-runtime.perfect-machine.local.json opened Leap, both PS3 Eyes, Kiyo Pro, and regular Kiyo; BufferSmoke --perfect-machine-live-smoke reported 5 camera Texture2D leases, Leap stereo lowering, SurfacePage, Mesh, 7 planned packets, and 5 deferred generic camera Feature requests. Mimir.App headless D3D12 dispatched packed-Leap stereo depth, generated one point-cloud/surface stream, reported 19,200 visible reservoir splats, and captured artifacts/runtime/mimir-perfect-machine-all-sensors-headless.png."} {"ts": "2026-05-31T03:54:00+01:00", "type": "verification", "status": "ok", "note": "Fensalir now owns the first compute feature-extraction lowering for Mimir camera Feature/SensorObservation claims. --perfect-machine-live-smoke planned 12 packets with 0 deferred. Mimir.App headless D3D12 dispatched GpuSensorFusion for LeapStereoIr plus both Bayer8 PS3 Eyes at 16,384 sparse samples per texture, generated 49,152 gaussians, reported sensor-fusion GPU timing around 0.059 ms/frame, and captured artifacts/runtime/mimir-perfect-machine-gpu-feature-extraction-headless.png. Kiyo YUY2 claims are selected but skipped until Fensalir owns a YUY2 conversion/feature shader."} +{"ts": "2026-05-31T04:18:00+01:00", "type": "verification", "status": "ok", "note": "Fensalir YUY2 compute feature extraction is live. Mimir.App headless all-sensor run used config/mimir-runtime.perfect-machine.local.json, started Leap, both PS3 Eyes, Kiyo Pro, and regular Kiyo, planned 12 FieldEvidence packets with 0 deferred, and D3D12 GPU sensor fusion reported cameras=5, textures=5, field textures=5, unsupported field textures=0, samples/texture=16,384, generated gaussians=81,920, sensor-fusion GPU timing about 0.08 ms/frame. Capture: artifacts/runtime/mimir-perfect-machine-yuy2-gpu-feature-extraction-headless.png. Provenance: Fensalir follows Microsoft DXGI_FORMAT_YUY2 guidance by binding an R8G8B8A8_UNORM SRV and decoding Y0/U/Y1/V in compute."} diff --git a/state/map.yaml b/state/map.yaml index b7a2fa0..809f0f4 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -116,8 +116,14 @@ invariants: samples LeapStereoIr plus both Bayer8 PS3 Eyes, generates 49,152 sparse gaussians at about 0.059 ms/frame sensor-fusion GPU time, and captured `artifacts/runtime/mimir-perfect-machine-gpu-feature-extraction-headless.png`. - Kiyo YUY2 claims are selected but skipped until Fensalir owns an explicit - YUY2 conversion/feature shader; packed video must not masquerade as RGBA. + The follow-up YUY2 decode proof samples LeapStereoIr, both Bayer8 PS3 Eyes, + Kiyo Pro YUY2, and regular Kiyo YUY2; it dispatches five camera textures + with zero unsupported field textures, generates 81,920 sparse gaussians at + about 0.08 ms/frame sensor-fusion GPU time, and captured + `artifacts/runtime/mimir-perfect-machine-yuy2-gpu-feature-extraction-headless.png`. + Packed video must not masquerade as ordinary RGBA: Fensalir binds + `DXGI_FORMAT_YUY2` through the documented `R8G8B8A8_UNORM` SRV view and + decodes `Y0/U/Y1/V` in compute. Calibrated projection constants, full SGM, temporal/spatial reservoir reuse in a compilable shader, and global residual/calibration ownership remain open. @@ -586,9 +592,9 @@ accepted_design: is the current local all-sensor runtime profile, and `--perfect-machine-live-smoke` proves the five camera texture leases plus Leap depth/page/mesh sockets are present in one live frame. Camera image - claims now select Fensalir's D3D12 `GpuSensorFusion` backend; Leap and PS3 - Eye formats dispatch today, while Kiyo YUY2 needs a format-aware conversion - cut before RGB feature extraction is true. Fensalir now owns the first in-process + claims now select Fensalir's D3D12 `GpuSensorFusion` backend; Leap, both + PS3 Eyes, Kiyo Pro, and regular Kiyo dispatch today, with YUY2 decoded in + compute from the declared packed format. Fensalir now owns the first in-process D3D12 field resource registry: declared shared structured/curve buffers import/alias GPU-resident resources by handle, while Fensalir-owned resources allocate GPU slots only when Fensalir is the producer.