Re: [Mesa-dev] [PATCH 13/18] mesa: use accessors for struct gl_debug_state

2014-04-25 Thread Chia-I Wu
On Fri, Apr 25, 2014 at 10:30 PM, Brian Paul wrote: > On 04/25/2014 04:42 AM, Chia-I Wu wrote: >> >> When GL_DEBUG_OUTPUT_SYNCHRONOUS is GL_TRUE, drivers are allowed to log >> debug >> messages from other threads. That requires gl_debug_state to be protected >> by >> a mutex, even when it is a co

Re: [Mesa-dev] [PATCH 13/18] mesa: use accessors for struct gl_debug_state

2014-04-25 Thread Brian Paul
On 04/25/2014 04:42 AM, Chia-I Wu wrote: When GL_DEBUG_OUTPUT_SYNCHRONOUS is GL_TRUE, drivers are allowed to log debug messages from other threads. That requires gl_debug_state to be protected by a mutex, even when it is a context state. While we do not spawn threads in Mesa yet, this commit ma

[Mesa-dev] [PATCH 13/18] mesa: use accessors for struct gl_debug_state

2014-04-25 Thread Chia-I Wu
When GL_DEBUG_OUTPUT_SYNCHRONOUS is GL_TRUE, drivers are allowed to log debug messages from other threads. That requires gl_debug_state to be protected by a mutex, even when it is a context state. While we do not spawn threads in Mesa yet, this commit makes it easier to do when we want to. Since