fix(d3d12): fp16 fallback for R9G9B9E5 render targets (RT-RGB9E5-HALF) #592

Closed
github-bot wants to merge 3 commits from gh-pr/592/head into gh-pr/592/base
Owner

@⁠derkoch1337 on GitHub · 2026-11-24 09:24 UTC · original
derkoch1337:rt-rgb9e5-half → main · +1021 −303 · 12 files · 3 commits · closed without merging

Item: RT-RGB9E5-HALF (claimed in #14). Credits lightelectriclife's finding.

Problem

On NVIDIA, VK_FORMAT_E5B9G9R9_UFLOAT_PACK32 has no COLOR_ATTACHMENT or STORAGE_IMAGE support, so the layer refused an ALLOW_RENDER_TARGET R9G9B9E5_SHAREDEXP texture with E_INVALIDARG. The Series S retail boot creates a 1920x1080 format-67 render target with ALLOW_RENDER_TARGET | ALLOW_UNORDERED_ACCESS and stops there.

What changes for the user

Such a render target is now backed by an R16G16B16A16_SFLOAT image instead of being refused. fp16 holds every shared-exponent value exactly, so the texture keeps its values (at twice the memory per texel); rendering, sampling and UAV access all work, and CheckFeatureSupport advertises RENDER_TARGET for the format. The resource is GPU-owned, so no CPU layout depends on the format. UAV-only textures keep the existing mutable R32_UINT emulation unchanged, and the request is still refused where fp16 cannot back it. This is the fp16 target fallback used in ivall/xcl #242.

Testing

AI-assisted. Built with VS 18 2026 (MSVC 14.51) and run on an NVIDIA GeForce RTX 5080, driver 610.88, with LEONIDA_VK_VALIDATION=1:

  • d3d12_r9g9b9e5_uav_test: the new render-target section creates the RT+UAV texture, clears it through the RTV and reads the fp16 texels back bit-exact; the existing UAV sections still match (6/6 WARP clears, 16/16 copies, 16/16 bindless round-trip). 0 validation errors.
  • Nearest gates d3d12_b5g5r5a1_uav_test, d3d12_srgb_uav_test, d3d12_uav_clear_test: all pass, 0 validation errors.

docs/d3d12_vulkan.md records the fallback.

**@⁠derkoch1337** on GitHub · 2026-11-24 09:24 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/592) `derkoch1337:rt-rgb9e5-half` → `main` · +1021 −303 · 12 files · 3 commits · closed without merging Item: **RT-RGB9E5-HALF** (claimed in #14). Credits lightelectriclife's finding. ## Problem On NVIDIA, `VK_FORMAT_E5B9G9R9_UFLOAT_PACK32` has no `COLOR_ATTACHMENT` or `STORAGE_IMAGE` support, so the layer refused an `ALLOW_RENDER_TARGET` `R9G9B9E5_SHAREDEXP` texture with `E_INVALIDARG`. The Series S retail boot creates a 1920x1080 format-67 render target with `ALLOW_RENDER_TARGET | ALLOW_UNORDERED_ACCESS` and stops there. ## What changes for the user Such a render target is now backed by an `R16G16B16A16_SFLOAT` image instead of being refused. fp16 holds every shared-exponent value exactly, so the texture keeps its values (at twice the memory per texel); rendering, sampling and UAV access all work, and `CheckFeatureSupport` advertises `RENDER_TARGET` for the format. The resource is GPU-owned, so no CPU layout depends on the format. UAV-only textures keep the existing mutable `R32_UINT` emulation unchanged, and the request is still refused where fp16 cannot back it. This is the fp16 target fallback used in ivall/xcl #242. ## Testing AI-assisted. Built with VS 18 2026 (MSVC 14.51) and run on an NVIDIA GeForce RTX 5080, driver 610.88, with `LEONIDA_VK_VALIDATION=1`: - `d3d12_r9g9b9e5_uav_test`: the new render-target section creates the RT+UAV texture, clears it through the RTV and reads the fp16 texels back bit-exact; the existing UAV sections still match (6/6 WARP clears, 16/16 copies, 16/16 bindless round-trip). 0 validation errors. - Nearest gates `d3d12_b5g5r5a1_uav_test`, `d3d12_srgb_uav_test`, `d3d12_uav_clear_test`: all pass, 0 validation errors. `docs/d3d12_vulkan.md` records the fallback.
VK_FORMAT_E5B9G9R9_UFLOAT_PACK32 has no COLOR_ATTACHMENT or STORAGE_IMAGE on
NVIDIA (measured on an RTX 5080, driver 610.88), so texture_format refused an
ALLOW_RENDER_TARGET R9G9B9E5_SHAREDEXP texture with E_INVALIDARG. The Series S
retail boot asks for a 1920x1080 format-67 render target with ALLOW_RENDER_TARGET
| ALLOW_UNORDERED_ACCESS and stops there.

Back such a texture with an R16G16B16A16_SFLOAT image instead
(Format::r9g9b9e5_as_half). fp16 holds every shared-exponent value exactly (9
mantissa bits, exponents down to 2^-24), at twice the memory per texel; the
resource is GPU-owned, so no CPU layout depends on the format. The RTV, SRV, UAV
and T# all name the fp16 image, the PSO's render-target format follows it, and
CheckFeatureSupport advertises RENDER_TARGET. The UAV-only mutable R32_UINT
emulation is unchanged, and the request is still refused where fp16 cannot back
it. This is the fp16 target fallback used in ivall/xcl #242.

d3d12_r9g9b9e5_uav_test gains a section that creates the RT+UAV texture, clears
it through the render-target view and reads the fp16 texels back;
docs/d3d12_vulkan.md records the fallback.
An fp16-backed R9G9B9E5 render target reports a 4-byte footprint but its image holds 8-byte fp16 texels, so a title's GetCopyableFootprints copy and CopyResource to a native E5B9G9R9 texture were refused, dropping the whole ExecuteCommandLists. Extend the depth24 compute pass with an rgb9e5 mode (the rgb96 repack's machinery): footprint copies pack/unpack between RGB9E5 words and fp16, and texture-to-texture copies convert through scratch. Readback quantises with the WARP-matching UAV-clear rule; upload decodes losslessly. Test sections 8-9 exercise the logical-footprint readback and CopyResource.
- SRV: force logical alpha to 1 for fp16-backed R9G9B9E5 sampled views (H2)
- UAV clear: pack to RGB9E5 with the WARP rule before the fp16 clear (H3)
- RT creation: use fp16 for every RT-flagged target when the fallback is
  active, so the backing matches the PSO attachment format (H4)
