[Mesa-dev] [PATCH 1/5] include/GL: add mesa_glinterop.h for OpenGL-OpenCL interop (v3)

Michel Dänzer michel at daenzer.net
Thu Mar 10 08:34:38 UTC 2016


On 10.03.2016 02:11, Marek Olšák wrote:
> On Wed, Mar 9, 2016 at 4:31 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
>> On 8 March 2016 at 22:29, Marek Olšák <maraeo at gmail.com> wrote:
>>
>>> Actually, I don't see how the version number would make it any better
>>> for the structures, but returning the version number by
>>> QueryDeviceInfo would be useful for the caller to know what to expect
>>> if Mesa version < caller version. The sizes are still useful if Mesa
>>> version > caller version.
>>>
>> If any of this is an issue, then the whole DRI model just won't work ;-)
> 
> The DRI extension versions only determine the number of function
> callbacks, not function parameters and return values. This interop
> thing is a lot more complicated than that, since it allows the "in"
> and "out" structures to grow, and different rules apply to each. Also,
> the implementation of DRI extensions allocates the structures, while
> in the interop the user allocates the structures. It's a totally
> different model.

BTW, any particular reason against allocating the memory for the out
structs in the callees? It seems like that could simplify things quite a
bit.


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


More information about the mesa-dev mailing list