summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Clark <robclark@freedesktop.org>2016-06-24 15:11:02 -0400
committerRob Clark <robdclark@gmail.com>2016-07-02 09:00:19 -0400
commit07cfe4e6aa2af646445c3e0f6be5eea60c721094 (patch)
treee35a224b0ab05edd628ce3d3b335c9933808510f
parent1759eb1d197e9794cd43ef86261372da719f4f2b (diff)
glsl/standalone: initialize MaxUserAssignableUniformLocations
Signed-off-by: Rob Clark <robclark@freedesktop.org>
-rw-r--r--src/compiler/glsl/standalone.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/glsl/standalone.cpp b/src/compiler/glsl/standalone.cpp
index 760fe8f01b53..88fe5fde0961 100644
--- a/src/compiler/glsl/standalone.cpp
+++ b/src/compiler/glsl/standalone.cpp
@@ -222,6 +222,10 @@ initialize_context(struct gl_context *ctx, gl_api api)
ctx->Const.GenerateTemporaryNames = true;
ctx->Const.MaxPatchVertices = 32;
+ /* GL_ARB_explicit_uniform_location, GL_MAX_UNIFORM_LOCATIONS */
+ ctx->Const.MaxUserAssignableUniformLocations =
+ 4 * MESA_SHADER_STAGES * MAX_UNIFORMS;
+
ctx->Driver.NewShader = _mesa_new_linked_shader;
}