Re: [Mesa-dev] COMPSIZE function in OpenGL XML registry

2015-06-11 Thread Shervin Sharifi
Thank you Ian, Jose and Matt. I'll take a look at the pointers you provided. Probably would come back with some more questions. Thanks, Shervin On Wed, Jun 10, 2015 at 3:55 PM, Ian Romanick i...@freedesktop.org wrote: On 06/10/2015 03:05 PM, Shervin Sharifi wrote: Thanks Ian. If I

Re: [Mesa-dev] COMPSIZE function in OpenGL XML registry

2015-06-10 Thread Matt Turner
On Wed, Jun 10, 2015 at 11:25 AM, Shervin Sharifi sherv...@gmail.com wrote: Hi, This may not be the right forum to ask this, but I didn't know of a better forum, so I thought I can ask here. I'm new to OpenGL. I am looking at XML registry for OpenGL and there are some parameters with

[Mesa-dev] COMPSIZE function in OpenGL XML registry

2015-06-10 Thread Shervin Sharifi
Hi, This may not be the right forum to ask this, but I didn't know of a better forum, so I thought I can ask here. I'm new to OpenGL. I am looking at XML registry for OpenGL and there are some parameters with attributes containing a function COMPSIZE (I've pasted an example below). I tried to

Re: [Mesa-dev] COMPSIZE function in OpenGL XML registry

2015-06-10 Thread Ian Romanick
On 06/10/2015 03:05 PM, Shervin Sharifi wrote: Thanks Ian. If I want to implement the actual CompSize function, how should I figure out the details? The way I did it for the GLX protocol code in Mesa is to make a glFoo_compsize function for each GL function that has a variable sized array as

Re: [Mesa-dev] COMPSIZE function in OpenGL XML registry

2015-06-10 Thread Shervin Sharifi
Thank you. I think there should be a way to calculate the size of the memory location pointed by that pointer. For cases where there is no shared memory between the client and the server, the memory contents should be copied back and forth, which means the size of the pointer should be known

Re: [Mesa-dev] COMPSIZE function in OpenGL XML registry

2015-06-10 Thread Ian Romanick
On 06/10/2015 11:25 AM, Shervin Sharifi wrote: Hi, This may not be the right forum to ask this, but I didn't know of a better forum, so I thought I can ask here. I'm new to OpenGL. I am looking at XML registry for OpenGL and there are some parameters with attributes containing a

Re: [Mesa-dev] COMPSIZE function in OpenGL XML registry

2015-06-10 Thread Shervin Sharifi
Thanks Ian. If I want to implement the actual CompSize function, how should I figure out the details? Thanks, Shervin On Wed, Jun 10, 2015 at 2:56 PM, Ian Romanick i...@freedesktop.org wrote: On 06/10/2015 11:25 AM, Shervin Sharifi wrote: Hi, This may not be the right forum to ask

Re: [Mesa-dev] COMPSIZE function in OpenGL XML registry

2015-06-10 Thread Jose Fonseca
I'm not sure what you are trying to accomplish. if you're doing some sort of serialization of OpenGL calls other than GLX, then it might be worthwhile to look at https://github.com/apitrace/apitrace/blob/master/specs/glapi.py