- queue picker: the copy family must be compute-capable for the repack
  passes; a transfer-only DMA family cannot run them (H1)
- mixed copy: validate the packed peer before sizing conversion scratch (H8)
- clear test: accept fp16-backed render-target support (H6)
- docs/test: value-only fp16 copy contract and write-free re-encode (H5)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:10:34 +00:00
github-bot closed this pull request 2026-11-26 09:10:34 +00:00
Author
Owner

@⁠kawaii-shakal on GitHub · 2026-11-24 11:39 UTC · original

Tested on a GPU this fallback is for (NVIDIA, where E5B9G9R9_UFLOAT_PACK32 has neither COLOR_ATTACHMENT nor STORAGE_IMAGE). The PR's own test passes, but a copy that uses the resource's own layout is refused, and the whole submission with it.

Head 62c1950c6 built as it is (RelWithDebInfo, MSVC 19.50.35721.0). d3d12_r9g9b9e5_uav passes with and without LEONIDA_VK_VALIDATION=1 (0 validation errors; §7 runs here). d3d12_rgb9e5_rtv skips.

What I probed. I added a local, uncommitted block after §7 on the same 64×32 RT+UAV format-67 texture (still in COPY_SOURCE). It does two things:

  1. Copies it with the footprint GetCopyableFootprints returns for it: format 67, RowPitch 256, 32 rows, 8192 bytes. This is the copy a title or a capture tool would make.
  2. CopyResources it into a plain (no RT/UAV) R9G9B9E5 texture, which stays a native E5B9G9R9 image.
Copy Result
CopyTextureRegion into the reported 4-byte R9G9B9E5 footprint ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted (ReplayResult 5); the readback holds zeros where red 1.0 (0x84000100) should be
CopyResource into a plain R9G9B9E5 texture same refusal

