mesa: remove SQRTF, use sqrtf. Convert INV_SQRT() to inline function.