From 20d126c93b8346fdfb0c5d52730aec1b79894d33 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 28 May 2026 22:18:18 +0100 Subject: [PATCH] Record compute-owned reservoir history --- docs/implementation-plan.md | 6 ++++-- notes/current-system-map.md | 4 ++++ state/evidence.jsonl | 1 + state/map.yaml | 8 +++++--- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/docs/implementation-plan.md b/docs/implementation-plan.md index 71b7904..c77b264 100644 --- a/docs/implementation-plan.md +++ b/docs/implementation-plan.md @@ -331,8 +331,10 @@ a named invariant that the native runtime cannot protect yet. spatiotemporal reconstruction. The shared field candidate inlet now keeps four fixed candidate slots per pixel, so TubeField and later producers compete through the same resolver-owned budget instead of naming a private winner. - Reservoir presentation history is now a ping-ponged structured buffer with - the same four rows per pixel, not a set of pixel-history MRTs. + Reservoir history update is now a shared Fensalir compute pass over a + ping-ponged structured buffer with the same four rows per pixel; it emits the + resolved HDR field texture that bloom and presentation consume. The + presentation shader is no longer a hidden history/TAA owner. TubeField render now binds the engine blue-noise texture and jitters its tube-local SDF sample inside the proxy fragment shader, then lets the scene depth buffer resolve opaque generated diff --git a/notes/current-system-map.md b/notes/current-system-map.md index a6fb8cf..7e96845 100644 --- a/notes/current-system-map.md +++ b/notes/current-system-map.md @@ -505,6 +505,10 @@ data into a Fensalir-owned GPU structured buffer before TubeField compute reads it. TubeField writes stable field ids, real tube normals, coverage/confidence, and domain-validity guide data into the same scene metadata/control/reservoir guide targets consumed by reservoir resolve for spatiotemporal reconstruction. +Fensalir's shared reservoir history update now runs as a compute pass over +four structured rows per pixel and emits the resolved HDR field texture for +bloom/presentation, so the presentation shader is no longer a hidden history +owner. TubeField render also binds the engine blue-noise texture, jitters the tube-local SDF sample in the proxy fragment shader, and uses scene depth so opaque field geometry resolves by nearest generated surface instead of draw diff --git a/state/evidence.jsonl b/state/evidence.jsonl index ed45560..e74b72f 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -222,3 +222,4 @@ {"ts": "2026-05-28T21:01:32+01:00", "type": "implementation", "status": "ok", "note": "Fensalir reservoir presentation history moved from single-sample pixel-history MRTs to ping-ponged structured reservoir-history buffers with four rows per pixel. Presentation resolve now reads current shared candidates plus previous structured history rows, validates by field id/travel/normal/coverage/reservoir guide, writes structured history rows, and outputs only final color to the backbuffer."} {"ts": "2026-05-28T21:08:06+01:00", "type": "verification", "status": "ok", "note": "Structured reservoir history verified after root-signature cleanup: Fensalir and Mimir builds passed, --mimir-spectrum-upload-smoke passed, and headless D3D12 capture succeeded at artifacts/runtime/structured-reservoir-history-clean-root-smoke.png with renderTargets=25, confirming the old history MRTs are no longer allocated."} {"ts": "2026-05-28T21:10:02+01:00", "type": "correction", "status": "ok", "note": "Corrected structured reservoir history admission so producer candidates use all four shared rows per pixel. Scene fallback only occupies row 0 when no shared candidate exists. Verified with Fensalir/Mimir builds, spectrum upload smoke, and headless capture artifacts/runtime/structured-reservoir-history-four-row-smoke.png."} +{"ts": "2026-05-28T21:25:00+01:00", "type": "implementation", "status": "ok", "note": "Fensalir reservoir history update/reuse now runs in a shared compute pass, not the presentation shader. The pass writes the next four structured rows per pixel and emits a resolved HDR field texture consumed by bloom/presentation. Verified with Fensalir and Mimir builds, --mimir-spectrum-upload-smoke, and headless synthetic spectrum capture artifacts/runtime/reservoir-history-compute-spectrum-smoke.png."} diff --git a/state/map.yaml b/state/map.yaml index 2ee5259..17d7579 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -465,9 +465,11 @@ accepted_design: guide targets consumed by reservoir resolve for spatiotemporal reconstruction. The shared field candidate inlet now keeps four fixed slots per pixel, so producer-specific paths compete inside a resolver-owned budget - instead of choosing private winners. Reservoir presentation history is now a - ping-ponged structured buffer with the same four rows per pixel, not - pixel-history MRTs. TubeField render now binds the engine blue-noise texture, + instead of choosing private winners. Reservoir history update is now a + shared Fensalir compute pass over a ping-ponged structured buffer with the + same four rows per pixel; it emits the resolved HDR field texture that + bloom and presentation consume. The presentation shader is no longer a + hidden history/TAA owner. TubeField render now binds the engine blue-noise texture, jitters its tube-local SDF sample inside the proxy fragment shader, and uses scene depth so opaque generated field geometry resolves by nearest surface rather than draw order. The current visual still exposes generated