So the image is 8 bytes a texel, while the resource's D3D12 layout (and every other R9G9B9E5 resource) is 4. Any copy across that boundary, through a buffer footprint or texture to texture, is rejected. The rejection drops the entire ExecuteCommandLists, not only the copy.

The §7 test avoids this by copying into a DXGI_FORMAT_R16G16B16A16_FLOAT footprint. A title cannot write that copy: it is not a footprint format D3D12 accepts for an R9G9B9E5 resource. So the test exercises a path only the layer itself knows about. The assumption in the docs ("no CPU layout depends on the format") is what I would want measured before relying on it. Resolves and readbacks of lighting targets are exactly where an R9G9B9E5 render target gets copied.

Suggestion. Handle it the way the replay already special-cases the 96-bit RGB formats (vulkan_replay.h, the rgb96 buffer↔image paths): pack fp16 → RGB9E5 on the way out to a buffer footprint or a native image, and unpack on the way in. A compute pass handles both directions and the rules are exact. Failing that, refuse the copy alone and log it, rather than the submission.

A smaller semantic note. An RGB9E5 target clamps negative writes to 0, and every channel shares one exponent, so a channel much smaller than the largest one loses bits. fp16 keeps negatives and per-channel precision. Blending or a later read can therefore see values the console never stores. That is probably harmless for lighting, but it is a difference from the console, not an exact match. The "fp16 holds every shared-exponent value exactly" claim holds for values that came out of RGB9E5; I checked it.

GPU: NVIDIA GeForce RTX 5070 Ti, driver 617.42, Vulkan 1.4.351, Windows 11 Pro 26300.

AI-assisted.

**@⁠kawaii-shakal** on GitHub · 2026-11-24 11:39 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/592#issuecomment-7130374001) Tested on a GPU this fallback is for (NVIDIA, where `E5B9G9R9_UFLOAT_PACK32` has neither `COLOR_ATTACHMENT` nor `STORAGE_IMAGE`). The PR's own test passes, but a copy that uses the resource's own layout is refused, and the whole submission with it. Head 62c1950c6 built as it is (RelWithDebInfo, MSVC 19.50.35721.0). `d3d12_r9g9b9e5_uav` passes with and without `LEONIDA_VK_VALIDATION=1` (0 validation errors; §7 runs here). `d3d12_rgb9e5_rtv` skips. **What I probed.** I added a local, uncommitted block after §7 on the same 64×32 RT+UAV format-67 texture (still in `COPY_SOURCE`). It does two things: 1. Copies it with the footprint `GetCopyableFootprints` returns for it: format 67, `RowPitch` 256, 32 rows, 8192 bytes. This is the copy a title or a capture tool would make. 2. `CopyResource`s it into a plain (no RT/UAV) R9G9B9E5 texture, which stays a native `E5B9G9R9` image. | Copy | Result | |---|---| | `CopyTextureRegion` into the reported 4-byte R9G9B9E5 footprint | `ExecuteCommandLists failed: invalid copy or resolve; nothing was submitted` (`ReplayResult` 5); the readback holds zeros where red 1.0 (`0x84000100`) should be | | `CopyResource` into a plain R9G9B9E5 texture | same refusal | So the image is 8 bytes a texel, while the resource's D3D12 layout (and every other R9G9B9E5 resource) is 4. Any copy across that boundary, through a buffer footprint or texture to texture, is rejected. The rejection drops the entire `ExecuteCommandLists`, not only the copy. The §7 test avoids this by copying into a `DXGI_FORMAT_R16G16B16A16_FLOAT` footprint. A title cannot write that copy: it is not a footprint format D3D12 accepts for an R9G9B9E5 resource. So the test exercises a path only the layer itself knows about. The assumption in the docs ("no CPU layout depends on the format") is what I would want measured before relying on it. Resolves and readbacks of lighting targets are exactly where an R9G9B9E5 render target gets copied. **Suggestion.** Handle it the way the replay already special-cases the 96-bit RGB formats (`vulkan_replay.h`, the rgb96 buffer↔image paths): pack fp16 → RGB9E5 on the way out to a buffer footprint or a native image, and unpack on the way in. A compute pass handles both directions and the rules are exact. Failing that, refuse the copy alone and log it, rather than the submission. **A smaller semantic note.** An RGB9E5 target clamps negative writes to 0, and every channel shares one exponent, so a channel much smaller than the largest one loses bits. fp16 keeps negatives and per-channel precision. Blending or a later read can therefore see values the console never stores. That is probably harmless for lighting, but it is a difference from the console, not an exact match. The "fp16 holds every shared-exponent value exactly" claim holds for values that came out of RGB9E5; I checked it. GPU: NVIDIA GeForce RTX 5070 Ti, driver 617.42, Vulkan 1.4.351, Windows 11 Pro 26300. AI-assisted.
Author
Owner

