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.romanick@intel.com>
Cc: Paul Berry <stereotype441@gmail.com>
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++) {