| Index: third_party/libwebp/dsp/rescaler.c
|
| diff --git a/third_party/libwebp/dsp/rescaler.c b/third_party/libwebp/dsp/rescaler.c
|
| index f5b07756cfdc08620f1b72eeeba59dbb59933abd..0f545023521958e276d91a138c17b41fe47c05b1 100644
|
| --- a/third_party/libwebp/dsp/rescaler.c
|
| +++ b/third_party/libwebp/dsp/rescaler.c
|
| @@ -14,7 +14,7 @@
|
| #include <assert.h>
|
|
|
| #include "./dsp.h"
|
| -#include "../utils/rescaler.h"
|
| +#include "../utils/rescaler_utils.h"
|
|
|
| //------------------------------------------------------------------------------
|
| // Implementations of critical functions ImportRow / ExportRow
|
| @@ -199,6 +199,7 @@ WebPRescalerExportRowFunc WebPRescalerExportRowShrink;
|
| extern void WebPRescalerDspInitSSE2(void);
|
| extern void WebPRescalerDspInitMIPS32(void);
|
| extern void WebPRescalerDspInitMIPSdspR2(void);
|
| +extern void WebPRescalerDspInitMSA(void);
|
| extern void WebPRescalerDspInitNEON(void);
|
|
|
| static volatile VP8CPUInfo rescaler_last_cpuinfo_used =
|
| @@ -233,6 +234,11 @@ WEBP_TSAN_IGNORE_FUNCTION void WebPRescalerDspInit(void) {
|
| WebPRescalerDspInitMIPSdspR2();
|
| }
|
| #endif
|
| +#if defined(WEBP_USE_MSA)
|
| + if (VP8GetCPUInfo(kMSA)) {
|
| + WebPRescalerDspInitMSA();
|
| + }
|
| +#endif
|
| }
|
| rescaler_last_cpuinfo_used = VP8GetCPUInfo;
|
| }
|
|
|