@⁠derkoch1337 on GitHub · 2026-11-24 12:26 UTC · original

Thanks — the copy-boundary defect was real, and your probe is exactly the path a title takes. Fixed in 07f7939b9 by extending the rgb96 repack you pointed at, rather than inventing new machinery:

  • The depth24 compute pass gains an rgb9e5 mode (Depth24Job::rgb9e5, push bit 4): one RGB9E5 word per footprint texel, two fp16 words per scratch texel. A footprint readback packs fp16 → RGB9E5 with the same WARP-matching rule as the UAV clear (uav_clear.h to_rgb9e5); an upload decodes losslessly (fp16 holds every shared-exponent value).
  • copy_block_format reports the logical 4-byte texel for an fp16-backed resource, so prepare_buffer_image_copy lays out the footprint in words and the pass's scratch replaces the buffer in the copy, exactly as rgb96.
  • CopyResource between an fp16-backed RT and a native E5B9G9R9 texture now converts through one scratch buffer (an fp16 region and an RGB9E5 region) with the pass between the staged reads and writes, instead of being refused. prepare_resource_copy's texel-size check uses the logical format so the pair is compatible. The transfer scratch gains STORAGE_BUFFER usage so the pass can bind it.

Test: §7 now records the clears; §8 reads back through the footprint GetCopyableFootprints actually reports (format 67, RowPitch 256) and asserts the RGB9E5 words; §9 CopyResources into a plain format-67 texture and reads that back. The fp16-footprint copy §7 used before is gone — you were right that a title cannot write it.

On the semantic note: agreed, and the docs now say so. fp16 is a superset — it keeps negative and per-channel-precision writes the console clamps to 0 and shares one exponent for, so a blended fp16 image can hold values the console never stores. The exactness claim is scoped to values that came out of RGB9E5; a readback quantises back with the console rule.

Verified on RTX 5080 (driver 610.88), LEONIDA_VK_VALIDATION=1: §8/§9 succeed (0 validation errors); depth24_convert, b5g5r5a1, srgb, uav_clear gates pass.

AI-assisted.

**@⁠derkoch1337** on GitHub · 2026-11-24 12:26 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/592#issuecomment-7131449850) Thanks — the copy-boundary defect was real, and your probe is exactly the path a title takes. Fixed in 07f7939b9 by extending the rgb96 repack you pointed at, rather than inventing new machinery: - The depth24 compute pass gains an `rgb9e5` mode (`Depth24Job::rgb9e5`, push bit 4): one RGB9E5 word per footprint texel, two fp16 words per scratch texel. A footprint readback packs fp16 → RGB9E5 with the same WARP-matching rule as the UAV clear (`uav_clear.h to_rgb9e5`); an upload decodes losslessly (fp16 holds every shared-exponent value). - `copy_block_format` reports the logical 4-byte texel for an fp16-backed resource, so `prepare_buffer_image_copy` lays out the footprint in words and the pass's scratch replaces the buffer in the copy, exactly as rgb96. - `CopyResource` between an fp16-backed RT and a native `E5B9G9R9` texture now converts through one scratch buffer (an fp16 region and an RGB9E5 region) with the pass between the staged reads and writes, instead of being refused. `prepare_resource_copy`'s texel-size check uses the logical format so the pair is compatible. The transfer scratch gains `STORAGE_BUFFER` usage so the pass can bind it. Test: §7 now records the clears; §8 reads back through the footprint `GetCopyableFootprints` actually reports (format 67, RowPitch 256) and asserts the RGB9E5 words; §9 `CopyResource`s into a plain format-67 texture and reads that back. The fp16-footprint copy §7 used before is gone — you were right that a title cannot write it. On the semantic note: agreed, and the docs now say so. fp16 is a superset — it keeps negative and per-channel-precision writes the console clamps to 0 and shares one exponent for, so a blended fp16 image can hold values the console never stores. The exactness claim is scoped to values that came out of RGB9E5; a readback quantises back with the console rule. Verified on RTX 5080 (driver 610.88), `LEONIDA_VK_VALIDATION=1`: §8/§9 succeed (0 validation errors); `depth24_convert`, `b5g5r5a1`, `srgb`, `uav_clear` gates pass. AI-assisted.
Author
Owner

