[FFmpeg-cvslog] swscale/ppc: disable YUV2RGB AltiVec acceleration

Sean McGovern git at videolan.org
Mon Dec 2 04:28:01 EET 2024


ffmpeg | branch: master | Sean McGovern <gseanmcg at gmail.com> | Thu Nov 28 14:52:16 2024 -0500| [b9eaf6e05c2ca16d94869e0263236dbdac752400] | committer: Michael Niedermayer

swscale/ppc: disable YUV2RGB AltiVec acceleration

The FATE test 'checkasm-sw_yuv2rgb' currently fails on this platform,
in both little- and big-endian configurations with AltiVec enabled.

Disable it for the time being.

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b9eaf6e05c2ca16d94869e0263236dbdac752400
---

 libswscale/ppc/yuv2rgb_altivec.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/libswscale/ppc/yuv2rgb_altivec.c b/libswscale/ppc/yuv2rgb_altivec.c
index 57574c4ab3..ce339747af 100644
--- a/libswscale/ppc/yuv2rgb_altivec.c
+++ b/libswscale/ppc/yuv2rgb_altivec.c
@@ -558,6 +558,13 @@ av_cold SwsFunc ff_yuv2rgb_init_ppc(SwsInternal *c)
         if ((c->opts.src_h & 0x1) != 0)
             return NULL;
 
+/*
+ * The below accelerations for YUV2RGB are known broken.
+ * See: 'fate-checkasm-sw_yuv2rgb' with --enable-altivec
+ * They are disabled for the moment, until such time as
+ * they can be repaired.
+ */
+#if 0
         switch (c->opts.dst_format) {
         case AV_PIX_FMT_RGB24:
             av_log(c, AV_LOG_WARNING, "ALTIVEC: Color Space RGB24\n");
@@ -579,6 +586,7 @@ av_cold SwsFunc ff_yuv2rgb_init_ppc(SwsInternal *c)
             return altivec_yuv2_bgra;
         default: return NULL;
         }
+#endif /* disabled YUV2RGB acceleration */
         break;
 
     case AV_PIX_FMT_UYVY422:



More information about the ffmpeg-cvslog mailing list