[Mesa-dev] [PATCH 1/3] mesa: use GLsizeiptrARB, GLintptrARB in bufferobj.c
Mathias.Froehlich at gmx.net
Wed Sep 19 15:08:16 UTC 2018
> gl.xml doesn't seem relevant to this. In GL/glext.h we have:
I thought that somewere at khronos the headers are
generated from the xml. And the new headers are usually
imported then together with the matching xml into mesa?
> typedef khronos_ssize_t GLsizeiptr;
> typedef ptrdiff_t GLsizeiptrARB;
> and in KHR/khrplatform.h:
> typedef unsigned long int khronos_uintptr_t;
> and in stdef.h:
> typedef __PTRDIFF_TYPE__ ptrdiff_t;
> And it looks like __PTRDIFF_TYPE__ is a compiler built-in.
> So, gcc is warning that __PTRDIFF_TYPE__ is not the same as unsigned
> long int. Seems reasonable.
Thanks for the explanation!
Ok, yes I see now that khronos' version of the xml file changed the
data type already to khronos_uintptr_t. So, xml and headers are obviously
not always imported at the same time ...
More information about the mesa-dev