[Scummvm-git-logs] scummvm master -> 1acc57e15c2106a19c6365f2f503c27a7df8bda0
fracturehill
noreply at scummvm.org
Sun Nov 19 16:49:54 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
1acc57e15c AGS: Fix 4bpp->2bpp conversion in AVX2 path
Commit: 1acc57e15c2106a19c6365f2f503c27a7df8bda0
https://github.com/scummvm/scummvm/commit/1acc57e15c2106a19c6365f2f503c27a7df8bda0
Author: Kaloyan Chehlarski (strahy at outlook.com)
Date: 2023-11-19T18:49:32+02:00
Commit Message:
AGS: Fix 4bpp->2bpp conversion in AVX2 path
This fixes the broken text outlines in Maniac Mansion Deluxe
Changed paths:
engines/ags/lib/allegro/surface_avx2.cpp
diff --git a/engines/ags/lib/allegro/surface_avx2.cpp b/engines/ags/lib/allegro/surface_avx2.cpp
index f9fb1f88f67..d5cbc8716b4 100644
--- a/engines/ags/lib/allegro/surface_avx2.cpp
+++ b/engines/ags/lib/allegro/surface_avx2.cpp
@@ -58,7 +58,8 @@ static inline __m256i simd4BppTo2Bpp(__m256i pixels) {
x = _mm256_or_si256(x, _mm256_slli_epi32(_mm256_srli_epi32(_mm256_and_si256(pixels, _mm256_set1_epi32(0x00ff0000)), 16+3), 11));
x = _mm256_slli_epi32(x, 16);
x = _mm256_srai_epi32(x, 16);
- return _mm256_packs_epi32(x, _mm256_setzero_si256());
+ x = _mm256_packs_epi32(x, _mm256_setzero_si256());
+ return _mm256_permute4x64_epi64(x, _MM_SHUFFLE(3, 1, 2, 0));
}
static inline __m256i rgbBlendSIMD2Bpp(__m256i srcCols, __m256i destCols, __m256i alphas) {
More information about the Scummvm-git-logs
mailing list