Mesa (master): glsl/standalone: initialize MaxUserAssignableUniformLocations
Rob Clark
robclark at kemper.freedesktop.org
Sat Jul 2 13:20:01 UTC 2016
Module: Mesa
Branch: master
Commit: 07cfe4e6aa2af646445c3e0f6be5eea60c721094
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=07cfe4e6aa2af646445c3e0f6be5eea60c721094
Author: Rob Clark <robclark at freedesktop.org>
Date: Fri Jun 24 15:11:02 2016 -0400
glsl/standalone: initialize MaxUserAssignableUniformLocations
Signed-off-by: Rob Clark <robclark at freedesktop.org>
---
src/compiler/glsl/standalone.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/compiler/glsl/standalone.cpp b/src/compiler/glsl/standalone.cpp
index 760fe8f..88fe5fd 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;
}
More information about the mesa-commit
mailing list