Behaviour from exitcrash's f856f3a2c8, ea34c27388 and 4cb247a148.
On an AppleSilicon-presenting device, a Clear in a pass without a draw call reaches what the M3's Metal
clears:
- the whole level or slice, where Metal compresses the attachment;
- otherwise the render area rounded up to 32x32 tiles and clipped to the level;
- with a draw call, always the tiles.
How it is done:
- A no-draw pass whose clear would reach past its area clears in a pass of its own first, then loads. So
the main pass's render area stays Metal's, and a DontCare attachment never sits in a grown pass.
- FreshUnwritten counts the reach as written.
- A pre-existing bug found by the new test is fixed: a texture over a buffer with a shadow image, cleared
past its render area without a draw call, wrote nothing to the buffer.
IntelOrAmd answers are unchanged (the whole level without a draw call, the 5300M's). API.md records the
x86 Macs' disagreement as an accepted difference.
Verified by exitcrash:
- runtime_lane::fresh_clear_reach: 300 cases texel by texel against Metal's answers.
- fresh_contents' multisampled depth test.
- M3 MoltenVK 258/258 (job 12799) and lavapipe 259/259 (12800).
- The negative control at 32ea3ac198 fails 36 of 300 cases on both devices.
- clippy is clean.