From: Ian Romanick <ian.d.roman...@intel.com> Now that MaxVaryings is > 16, VertexProgram.MaxOutputComponents, GeometryProgram.MaxInputComponents, GeometryProgram.MaxOutputComponents, and FragmentProgram.MaxInputComponents also need to be set.
Signed-off-by: Ian Romanick <ian.d.roman...@intel.com> Cc: Paul Berry <stereotype...@gmail.com> --- Since Paul's "i965/gen6+: Support 128 varying components" series landed before mine, this additional patch is necessary in my series. src/mesa/drivers/dri/i965/brw_context.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 7b38ea3..f60d4df 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -247,8 +247,13 @@ brw_initialize_context_constants(struct brw_context *brw) ctx->Const.DisableGLSLLineContinuations = driQueryOptionb(&brw->optionCache, "disable_glsl_line_continuations"); - if (brw->gen >= 6) + if (brw->gen >= 6) { ctx->Const.MaxVarying = 32; + ctx->Const.VertexProgram.MaxOutputComponents = 128; + ctx->Const.GeometryProgram.MaxInputComponents = 128; + ctx->Const.GeometryProgram.MaxOutputComponents = 128; + ctx->Const.FragmentProgram.MaxInputComponents = 128; + } /* We want the GLSL compiler to emit code that uses condition codes */ for (int i = 0; i < MESA_SHADER_TYPES; i++) { -- 1.8.1.4 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev