vk/astc.c decodes into a device-local scratch buffer of at most 16 MiB, a strip at a time. A strip is block rows
of one slice, or whole slices when one fits, so a 3D texture's thin slices share a dispatch and a copy. Strips keep
both descriptor ranges within maxStorageBufferRange and the staging within the allocation cap. Every mip level,
array layer and depth slice is uploaded.texture.c stages a strip's guest bytes as they are, whole rows of blocks, as vk_astc_upload asks for them, and
vk/blocklinear.c deswizzles them into a device-local scratch buffer the decoder reads, so a level is never
copied whole into memory of its own and the CPU never takes GOBs apart.The pipeline, its layouts and the scratch buffer live as long as the device, like the backend's other internal pipelines. A failure to create them is fatal: there is no CPU fallback. Running out of staging is not: the level is left out, the texture keeps its old hash, and the next check uploads it again.
Made from docs/layers/gpu/astc.md at 69237645142c. GPL-3.0-or-later.