/[packages]/updates/6/x11-driver-video-intel/current/SOURCES/0003-sna-Fix-fallback-clearing-of-the-shadow.patch
ViewVC logotype

Contents of /updates/6/x11-driver-video-intel/current/SOURCES/0003-sna-Fix-fallback-clearing-of-the-shadow.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1113335 - (show annotations) (download)
Fri Jul 14 13:05:48 2017 UTC (6 years, 9 months ago) by umeabot
File size: 911 byte(s)
SILENT Branching for Mageia 6
1 From c72bb27a3a68ecc616ce2dc8e9a1d20354504562 Mon Sep 17 00:00:00 2001
2 From: Chris Wilson <chris@chris-wilson.co.uk>
3 Date: Tue, 18 Apr 2017 20:39:24 +0100
4 Subject: [PATCH 2/2] sna: Fix fallback clearing of the shadow
5
6 The size we need to clear is pitch * height, not pitch * width.
7
8 Reported-by: Ilia Mirkin <imirkin@alum.mit.edu>
9 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
10 ---
11 src/sna/sna_display.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14 diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
15 index f69bb4d8..795d099b 100644
16 --- a/src/sna/sna_display.c
17 +++ b/src/sna/sna_display.c
18 @@ -2572,7 +2572,7 @@ static void shadow_clear(struct sna *sna,
19 if (!ok) {
20 void *ptr = kgem_bo_map__gtt(&sna->kgem, bo);
21 if (ptr)
22 - memset(ptr, 0, bo->pitch * crtc->mode.HDisplay);
23 + memset(ptr, 0, bo->pitch * crtc->mode.VDisplay);
24 }
25 sna->mode.shadow_dirty = true;
26 }
27 --
28 2.13.0
29

  ViewVC Help
Powered by ViewVC 1.1.30