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

Chí-Thanh Christopher Nguyễn chithanh at gentoo.org
Sun Dec 1 13:39:11 PST 2013


Emil Velikov schrieb:
> On 29/11/13 16:23, Chí-Thanh Christopher Nguyễn wrote:
>> This fixes building against the new API in X server 1.15
>> Taken from xf86-video-modesetting beca4dfb0e4d11d3729214967a1fe56ee5669831 from Keith Packard
> Hi Chí-Thanh Christopher Nguyễn,
>
> Are there any Gentoo people actually using the X.Org state tracker ?

Yes, we received bug reports from our users that the compile failed
against 1.14.99.903.
https://bugs.gentoo.org/show_bug.cgi?id=492838

>
> To be on the safe side make sure that you explicitly mention the branch
> within the commit.
>
> Note: this patch is not needed(nor applies) for 10.0 or master, as the
> xorg state tracker was deleted during the 10-devel cycle.

It is indeed only for 9.2 branch, which is why I CC:ed mesa-stable and
put [9.2] into the description. I apologize if that was not enough.

>
> Cc: "9.2" <mesa-stable at lists.freedesktop.org>
>
> ~Emil
>
>> ---
>>  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.
>>   */
>>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev



More information about the mesa-dev mailing list