bcn_etc2_glsl runs the encoder on the CPU, its blocks decoded by tests/support/etc2.c: every candidate stores the
mode it means, at the error the encoder worked out; the block written is the best candidate tried; a block of one
4 bit colour, a planar gradient, an EAC block of every table and an alpha the same throughout come back exact, and
1600 of 2000 random ETC1 blocks at least (744 with each subblock's base its mean alone) and 400 of 500 gradients
the decoder clamps (241 with one walk of the planar levels around the fit); BC1's transparent texels
stay transparent; images whose sides aren't multiples of 4, of several slices, transcode block for block as one
block alone; and each kind holds the PSNR it reached on a picture of gradients, edges, noise and alpha.tex_upload_rows: an encoder's level in pieces under a small bound, block linear, pitch linear and a volume, no
submission holding more, each piece recorded into the command buffer recording then, every block where the image
has it.astc_vulkan runs the SPIR-V: random blocks of every kind against the CPU's run, byte for byte, whole and in pieces
of 3 rows a submission, and, where the
device samples ETC2, the device's own decoding of them against etc2.c. llvmpipe samples no ETC2, so on the CI the
second is skipped; a phone runs it.astc_encode_glsl (no GPU) runs the ASTC encoder on the CPU and decodes its blocks with the CPU's ASTC decoder
(tests/support/astc.c): 6000 blocks of noise, edges, gradients, single colours and alpha each decode to the squared
error the encoder worked out (so each layout's bits, colour encoding and weights are where the decoder reads them),
none is a block the decoder refuses, every layout is written, and a picture holds its PSNR. The transcoder's three passes
as the shader builds each (the second with no arrays and no reciprocal) write the blocks one invocation does, on
random BC1, BC2, BC3 and BC7 blocks and on a picture's BC7 blocks, most of which the second pass writes.
astc_vulkan holds the SPIR-V of the ASTC build, its three passes, to the CPU's run of it in one (tests/glsl/bcn_astc_cpu.cpp, hints and
all) on random BC2, BC3 and BC7 blocks, byte for byte.vk_block_formats runs vk_blocks_want, vk_tic_format and vk_blocks_say on stand-in devices, the first a
player's Mali-G52 MC2 from its vkjson (ASTC and ETC2 sampled, BCn not).
Each vendor's encoder (vk_astc_encoder) and the log's line for it, with and without packed dot products.astc_encode_glsl holds Adreno's encoder to the generic one's bytes on every set above, both vendors' AsPack to
the generic one's on random candidates of every layout, and Mali's to the generic one's quality (each block at the
error it worked out, a tenth of a dB on each set, its worst block's largest channel error 4 more at most); each
vendor's three passes write what its one invocation does. astc_vulkan runs each vendor's builds on the device,
the vendor ID set to Arm's and Qualcomm's in turn, against the CPU's run of that vendor's encoder, and checks the
passes are that vendor's builds; astc_vulkan_encode_dot the same with packed dot products.Made from docs/layers/gpu/bcn.md at 69237645142c. GPL-3.0-or-later.