Commit 8dcf131f authored by Alejandro Piñeiro's avatar Alejandro Piñeiro
Browse files

glsl/standalone: set MaxUniformBufferBindings



Used to handle how many ubo you can define on the context. Minimimum
defined as 36 on ARB_uniform_buffer_object spec, up to 84 on OpenGL
4.6 (12 per stage at each moment).
Reviewed-by: default avatarIan Romanick <ian.d.romanick@intel.com>
parent 937b2105
......@@ -229,6 +229,7 @@ initialize_context(struct gl_context *ctx, gl_api api)
ctx->Const.MaxLights = 8;
ctx->Const.MaxTextureCoordUnits = 8;
ctx->Const.MaxTextureUnits = 2;
ctx->Const.MaxUniformBufferBindings = 84;
ctx->Const.Program[MESA_SHADER_VERTEX].MaxAttribs = 16;
ctx->Const.Program[MESA_SHADER_VERTEX].MaxTextureImageUnits = 16;
......@@ -262,6 +263,7 @@ initialize_context(struct gl_context *ctx, gl_api api)
ctx->Const.MaxLights = 8;
ctx->Const.MaxTextureCoordUnits = 8;
ctx->Const.MaxTextureUnits = 2;
ctx->Const.MaxUniformBufferBindings = 84;
ctx->Const.Program[MESA_SHADER_VERTEX].MaxAttribs = 16;
ctx->Const.Program[MESA_SHADER_VERTEX].MaxTextureImageUnits = 16;
......@@ -303,6 +305,7 @@ initialize_context(struct gl_context *ctx, gl_api api)
ctx->Const.MaxLights = 0;
ctx->Const.MaxTextureCoordUnits = 0;
ctx->Const.MaxTextureUnits = 0;
ctx->Const.MaxUniformBufferBindings = 84;
ctx->Const.Program[MESA_SHADER_VERTEX].MaxAttribs = 16;
ctx->Const.Program[MESA_SHADER_VERTEX].MaxTextureImageUnits = 16;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment