[Mesa-dev] [PATCH 5/5] st/dri: implement the GL interop DRI extension (v2)

Michel Dänzer michel at daenzer.net
Wed Mar 9 03:28:51 UTC 2016


On 09.03.2016 07:52, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
> 
> v2: - set interop_version
>     - simplify the offset_after macro

[...]

> @@ -1417,6 +1422,254 @@ static const __DRIrobustnessExtension dri2Robustness = {
>     .base = { __DRI2_ROBUSTNESS, 1 }
>  };
>  
> +#define offset_after(type, member) \
> +   offsetof(type, member) + sizeof(((type*)0)->member)

Does this compile with clang?


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer


More information about the mesa-dev mailing list