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:
15ac66e331

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
Alejandro Piñeiro 2018-01-04 17:13:07 +01:00
parent 0ba3de2ad7
commit 2719467eb6
1 changed files with 3 additions and 0 deletions

View File

@ -231,6 +231,7 @@ initialize_context(struct gl_context *ctx, gl_api api)
ctx->Const.MaxTextureUnits = 2;
ctx->Const.MaxUniformBufferBindings = 84;
ctx->Const.MaxVertexStreams = 4;
ctx->Const.MaxTransformFeedbackBuffers = 4;
ctx->Const.Program[MESA_SHADER_VERTEX].MaxAttribs = 16;
ctx->Const.Program[MESA_SHADER_VERTEX].MaxTextureImageUnits = 16;
@ -266,6 +267,7 @@ initialize_context(struct gl_context *ctx, gl_api api)
ctx->Const.MaxTextureUnits = 2;
ctx->Const.MaxUniformBufferBindings = 84;
ctx->Const.MaxVertexStreams = 4;
ctx->Const.MaxTransformFeedbackBuffers = 4;
ctx->Const.Program[MESA_SHADER_VERTEX].MaxAttribs = 16;
ctx->Const.Program[MESA_SHADER_VERTEX].MaxTextureImageUnits = 16;
@ -309,6 +311,7 @@ initialize_context(struct gl_context *ctx, gl_api api)
ctx->Const.MaxTextureUnits = 0;
ctx->Const.MaxUniformBufferBindings = 84;
ctx->Const.MaxVertexStreams = 4;
ctx->Const.MaxTransformFeedbackBuffers = 4;
ctx->Const.Program[MESA_SHADER_VERTEX].MaxAttribs = 16;
ctx->Const.Program[MESA_SHADER_VERTEX].MaxTextureImageUnits = 16;