[Mesa-dev] [PATCH 12/17] glsl: Set VertexProgram.MaxOutputComponents and FragmentProgram.MaxInputComponents in standalone scaffolding

Ian Romanick idr at freedesktop.org
Tue Sep 10 12:10:59 PDT 2013


From: Ian Romanick <ian.d.romanick at intel.com>

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 src/glsl/standalone_scaffolding.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/glsl/standalone_scaffolding.cpp b/src/glsl/standalone_scaffolding.cpp
index 11cd6cd..6dec205 100644
--- a/src/glsl/standalone_scaffolding.cpp
+++ b/src/glsl/standalone_scaffolding.cpp
@@ -116,11 +116,13 @@ void initialize_context_to_defaults(struct gl_context *ctx, gl_api api)
    ctx->Const.VertexProgram.MaxAttribs = 16;
 
    ctx->Const.VertexProgram.MaxUniformComponents = 512;
+   ctx->Const.VertexProgram.MaxOutputComponents = 32;
    ctx->Const.MaxVarying = 8; /* == gl_MaxVaryingFloats / 4 */
    ctx->Const.VertexProgram.MaxTextureImageUnits = 0;
    ctx->Const.MaxCombinedTextureImageUnits = 2;
    ctx->Const.FragmentProgram.MaxTextureImageUnits = 2;
    ctx->Const.FragmentProgram.MaxUniformComponents = 64;
+   ctx->Const.FragmentProgram.MaxInputComponents = 32;
 
    ctx->Const.MaxDrawBuffers = 1;
 
-- 
1.8.1.4



More information about the mesa-dev mailing list