-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thomas Sondergaard wrote:
> Ian Romanick wrote:
> 
>> You'll also need to intercept glGetString and filter out extensions that
>> the tracer doesn't know about.  Otherwise people could call things like
>> CombinerParameteriNV and wonder why it doesn't show up in the log.
>>
>> Hmm...it might be possible to catch the call from the driver to
>> _glapi_add_dispatch and insert the wrapper function there.  Since
>> _glapi_add_dispatch gets a description of the parameters, you could use
>> that to generate the output format.  That might take some work.
> 
> I'm not sure I follow. Catch what call and why?

The XML description in Mesa doesn't know anything about
CombinerParameteriNV, for example.  If you generate code from that
description, you won't have that function.  If an app calls it, your
tracer won't see it.  Right?  So you can either accept that some calls
may not be traced or filter out extensions that the tracer doesn't know
by intercepting glGetString(GL_EXTENSIONS).

Drivers that use the standard libGL on Linux expose new extension
functions by calling a function in libGL called _glapi_add_dispatch.
This gives libGL a description of the function so that it can expose it
to apps that call, for example,
glXGetProcAddress("glCombinerParameteriNV").  With some modifications to
libGL, the tracer could also get the descriptions of new functions
passed to _glapi_add_dispatch.

Of course, that would only help on drivers that use the standard libGL. :(
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEbfKZX1gOwKyEAw8RAqsIAJ9GEAMrc1Qp7yCcPM6htYf8/Vb0uACeMsue
a5q/+zf0kNDjuK/SkFmqe5s=
=bIdN
-----END PGP SIGNATURE-----


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to