Re: [Mesa-dev] [PATCH] glapi: Implement optional dispatch logging

2010-09-09 Thread Jakob Bornecrantz
On Fri, Sep 10, 2010 at 12:16 AM, Eric Anholt wrote: > On Thu,  9 Sep 2010 13:01:59 -0400, Kristian Høgsberg > wrote: >> There's a useful feature buried in glapi to log all API calls to stderr. >> Unfortunately it requires editing the code and then it's enabled >> unconditionally for that build.

Re: [Mesa-dev] [PATCH] glapi: Implement optional dispatch logging

2010-09-09 Thread Eric Anholt
On Thu, 9 Sep 2010 13:01:59 -0400, Kristian Høgsberg wrote: > There's a useful feature buried in glapi to log all API calls to stderr. > Unfortunately it requires editing the code and then it's enabled > unconditionally for that build. This patch builds in API logging for > debug builds and mak

[Mesa-dev] [PATCH] glapi: Implement optional dispatch logging

2010-09-09 Thread Kristian Høgsberg
There's a useful feature buried in glapi to log all API calls to stderr. Unfortunately it requires editing the code and then it's enabled unconditionally for that build. This patch builds in API logging for debug builds and makes it run-time switchable by setting MESA_DEBUG=dispatch. --- src/mapi