]> git.pld-linux.org Git - packages/xine-lib.git/commitdiff
- updated x32 patch: cast Pitch to size suitable for index register on all ix86/x86_6... auto/th/xine-lib-1.2.6-1
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 8 Oct 2015 17:21:19 +0000 (19:21 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 8 Oct 2015 17:21:19 +0000 (19:21 +0200)
x32.patch

index 047ebcf066e2bd2a616e73b763c2144648457f29..7c2e606b75812b2fb4878e1399d988722ec3a231 100644 (file)
--- a/x32.patch
+++ b/x32.patch
@@ -9,36 +9,31 @@
  #  define REG_a  "rax"
  #  define intarch_t int64_t
  #else
-# is it still needed?
-#--- xine-lib-1.2.3/src/post/deinterlace/plugins/greedy2frame_template_sse2.c~ 2012-06-30 20:02:39.000000000 +0200
-#+++ xine-lib-1.2.3/src/post/deinterlace/plugins/greedy2frame_template_sse2.c  2015-03-09 20:01:38.315802192 +0100
-#@@ -96,7 +96,7 @@
-#                                          int bottom_field, int second_field,
-#                                          int width, int height )
-# {
-#-#if defined(ARCH_X86) || defined(ARCH_X86_64)
-#+#if defined(ARCH_X86) || (defined(ARCH_X86_64) && !defined(__ILP32__))
-#     int Line;
-#     int stride = width * 2;
-#     register uint8_t* M1;
-#--- xine-lib-1.2.3/src/post/deinterlace/plugins/greedy2frame.c~       2012-05-26 22:49:59.000000000 +0200
-#+++ xine-lib-1.2.3/src/post/deinterlace/plugins/greedy2frame.c        2015-03-09 20:03:08.535801540 +0100
-#@@ -59,6 +59,10 @@
-#                                     int bottom_field, int second_field, int width, int height )
-# 
-# {
-#+#if defined(ARCH_X86_64) && defined(__ILP32__)
-#+        DeinterlaceGreedy2Frame_MMXEXT(output, outstride, data,
-#+                                       bottom_field, second_field, width, height );
-#+#else
-#     if (xine_mm_accel() & MM_ACCEL_X86_SSE2) {
-#         if (((uintptr_t)output & 15) || (outstride & 15) ||
-#             width & 7 ||
-#@@ -82,6 +86,7 @@
-#                                        bottom_field, second_field, width, height );
-#         /* could fall back to 3dnow/mmx here too */
-#     }
-#+#endif
-# }
-# 
-# 
+--- xine-lib-1.2.6/src/post/deinterlace/plugins/greedy2frame_template_sse2.c.orig      2013-07-03 22:24:59.000000000 +0200
++++ xine-lib-1.2.6/src/post/deinterlace/plugins/greedy2frame_template_sse2.c   2015-10-08 19:13:42.005108442 +0200
+@@ -174,8 +174,8 @@
+         */
+             "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  (%4,%2), %%xmm3          \n\t" /* xmm3 = B1 */
++            "movdqa  (%4,%3), %%xmm2          \n\t" /* xmm2 = B0 */
+             /* calculate |T1-T0| keep T1 put result in xmm5 */
+             "movdqa  %%xmm1, %%xmm5           \n\t"
+@@ -192,11 +192,11 @@
+             "pcmpgtb %0, %%xmm5                       \n\t"
+             "pcmpeqd %%xmm7, %%xmm5           \n\t"
+-            "prefetcht0  64(%q4,%2)           \n\t"
+-            "prefetcht0  64(%q4,%3)           \n\t"
++            "prefetcht0  64(%4,%2)            \n\t"
++            "prefetcht0  64(%4,%3)            \n\t"
+           :
+           : "m" (GreedyTwoFrameThreshold128),
+-            "m" (*Destc), "r" (T1), "r" (T0), "r" (Pitch) );
++            "m" (*Destc), "r" (T1), "r" (T0), "r" ((size_t)Pitch) );
+           asm volatile (
+             /* calculate |B1-B0| keep B1 put result in xmm4 */
This page took 0.136222 seconds and 4 git commands to generate.