Re: [Mesa-dev] [PATCHv2 08/13] mesa: add infrastructure for threaded shader compilation

2014-08-19 Thread Chia-I Wu
On Thu, Aug 14, 2014 at 4:41 AM, Ian Romanick wrote: > On 07/09/2014 12:47 AM, Chia-I Wu wrote: >> @@ -3489,6 +3508,18 @@ struct gl_constants >> GLfloat MaxFragmentInterpolationOffset; >> >> GLboolean FakeSWMSAA; >> + >> + /* >> +* Defer certain operations to a thread pool. >> +*

Re: [Mesa-dev] [PATCHv2 08/13] mesa: add infrastructure for threaded shader compilation

2014-08-19 Thread Chia-I Wu
On Thu, Aug 14, 2014 at 4:35 AM, Ian Romanick wrote: > On 07/09/2014 12:47 AM, Chia-I Wu wrote: >> Add _mesa_enable_glsl_threadpool to enable the thread pool for a context, and >> add ctx->Const.DeferCompileShader and ctx->Const.DeferLinkProgram to >> fine-control what gets threaded. >> >> Setting

Re: [Mesa-dev] [PATCHv2 08/13] mesa: add infrastructure for threaded shader compilation

2014-08-13 Thread Ian Romanick
On 07/09/2014 12:47 AM, Chia-I Wu wrote: > @@ -3489,6 +3508,18 @@ struct gl_constants > GLfloat MaxFragmentInterpolationOffset; > > GLboolean FakeSWMSAA; > + > + /* > +* Defer certain operations to a thread pool. > +* > +* When DeferLinkProgram is set, these functions must b

Re: [Mesa-dev] [PATCHv2 08/13] mesa: add infrastructure for threaded shader compilation

2014-08-13 Thread Ian Romanick
On 07/09/2014 12:47 AM, Chia-I Wu wrote: > Add _mesa_enable_glsl_threadpool to enable the thread pool for a context, and > add ctx->Const.DeferCompileShader and ctx->Const.DeferLinkProgram to > fine-control what gets threaded. > > Setting DeferCompileShader to true will make _mesa_glsl_compile_sha

Re: [Mesa-dev] [PATCHv2 08/13] mesa: add infrastructure for threaded shader compilation

2014-07-09 Thread Chia-I Wu
On Wed, Jul 9, 2014 at 10:42 PM, Brian Paul wrote: > On 07/09/2014 01:47 AM, Chia-I Wu wrote: >> >> Add _mesa_enable_glsl_threadpool to enable the thread pool for a context, >> and >> add ctx->Const.DeferCompileShader and ctx->Const.DeferLinkProgram to >> fine-control what gets threaded. >> >> Set

Re: [Mesa-dev] [PATCHv2 08/13] mesa: add infrastructure for threaded shader compilation

2014-07-09 Thread Brian Paul
On 07/09/2014 01:47 AM, Chia-I Wu wrote: Add _mesa_enable_glsl_threadpool to enable the thread pool for a context, and add ctx->Const.DeferCompileShader and ctx->Const.DeferLinkProgram to fine-control what gets threaded. Setting DeferCompileShader to true will make _mesa_glsl_compile_shader be e

[Mesa-dev] [PATCHv2 08/13] mesa: add infrastructure for threaded shader compilation

2014-07-09 Thread Chia-I Wu
Add _mesa_enable_glsl_threadpool to enable the thread pool for a context, and add ctx->Const.DeferCompileShader and ctx->Const.DeferLinkProgram to fine-control what gets threaded. Setting DeferCompileShader to true will make _mesa_glsl_compile_shader be executed in a worker thread. The function i