summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/hint.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-08-06 07:05:19 -0400
committerMarek Olšák <[email protected]>2019-04-01 12:37:52 -0400
commitc5c38e831ee8113cf97fb5308fbb687464ae2f0e (patch)
treec2002b59dd135f4cef33177d06bbe9fa0dda1c21 /src/mesa/main/hint.c
parent3ad2a9b3faa19e29fe1c2a28c712f265ee29423b (diff)
mesa: implement ARB/KHR_parallel_shader_compile
Tested by piglit.
Diffstat (limited to 'src/mesa/main/hint.c')
-rw-r--r--src/mesa/main/hint.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/main/hint.c b/src/mesa/main/hint.c
index 5d0c15d35ab..2bcaeebc4aa 100644
--- a/src/mesa/main/hint.c
+++ b/src/mesa/main/hint.c
@@ -130,6 +130,17 @@ invalid_target:
return;
}
+/* GL_ARB_parallel_shader_compile */
+void GLAPIENTRY
+_mesa_MaxShaderCompilerThreadsKHR(GLuint count)
+{
+ GET_CURRENT_CONTEXT(ctx);
+
+ ctx->Hint.MaxShaderCompilerThreads = count;
+
+ if (ctx->Driver.SetMaxShaderCompilerThreads)
+ ctx->Driver.SetMaxShaderCompilerThreads(ctx, count);
+}
/**********************************************************************/
/***** Initialization *****/
@@ -146,4 +157,5 @@ void _mesa_init_hint( struct gl_context * ctx )
ctx->Hint.TextureCompression = GL_DONT_CARE;
ctx->Hint.GenerateMipmap = GL_DONT_CARE;
ctx->Hint.FragmentShaderDerivative = GL_DONT_CARE;
+ ctx->Hint.MaxShaderCompilerThreads = 0xffffffff;
}