Skip to content

Radiance cache on the M5 Pro: fit 10 storage buffers per stage, then the Mac run list #49

Backlog

Description

@DennisSmolek

Blocker. Some radiance-cache compute pipelines bind 13 storage buffers in one shader stage. Chrome on the M5 Pro allows maxStorageBuffersPerShaderStage = 10, so none of the radiance-cache GPU pages can run on the Mac. This was found while verifying #44 on the Mac.

  • The design assumed our device's 16 per stage (the RTX's): see docs/design/radiance-cache.md, the limits table.
  • Fix in progress on branch rc-storage-buffers. It extends register D6's packing (Capsaicin's ~30 hash-cache buffers already live in a few packed buffers at fixed offsets).
  • It adds a per-pipeline storage-buffer count test and a GPU run on the RTX with the device limited to 10.

Then, the Mac run list (M5 Pro, Chrome, through the bench lock):

  1. The radiance-cache correctness pages: world-cache, cell-shading, ddgi-bounce, temporal, stability, three, viewer, plus SHaRC and the denoiser pages.
  2. P6.4's neural tail (from PROGRESS 2026-11-20):
    • pnpm test:gpu --filter radiance-cache-neural-tail;
    • radiance-cache-neural-timing with the cool wait, all four rows;
    • the same with neural: { stepsPerFrame: 1 } and screenStride: 16;
    • the lag section with ema: 'off'.
  3. Timing for phase 5 and P6.5: VALID runs of the radiance cache's default and each variant. This overlaps with Timing on the target GPUs (RTX 3060, M5 Pro) #15.

Done when: every radiance-cache pipeline binds 10 or fewer storage buffers in every setting combination (unit-tested), the RTX passes at a limit of 10, and the Mac run list above has been run and its results recorded in PROGRESS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions