From 9a552f17ece1a35d07794351c57904c5d8d6b505 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Sun, 19 Feb 2023 14:59:34 +1000 Subject: [PATCH] Revert "Use Permute" This reverts commit 907400f2dc426a2f709981dfdf1b47cabca79228. --- .../PixelFormats/PixelBlenders/PorterDuffFunctions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ImageSharp/PixelFormats/PixelBlenders/PorterDuffFunctions.cs b/src/ImageSharp/PixelFormats/PixelBlenders/PorterDuffFunctions.cs index 183f4b59f5..3fe375344e 100644 --- a/src/ImageSharp/PixelFormats/PixelBlenders/PorterDuffFunctions.cs +++ b/src/ImageSharp/PixelFormats/PixelBlenders/PorterDuffFunctions.cs @@ -291,8 +291,8 @@ internal static partial class PorterDuffFunctions public static Vector256 Over(Vector256 destination, Vector256 source, Vector256 blend) { // calculate weights - Vector256 sW = Avx.Permute(source, ShuffleAlphaControl); - Vector256 dW = Avx.Permute(destination, ShuffleAlphaControl); + Vector256 sW = Avx.Shuffle(source, source, ShuffleAlphaControl); + Vector256 dW = Avx.Shuffle(destination, destination, ShuffleAlphaControl); Vector256 blendW = Avx.Multiply(sW, dW); Vector256 dstW = Avx.Subtract(dW, blendW);