Re: [Mesa-dev] [PATCH 3/3] mesa: allocate gl_debug_state on demand

2014-02-08 Thread Kenneth Graunke
On 02/07/2014 04:43 PM, Brian Paul wrote: > We don't need to allocate all the state related to GL_ARB_debug_output > until some aspect of that extension is actually needed. > > The sizeof(gl_debug_state) is huge (~285KB on 64-bit systems), not even > counting the 54(!) hash tables and lists that i

[Mesa-dev] [PATCH 3/3] mesa: allocate gl_debug_state on demand

2014-02-07 Thread Brian Paul
We don't need to allocate all the state related to GL_ARB_debug_output until some aspect of that extension is actually needed. The sizeof(gl_debug_state) is huge (~285KB on 64-bit systems), not even counting the 54(!) hash tables and lists that it contains. This change reduces the size of gl_cont