]> git.draconx.ca Git - gentoo-draconx.git/blob - x11-drivers/xf86-video-intel/files/0002-Xv-fixup-overlay-stride-confusion.patch
xkeyboard-config: Update capslock-as-control patch.
[gentoo-draconx.git] / x11-drivers / xf86-video-intel / files / 0002-Xv-fixup-overlay-stride-confusion.patch
1 From 3d7723526b181686d62f09f81fba3ccdbf7d2b1a Mon Sep 17 00:00:00 2001
2 From: Daniel Vetter <daniel.vetter@ffwll.ch>
3 Date: Thu, 8 Apr 2010 22:21:01 +0200
4 Subject: [PATCH 2/3] Xv: fixup overlay stride confusion
5
6 For some reason I've made a mess out of the overlay stride constrains.
7 Fix it up.
8
9 Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
10 Tested-by: Calvin Walton <calvin.walton@gmail.com>
11 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=27453
12 ---
13  src/i830_video.c |    7 +++++--
14  1 files changed, 5 insertions(+), 2 deletions(-)
15
16 diff --git a/src/i830_video.c b/src/i830_video.c
17 index 45213cb..c6fd78d 100644
18 --- a/src/i830_video.c
19 +++ b/src/i830_video.c
20 @@ -1348,9 +1348,12 @@ i830_setup_dst_params(ScrnInfoPtr scrn, intel_adaptor_private *adaptor_priv, sho
21                 pitchAlignMask = 3;
22         } else {
23                 if (IS_I965G(intel))
24 -                       pitchAlignMask = 255;
25 +                       /* Actually the alignment is 64 bytes, too. But the
26 +                        * stride must be at least 512 bytes. Take the easy fix
27 +                        * and align on 512 bytes unconditionally. */
28 +                       pitchAlignMask = 511;
29                 else
30 -                       pitchAlignMask = 255;
31 +                       pitchAlignMask = 63;
32         }
33  
34  #if INTEL_XVMC
35 -- 
36 1.6.4.4
37