What: Device::new_texture_image gives a new memoryless texture whose memory
is not lazily allocated its zeros at its first move (zero_memoryless). A
transient attachment takes no transfer, so for each level a render pass of
that level's view alone (render_target::clear_alone, the reach clears' pass
shape, loaded and stored in GENERAL) clears every aspect with
vkCmdClearAttachments over its layers, in runs of the device's framebuffer
layers. FirstMove::zero_in_passes holds the passes and framebuffers until
the submission that records them completes, and Taken::record follows them
with a barrier from every stage. A level larger than the device's
framebuffers is no pass's attachment and takes none. Counted:
WorkCounts::memoryless_textures_zeroed (a new public field, signatures
re-blessed). Lazily allocated memoryless memory (MoltenVK) keeps what it
does today. tests::memoryless_fresh now also asserts the count.
Why: a memoryless texture held what its image's memory held, and its first
pass's DontCare load kept that, where the depth and stencil tests or a
resolve read it. That memory may hold a released texture's samples, of
another process of a consumer whose processes share the device. A per-pass
clear of every DontCare memoryless depth cost the Iris Xe 1.17 ms a 4x
1080p pass (job 24160); one clear at the first move costs the texture's
first frame alone, and later passes load as before.
Verified: tests::memoryless_fresh and the runtime suite on lavapipe, and the
Iris's MEMORYLESS-COST, reported with this sha.