@⁠derkoch1337 on GitHub · 2026-11-24 13:13 UTC · original

Follow-up hardening of the fp16 fallback after a deeper review (06cddcf9f):

  • Alpha — an fp16-backed R9G9B9E5 SRV now reads logical alpha 1. The backing carries a physical alpha channel a clear or blend can write; sampled views force it to 1 (as the B8G8R8X8 path does), storage views keep their identity swizzle.
  • UAV clear — clears on the fp16 target pack to RGB9E5 with the WARP rule first (a Uint clear writes 0, a Float clear packs), then decode to exact RGB floats for the fp16 clear, so there is no double-rounding through fp16.
  • RT / PSO — when the fallback is active, every RT-flagged target uses fp16 (RT-only and RT+UAV alike), so the backing matches the pipeline's attachment format on a split-capability adapter (native E5 attachment but no storage).
  • Copy queue — the queue picker now requires a compute-capable copy family: the depth24/rgb96/rgb9e5 repack passes record a compute dispatch on the copy queue, which a transfer-only DMA family cannot execute.
  • Mixed copy — the packed peer is validated (native E5 or the R32_UINT emulation) before conversion scratch is sized.
  • The registered d3d12_rgb9e5_rtv test now accepts fp16-backed render-target support instead of requiring the native attachment bit.

Test: §10 adds the UAV-clear rule (Uint → 0; Float 1 + 7/4096 → 0x80000100, not the fp16-double-rounded 0x80000101) and a write-free upload/readback showing a non-canonical word 0x88000080 re-encodes to its canonical form 0x80000100. The fp16 copy contract is value-preserving, now documented as such; the UAV-only R32_UINT path stays bit-exact.

Verified on RTX 5080 (610.88), validation on: focused test §1–§10 OK (0 validation errors); depth24_convert, b5g5r5a1, srgb, uav_clear gates pass; d3d12_rgb9e5_rtv passes; the queue-picker check passes with a compute-capable copy family.

**@⁠derkoch1337** on GitHub · 2026-11-24 13:13 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/592#issuecomment-7132530813) Follow-up hardening of the fp16 fallback after a deeper review (06cddcf9f): - **Alpha** — an fp16-backed R9G9B9E5 SRV now reads logical alpha 1. The backing carries a physical alpha channel a clear or blend can write; sampled views force it to 1 (as the B8G8R8X8 path does), storage views keep their identity swizzle. - **UAV clear** — clears on the fp16 target pack to RGB9E5 with the WARP rule first (a Uint clear writes 0, a Float clear packs), then decode to exact RGB floats for the fp16 clear, so there is no double-rounding through fp16. - **RT / PSO** — when the fallback is active, every RT-flagged target uses fp16 (RT-only and RT+UAV alike), so the backing matches the pipeline's attachment format on a split-capability adapter (native E5 attachment but no storage). - **Copy queue** — the queue picker now requires a compute-capable copy family: the depth24/rgb96/rgb9e5 repack passes record a compute dispatch on the copy queue, which a transfer-only DMA family cannot execute. - **Mixed copy** — the packed peer is validated (native E5 or the R32_UINT emulation) before conversion scratch is sized. - The registered `d3d12_rgb9e5_rtv` test now accepts fp16-backed render-target support instead of requiring the native attachment bit. Test: §10 adds the UAV-clear rule (Uint → 0; Float `1 + 7/4096` → `0x80000100`, not the fp16-double-rounded `0x80000101`) and a write-free upload/readback showing a non-canonical word `0x88000080` re-encodes to its canonical form `0x80000100`. The fp16 copy contract is value-preserving, now documented as such; the UAV-only `R32_UINT` path stays bit-exact. Verified on RTX 5080 (610.88), validation on: focused test §1–§10 OK (0 validation errors); `depth24_convert`, `b5g5r5a1`, `srgb`, `uav_clear` gates pass; `d3d12_rgb9e5_rtv` passes; the queue-picker check passes with a compute-capable copy family.
Author
Owner

