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.08k stars 241 forks source link

Move SVE length check to a veneer #502

Closed solidpixel closed 2 months ago

solidpixel commented 2 months ago

The current code tries to use an SVE length check to validate that the compile-time length matches the run-time length in the current hardware. However, it appears that the behavior of svcntw() is to return the compile-time fixed size if used in fixed-size code.

This PR moves the validation check into a new veneer that is compiled with SVE, but without a fixed vector length.