aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/libxine
diff options
context:
space:
mode:
authornox <nox@FreeBSD.org>2013-10-24 05:33:06 +0800
committernox <nox@FreeBSD.org>2013-10-24 05:33:06 +0800
commitbaed90c18859850e46bae5e361d64f1a5319cd1a (patch)
tree361238e5c498e88e9e8711bfcd79d8b4447b0cd5 /multimedia/libxine
parent49ea905c5df70f1d24db6dd23996262d61f8ede8 (diff)
downloadfreebsd-ports-gnome-baed90c18859850e46bae5e361d64f1a5319cd1a.tar.gz
freebsd-ports-gnome-baed90c18859850e46bae5e361d64f1a5319cd1a.tar.zst
freebsd-ports-gnome-baed90c18859850e46bae5e361d64f1a5319cd1a.zip
(Attempt to) fix build on i386 by readding equivalent patch from
ports/181786 that was lost in the update to 1.2.4 . PR: ports/183248 [1], ports/181786 (related to) Submitted by: Milan Obuch <bsd@dino.sk> [1]
Diffstat (limited to 'multimedia/libxine')
-rw-r--r--multimedia/libxine/files/patch-src-post-deinterlace-plugins-greedy2frame_template_sse2.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/multimedia/libxine/files/patch-src-post-deinterlace-plugins-greedy2frame_template_sse2.c b/multimedia/libxine/files/patch-src-post-deinterlace-plugins-greedy2frame_template_sse2.c
new file mode 100644
index 000000000000..9a489dd7b2e8
--- /dev/null
+++ b/multimedia/libxine/files/patch-src-post-deinterlace-plugins-greedy2frame_template_sse2.c
@@ -0,0 +1,28 @@
+--- src/post/deinterlace/plugins/greedy2frame_template_sse2.c.orig
++++ src/post/deinterlace/plugins/greedy2frame_template_sse2.c
+@@ -174,8 +174,8 @@ static void DeinterlaceGreedy2Frame_SSE2
+ */
+ "movdqa (%2), %%xmm1 \n\t" /* xmm1 = T1 */
+ "movdqa (%3), %%xmm0 \n\t" /* xmm0 = T0 */
+- "movdqa (%q4,%2), %%xmm3 \n\t" /* xmm3 = B1 */
+- "movdqa (%q4,%3), %%xmm2 \n\t" /* xmm2 = B0 */
++ "movdqa (%2,%4), %%xmm3 \n\t" /* xmm3 = B1 */
++ "movdqa (%3,%4), %%xmm2 \n\t" /* xmm2 = B0 */
+
+ /* calculate |T1-T0| keep T1 put result in xmm5 */
+ "movdqa %%xmm1, %%xmm5 \n\t"
+@@ -192,11 +192,11 @@ static void DeinterlaceGreedy2Frame_SSE2
+ "pcmpgtb %0, %%xmm5 \n\t"
+ "pcmpeqd %%xmm7, %%xmm5 \n\t"
+
+- "prefetcht0 64(%q4,%2) \n\t"
+- "prefetcht0 64(%q4,%3) \n\t"
++ "prefetcht0 64(%2,%4) \n\t"
++ "prefetcht0 64(%3,%4) \n\t"
+ :
+ : "m" (GreedyTwoFrameThreshold128),
+- "m" (*Destc), "r" (T1), "r" (T0), "r" (Pitch) );
++ "m" (*Destc), "r" (T1), "r" (T0), "r" ((register_t)Pitch) );
+
+ asm volatile (
+ /* calculate |B1-B0| keep B1 put result in xmm4 */