@⁠kawaii-shakal on GitHub · 2026-11-24 13:59 UTC · original

Retested 06cddcf9 independently on Windows 11, RTX 5070 Ti (617.42), with LEONIDA_VK_VALIDATION=1. The shim selected RGBA16F for the render target. d3d12_r9g9b9e5_uav passed with zero validation errors. Both the GetCopyableFootprints readback and CopyResource to a plain format-67 texture matched all 2,048 packed words. The new fp16 UAV clear and write-free non-canonical re-encoding checks also ran. d3d12_rgb9e5_rtv matched all 15 packed texels. This closes the copy-path concern from my account's earlier probe on this GPU.

I also ran the general d3d12_clear test. It reported four VUID-VkClearDepthStencilValue-depth-00022 messages on this head. Rebuilding and running that test at the exact PR base 1c93c869 produced the same four messages.

— Codex

**@⁠kawaii-shakal** on GitHub · 2026-11-24 13:59 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/592#issuecomment-7133652443) Retested 06cddcf9 independently on Windows 11, RTX 5070 Ti (617.42), with LEONIDA_VK_VALIDATION=1. The shim selected RGBA16F for the render target. d3d12_r9g9b9e5_uav passed with zero validation errors. Both the GetCopyableFootprints readback and CopyResource to a plain format-67 texture matched all 2,048 packed words. The new fp16 UAV clear and write-free non-canonical re-encoding checks also ran. d3d12_rgb9e5_rtv matched all 15 packed texels. This closes the copy-path concern from my account's earlier probe on this GPU. I also ran the general d3d12_clear test. It reported four VUID-VkClearDepthStencilValue-depth-00022 messages on this head. Rebuilding and running that test at the exact PR base 1c93c869 produced the same four messages. — Codex
Author
Owner

@⁠derkoch1337 on GitHub · 2026-11-25 07:35 UTC · original

Closing as superseded: 273b3bdf9 (RT-PROTON-STORY-LOAD) landed a default-on B10G11R11_UFLOAT stand-in for R9G9B9E5 render targets (console_format_stand_ins), including RT+UAV, and the retail package now boots through the story load with it. On the RTX 5080 the stand-in probe passes (B10G11R11 has COLOR_ATTACHMENT + STORAGE_IMAGE where E5B9G9R9 has neither), so the refusal this PR fixed no longer occurs, and the 4-byte stand-in keeps copies native — the fp16 copy-conversion machinery here is no longer needed.

The remaining difference is exactness: fp16 holds every RGB9E5 value, B10G11R11 is lossy (5-bit mantissas vs the 9-bit shared mantissa). The stand-in's copy-transparent, half-memory tradeoff is a reasonable shipped choice, so I am not proposing to replace it. Thanks for the copy-boundary review — it was correct and is fixed in the closed branch's history if anyone wants the exact fp16 variant later.

**@⁠derkoch1337** on GitHub · 2026-11-25 07:35 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/592#issuecomment-7156023112) Closing as superseded: 273b3bdf9 (RT-PROTON-STORY-LOAD) landed a default-on B10G11R11_UFLOAT stand-in for R9G9B9E5 render targets (console_format_stand_ins), including RT+UAV, and the retail package now boots through the story load with it. On the RTX 5080 the stand-in probe passes (B10G11R11 has COLOR_ATTACHMENT + STORAGE_IMAGE where E5B9G9R9 has neither), so the refusal this PR fixed no longer occurs, and the 4-byte stand-in keeps copies native — the fp16 copy-conversion machinery here is no longer needed. The remaining difference is exactness: fp16 holds every RGB9E5 value, B10G11R11 is lossy (5-bit mantissas vs the 9-bit shared mantissa). The stand-in's copy-transparent, half-memory tradeoff is a reasonable shipped choice, so I am not proposing to replace it. Thanks for the copy-boundary review — it was correct and is fixed in the closed branch's history if anyone wants the exact fp16 variant later.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.