ARM-software / astc-encoder

The Arm ASTC Encoder, a compressor for the Adaptive Scalable Texture Compression data format.
https://developer.arm.com/graphics
Apache License 2.0
1.07k stars 241 forks source link

Avoid compute_lowest_and_highest_weight loop tail #521

Closed solidpixel closed 2 weeks ago

solidpixel commented 2 weeks ago

Changes the min/max scan in compute_lowest_and_highest_weight to use a predicated main loop which handles over-spill, rather than a main loop with a scalar loop tail.