Commit 0ba3de2a authored by Alejandro Piñeiro's avatar Alejandro Piñeiro
Browse files

glsl/standalone: set MaxVertexStreams



ARB_transform_feedback3 sets a minimum of 1, ARB_gpu_shader5 a minimum
of 4. It shouldn't matter too much, so choosing the later.
Reviewed-by: default avatarIan Romanick <ian.d.romanick@intel.com>
parent 8dcf131f
...@@ -230,6 +230,7 @@ initialize_context(struct gl_context *ctx, gl_api api) ...@@ -230,6 +230,7 @@ initialize_context(struct gl_context *ctx, gl_api api)
ctx->Const.MaxTextureCoordUnits = 8; ctx->Const.MaxTextureCoordUnits = 8;
ctx->Const.MaxTextureUnits = 2; ctx->Const.MaxTextureUnits = 2;
ctx->Const.MaxUniformBufferBindings = 84; ctx->Const.MaxUniformBufferBindings = 84;
ctx->Const.MaxVertexStreams = 4;
ctx->Const.Program[MESA_SHADER_VERTEX].MaxAttribs = 16; ctx->Const.Program[MESA_SHADER_VERTEX].MaxAttribs = 16;
ctx->Const.Program[MESA_SHADER_VERTEX].MaxTextureImageUnits = 16; ctx->Const.Program[MESA_SHADER_VERTEX].MaxTextureImageUnits = 16;
...@@ -264,6 +265,7 @@ initialize_context(struct gl_context *ctx, gl_api api) ...@@ -264,6 +265,7 @@ initialize_context(struct gl_context *ctx, gl_api api)
ctx->Const.MaxTextureCoordUnits = 8; ctx->Const.MaxTextureCoordUnits = 8;
ctx->Const.MaxTextureUnits = 2; ctx->Const.MaxTextureUnits = 2;
ctx->Const.MaxUniformBufferBindings = 84; ctx->Const.MaxUniformBufferBindings = 84;
ctx->Const.MaxVertexStreams = 4;
ctx->Const.Program[MESA_SHADER_VERTEX].MaxAttribs = 16; ctx->Const.Program[MESA_SHADER_VERTEX].MaxAttribs = 16;
ctx->Const.Program[MESA_SHADER_VERTEX].MaxTextureImageUnits = 16; ctx->Const.Program[MESA_SHADER_VERTEX].MaxTextureImageUnits = 16;
...@@ -306,6 +308,7 @@ initialize_context(struct gl_context *ctx, gl_api api) ...@@ -306,6 +308,7 @@ initialize_context(struct gl_context *ctx, gl_api api)
ctx->Const.MaxTextureCoordUnits = 0; ctx->Const.MaxTextureCoordUnits = 0;
ctx->Const.MaxTextureUnits = 0; ctx->Const.MaxTextureUnits = 0;
ctx->Const.MaxUniformBufferBindings = 84; ctx->Const.MaxUniformBufferBindings = 84;
ctx->Const.MaxVertexStreams = 4;
ctx->Const.Program[MESA_SHADER_VERTEX].MaxAttribs = 16; ctx->Const.Program[MESA_SHADER_VERTEX].MaxAttribs = 16;
ctx->Const.Program[MESA_SHADER_VERTEX].MaxTextureImageUnits = 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