[Mesa-stable] [PATCH][9.2] st/xorg: Handle new DamageUnregister API which has only one argument

Chí-Thanh Christopher Nguyễn chithanh at gentoo.org
Fri Nov 29 08:23:36 PST 2013


This fixes building against the new API in X server 1.15
Taken from xf86-video-modesetting beca4dfb0e4d11d3729214967a1fe56ee5669831 from Keith Packard
---
 src/gallium/state_trackers/xorg/xorg_driver.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gallium/state_trackers/xorg/xorg_driver.c b/src/gallium/state_trackers/xorg/xorg_driver.c
index 9d7713c..4671ba7 100644
--- a/src/gallium/state_trackers/xorg/xorg_driver.c
+++ b/src/gallium/state_trackers/xorg/xorg_driver.c
@@ -62,6 +62,10 @@
 #include "libkms/libkms.h"
 #endif
 
+#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,14,99,2,0)
+#define DamageUnregister(d, dd) DamageUnregister(dd)
+#endif
+
 /*
  * Functions and symbols exported to Xorg via pointers.
  */
-- 
1.8.3.2



More information about the mesa-stable mailing list