Files
AnyPS5/core
xXPBSXxandClaude Sonnet 5.5 55910c3097 fix(agc): resolve 11_11_10 float color targets by averaging the unpacked samples
A CB resolve whose source is an 11_11_10 float target stopped the title at
decode ("CB resolves of 11_11_10 float color targets are unsupported"): the
target is an R32_UINT image, and the subpass resolve of an integer format
takes one sample instead of averaging. The resolve now draws a pass that
reads every sample of the multisampled R32_UINT image, unpacks the three
unsigned small floats, averages them in float32 in sample order, and packs
the result with truncation toward zero, matching the ROUND_MODE the target
is already required to have. An infinite or NaN field in any sample is
passed through from the first sample that has one.

The averaging is assumed to match the console's CB resolve of an unpacked
float target; it is not measured on hardware. 10_11_11 unorm and 4_4_4_4
unorm targets still refuse the resolve.

AI-assisted: yes

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-26 09:01:42 +01:00
..