DescriptionAdd Sk4f::ToBytes(uint8_t[16], Sk4f, Sk4f, Sk4f, Sk4f)
This is a big speedup for float -> byte. E.g. gradient_linear_clamp_3color:
x86-64 147µs -> 103µs (Broadwell MBP)
arm64 2.03ms -> 648µs (Galaxy S6)
armv7 1.12ms -> 489µs (Galaxy S6, same device!)
BUG=skia:
CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot;client.skia.android:Test-Android-GCC-Nexus9-CPU-Denver-Arm64-Debug-Trybot
Committed: https://skia.googlesource.com/skia/+/9db43ac4ee1a83a4f7b332fe6c00f592b6237349
Patch Set 1 #Patch Set 2 : just ToBytes #Patch Set 3 : both #Patch Set 4 : undo upm #Patch Set 5 : really back #Patch Set 6 : fix neon #
Messages
Total messages: 29 (18 generated)
|