Module: Mesa
Branch: 9.2
Commit: b62501680208863c71d0adddd8d679f78d19bfa8
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b62501680208863c71d0adddd8d679f78d19bfa8

Author: Chí-Thanh Christopher Nguyễn <[email protected]>
Date:   Fri Nov 29 17:23:36 2013 +0100

st/xorg: Handle new DamageUnregister API which has only one argument

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 files changed, 4 insertions(+), 0 deletions(-)

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.
  */

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to