Commit 2719467e authored by Alejandro Piñeiro's avatar Alejandro Piñeiro
Browse files

glsl/standalone: set MaxTransformFeedbackBuffers

Using 4, as it is the default value on mesa. See mesa/main/config.h
and the following commit that introduced the value:
15ac66e3

Reviewed-by: default avatarIan Romanick <ian.d.romanick@intel.com>
parent 0ba3de2a
...@@ -231,6 +231,7 @@ initialize_context(struct gl_context *ctx, gl_api api) ...@@ -231,6 +231,7 @@ initialize_context(struct gl_context *ctx, gl_api api)
ctx->Const.MaxTextureUnits = 2; ctx->Const.MaxTextureUnits = 2;
ctx->Const.MaxUniformBufferBindings = 84; ctx->Const.MaxUniformBufferBindings = 84;
ctx->Const.MaxVertexStreams = 4; ctx->Const.MaxVertexStreams = 4;
ctx->Const.MaxTransformFeedbackBuffers = 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;
...@@ -266,6 +267,7 @@ initialize_context(struct gl_context *ctx, gl_api api) ...@@ -266,6 +267,7 @@ initialize_context(struct gl_context *ctx, gl_api api)
ctx->Const.MaxTextureUnits = 2; ctx->Const.MaxTextureUnits = 2;
ctx->Const.MaxUniformBufferBindings = 84; ctx->Const.MaxUniformBufferBindings = 84;
ctx->Const.MaxVertexStreams = 4; ctx->Const.MaxVertexStreams = 4;
ctx->Const.MaxTransformFeedbackBuffers = 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;
...@@ -309,6 +311,7 @@ initialize_context(struct gl_context *ctx, gl_api api) ...@@ -309,6 +311,7 @@ initialize_context(struct gl_context *ctx, gl_api api)
ctx->Const.MaxTextureUnits = 0; ctx->Const.MaxTextureUnits = 0;
ctx->Const.MaxUniformBufferBindings = 84; ctx->Const.MaxUniformBufferBindings = 84;
ctx->Const.MaxVertexStreams = 4; ctx->Const.MaxVertexStreams = 4;
ctx->Const.MaxTransformFeedbackBuffers = 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