]> git.pld-linux.org Git - packages/mplayer.git/blob - mplayer-alpha.patch
- face the truth: lzo 2 and polypaudio 0.8 are not supported yet
[packages/mplayer.git] / mplayer-alpha.patch
1 --- MPlayer-1.0pre2/libavcodec/alpha/mpegvideo_alpha.c.orig     2003-10-05 18:12:00.000000000 +0200
2 +++ MPlayer-1.0pre2/libavcodec/alpha/mpegvideo_alpha.c  2003-11-23 00:01:14.955663712 +0100
3 @@ -29,6 +29,7 @@
4      uint64_t correction;
5      DCTELEM *orig_block = block;
6      DCTELEM block0;
7 +    int use_mvi;
8  
9      qadd = WORD_VEC((qscale - 1) | 1);
10      qmul = qscale << 1;
11 @@ -49,6 +50,11 @@
12          n_coeffs = s->intra_scantable.raster_end[s->block_last_index[n]];
13      }
14  
15 +#ifdef RUNTIME_CPUDETECT
16 +    use_mvi = (amask(AMASK_MVI) == 0);
17 +#else
18 +    use_mvi = 1;
19 +#endif
20      for(i = 0; i <= n_coeffs; block += 4, i += 4) {
21          uint64_t levels, negmask, zeros, add;
22  
23 @@ -59,13 +65,18 @@
24  #ifdef __alpha_max__
25          /* I don't think the speed difference justifies runtime
26             detection.  */
27 +       /* but - you cannot use MVI if building with runtime detection
28 +        * and at runtime CPU doesn't support it */
29 +       if(use_mvi) {
30          negmask = maxsw4(levels, -1); /* negative -> ffff (-1) */
31          negmask = minsw4(negmask, 0); /* positive -> 0000 (0) */
32 -#else
33 +       } else
34 +#endif
35 +       {
36          negmask = cmpbge(WORD_VEC(0x7fff), levels);
37          negmask &= (negmask >> 1) | (1 << 7);
38          negmask = zap(-1, negmask);
39 -#endif
40 +       }
41  
42          zeros = cmpbge(0, levels);
43          zeros &= zeros >> 1;
44 --- MPlayer-1.0pre2/configure.orig      2003-10-05 17:34:40.000000000 +0200
45 +++ MPlayer-1.0pre2/configure   2003-11-23 00:09:38.111172448 +0100
46 @@ -996,6 +996,11 @@
47    if ppc; then
48      _altivec=yes
49    fi
50 +  if test "$host_arch" = "alpha" -a "$_cc_major" -ge "3"; then
51 +    _def_gcc_mvi_support="#define CAN_COMPILE_ALPHA_MVI 1"
52 +  else
53 +    _def_gcc_mvi_support="#undef CAN_COMPILE_ALPHA_MVI"
54 +  fi
55  fi
56  
57  if x86 && test "$_runtime_cpudetection" = no ; then
This page took 0.024413 seconds and 3 git commands to generate.