A bug was discovered in Intel's ASTC texture compressor (ispc_texcomp) while porting it to pure C for benchmarking. The swap() utility function for float values contains a typo that incorrectly casts the first value to int, affecting floating point operations including block error scoring. The author plans to release the C port on GitHub after further testing with UBSan for undefined behavior and statistical analysis of ASTC output. The port has already been enhanced with sRGB decode support, candidate generation, and per-channel weights.

1m read timeFrom richg42.blogspot.com
Post cover image

Sort: