summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/xorg-driver/xf86-video-intel/compat-api-Map-changes-of-DamageUnregister-API-in-1..patch
blob: 3a42d1377c7f857e2d801167bfe155cacafab040 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Upstream-Status: Backport

From 524a45da56e2a052ffafa3887891caa90ba39f76 Mon Sep 17 00:00:00 2001
From: Chris Wilson <chris@chris-wilson.co.uk>
Date: Sat, 5 Oct 2013 18:42:24 +0100
Subject: [PATCH] compat-api: Map changes of DamageUnregister API in 1.14.99.2

Reported-by: Emmanuel Benisty <benisty.e@gmail.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 src/compat-api.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/compat-api.h b/src/compat-api.h
index 8eb46ef..244a486 100644
--- a/src/compat-api.h
+++ b/src/compat-api.h
@@ -162,4 +162,8 @@ static inline void FreePixmap(PixmapPtr pixmap)
 	if ((d)->pScreen->SourceValidate) (d)->pScreen->SourceValidate(d, x, y, w, h)
 #endif
 
+#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,14,99,2,0)
+#define DamageUnregister(d, dd) DamageUnregister(dd)
+#endif
+
 #endif
-- 
1.7.9.5