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

Michel Dänzer michel at daenzer.net
Thu Mar 10 03:57:11 UTC 2016


On 09.03.2016 20:35, Marek Olšák wrote:
> On Wed, Mar 9, 2016 at 4:28 AM, Michel Dänzer <michel at daenzer.net> wrote:
>> 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?
> 
> Honestly I have no idea. Why wouldn't it?

clang seems picky about code which looks like a NULL pointer
dereference, even if there's no actual dereference happening.


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


More information about the mesa-dev mailing list