Signal MF GPU camera producer fences

This commit is contained in:
Meta Vens 2026-05-27 17:22:30 +01:00
commit dab0f520ca
8 changed files with 83 additions and 13 deletions

View file

@ -181,3 +181,4 @@
{"ts": "2026-05-27T14:25:26+01:00", "type": "verification", "status": "ok", "note": "The new in-process KS/UVC driver pulled a real LeapUVC 640x240 YUY2 frame through native/camera_capture, MimirKsVideoCaptureDriver, and MimirVideoCaptureDriverSource, then uploaded 307200 bytes into the Fensalir texture lease for mimir:resource:camera:leap-stereo-ir:texture2d with UnavoidableCopyCount=1. Managed live payload bytes were cleared after upload."}
{"ts": "2026-05-27T14:31:40+01:00", "type": "verification", "status": "ok", "note": "Direct camera driver smokes pulled and uploaded real camera pixels into Fensalir texture leases: LeapUVC 640x240 YUY2 uploaded 307200 bytes, PS3 Eye 0 and 1 each uploaded 320x240 Bayer8 / 76800 bytes, Kiyo Pro uploaded 1920x1080 YUY2 / 4147200 bytes, and regular Kiyo uploaded 640x480 YUY2 / 614400 bytes. All successful paths cleared live managed payload bytes after upload and reported UnavoidableCopyCount=1. Regular Kiyo 1280x720 YUY2 did not open; compressed MJPG/H264 still require a device/GPU decode producer."}
{"ts": "2026-05-27T16:35:32+01:00", "type": "verification", "status": "ok", "note": "Media Foundation GPU decode is now a Mimir-owned producer path. native/camera_capture/mimir_mf_gpu_capture.dll runs SourceReader with a D3D11 device manager, selects Kiyo Pro compressed modes, decodes MJPG/H264 on the GPU, copies the decoded GPU surface into a shared BGRA D3D11 texture, and MimirMediaFoundationGpuVideoCaptureDriver publishes a shared-d3d11-texture handle with empty live CPU payload bytes. Kiyo Pro 1920x1080 MJPG->RGB32 and H264->RGB32 smokes passed and lowered to valid Fensalir camera resources. Direct shared NV12 texture creation failed with E_INVALIDARG, so planar NV12 remains future plane-aware interop or GPU bridge-copy work."}
{"ts": "2026-05-27T17:19:41+01:00", "type": "verification", "status": "ok", "note": "The MF GPU direct texture path now carries D3D11/D3D12 synchronization instead of relying on flush timing. native/camera_capture/mimir_mf_gpu_capture.dll creates a shared D3D11 fence, signals it after copying the decoded GPU surface into the shared BGRA texture, and MimirMediaFoundationGpuVideoCaptureDriver carries the fence handle/value through MimirVideoFrameDescriptor into Fensalir field resource declarations. Kiyo Pro 1920x1080 MJPG->RGB32 and H264->RGB32 smokes passed with zero live CPU payload bytes, nonzero shared texture handles, nonzero producer fence handles, and valid Fensalir camera resources."}

View file

@ -341,8 +341,13 @@ accepted_design:
`native/camera_capture/mimir_mf_gpu_capture.dll` to run Media Foundation
SourceReader with a D3D11 device manager, decode MJPG/H264 on the GPU, copy
the decoded GPU surface into a shared BGRA D3D11 texture, and publish a
`shared-d3d11-texture` handle with zero live CPU payload bytes. Kiyo Pro
1920x1080 MJPG->RGB32 and H264->RGB32 smokes passed. Direct shared NV12
`shared-d3d11-texture` handle with zero live CPU payload bytes. The MF GPU
producer now also creates a shared D3D11 fence, signals it after the
texture copy, and carries the fence handle/value through
`MimirVideoFrameDescriptor`, `MimirBridgePayloadView`, and the Fensalir
field resource declaration so D3D12 can wait before sampling. Kiyo Pro
1920x1080 MJPG->RGB32 and H264->RGB32 smokes passed with nonzero shared
texture and producer fence handles. Direct shared NV12
texture creation failed in D3D11, so NV12 remains future plane-aware interop
or GPU bridge-copy work.
`Mimir.BufferSmoke --fensalir-camera-observation-smoke`