mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
2.3 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/x11/xfree86/xv-bigendian.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. An obvious (but nevertheless hard to track) typo affecting XV on big-endian
  20. systems with drivers using the generic xf86CopyYUV12ToPacked like: mach64,
  21. neomagic, s3, s3virge, siliconmotion and trident. Only ati/mach64 was tested
  22. on UltraSPARC ...
  23. --- xc/programs/Xserver/hw/xfree86/common/xf86xv.c 2003-11-21 05:59:00.000000000 +0000
  24. +++ xc-working/programs/Xserver/hw/xfree86/common/xf86xv.c 2004-02-10 01:50:39.010000000 +0000
  25. @@ -1979,10 +1979,10 @@
  26. Dst[3] = Y[6] | (Y[7] << 16) | (U[3] << 8) | (V[3] << 24);
  27. #else
  28. /* This assumes a little-endian framebuffer */
  29. - Dst[0] = (Y[0] << 24) | (Y[1] << 8) | (U[0] << 16) | Y[0];
  30. - Dst[1] = (Y[2] << 24) | (Y[3] << 8) | (U[1] << 16) | Y[1];
  31. - Dst[2] = (Y[4] << 24) | (Y[5] << 8) | (U[2] << 16) | Y[2];
  32. - Dst[3] = (Y[6] << 24) | (Y[7] << 8) | (U[3] << 16) | Y[3];
  33. + Dst[0] = (Y[0] << 24) | (Y[1] << 8) | (U[0] << 16) | V[0];
  34. + Dst[1] = (Y[2] << 24) | (Y[3] << 8) | (U[1] << 16) | V[1];
  35. + Dst[2] = (Y[4] << 24) | (Y[5] << 8) | (U[2] << 16) | V[2];
  36. + Dst[3] = (Y[6] << 24) | (Y[7] << 8) | (U[3] << 16) | V[3];
  37. #endif
  38. Dst += 4; Y += 8; V += 4; U += 4;
  39. i -= 4;
  40. @@ -1993,7 +1993,7 @@
  41. Dst[0] = Y[0] | (Y[1] << 16) | (U[0] << 8) | (V[0] << 24);
  42. #else
  43. /* This assumes a little-endian framebuffer */
  44. - Dst[0] = (Y[0] << 24) | (Y[1] << 8) | (U[0] << 16) | Y[0];
  45. + Dst[0] = (Y[0] << 24) | (Y[1] << 8) | (U[0] << 16) | V[0];
  46. #endif
  47. Dst++; Y += 2; V++; U++;
  48. }