From 55a3dcf88eec34b0585b02f5f835839d627c8227 Mon Sep 17 00:00:00 2001 From: itzpr3d4t0r Date: Sun, 31 Mar 2024 12:50:48 +0200 Subject: [PATCH] tentative to improve performance --- src_c/simd_blitters_sse2.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src_c/simd_blitters_sse2.c b/src_c/simd_blitters_sse2.c index 988162a97b..3d8862e653 100644 --- a/src_c/simd_blitters_sse2.c +++ b/src_c/simd_blitters_sse2.c @@ -345,8 +345,6 @@ alphablit_alpha_sse2_argb_no_surf_alpha(SDL_BlitInfo *info) mm_src_alpha = _mm_and_si128(mm_src, mm_alpha_mask); mm_dst_alpha = _mm_and_si128(mm_dst, mm_alpha_mask); - __m128i mask = _mm_cmpeq_epi32(mm_dst_alpha, mm_zero); - mm_src_alpha = _mm_srli_si128(mm_src_alpha, 3); mm_dst_alpha = _mm_srli_si128(mm_dst_alpha, 3); mm_res_a = _mm_add_epi16(mm_src_alpha, mm_dst_alpha); @@ -400,9 +398,6 @@ alphablit_alpha_sse2_argb_no_surf_alpha(SDL_BlitInfo *info) mm_res_pixels = _mm_and_si128(mm_res_pixels, mm_rgb_mask); mm_res_pixels = _mm_or_si128(mm_res_pixels, mm_res_a); - mm_res_pixels = - pg_mm_blendv_epi8(mm_res_pixels, mm_src, mask); - _mm_storeu_si128(dstp128, mm_res_pixels); srcp128++; dstp128++;