summaryrefslogtreecommitdiff
path: root/pcr/reicast-git/update-softrend.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/reicast-git/update-softrend.patch')
-rw-r--r--pcr/reicast-git/update-softrend.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/pcr/reicast-git/update-softrend.patch b/pcr/reicast-git/update-softrend.patch
new file mode 100644
index 000000000..66e2c8bde
--- /dev/null
+++ b/pcr/reicast-git/update-softrend.patch
@@ -0,0 +1,12 @@
+diff -Nur a/core/rend/soft/softrend.cpp b/core/rend/soft/softrend.cpp
+--- a/core/rend/soft/softrend.cpp 2016-05-18 07:26:32.058143101 -0300
++++ b/core/rend/soft/softrend.cpp 2016-05-18 12:24:35.403930238 -0300
+@@ -1164,7 +1164,7 @@
+
+ //R coefs should be adjusted to match pixel format
+ INLINE __m128 shuffle_pixel(__m128 v) {
+- return (__m128&)_mm_shuffle_epi8((__m128i&)v, _mm_set_epi8(R(0x80,2,1, 0)));
++ return _mm_cvtepi32_ps(_mm_shuffle_epi8(_mm_cvtps_epi32(v), _mm_set_epi8(R(0x80, 2, 1, 0))));
+ }
+
+ virtual void Present() {