i915: Set VertexProgram.MaxOutputComponents and FragmentProgram.MaxInputComponents
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 10 Sep 2013 15:07:10 +0000 (10:07 -0500)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 19 Sep 2013 21:29:44 +0000 (16:29 -0500)
This was the only remaining place in Mesa that sets MaxVaryings without
also setting these values.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/i915/i915_context.c

index b82fc9c25e0db4eec6f42728e6e5c7bb7757e6a2..5907e32b75648b33de6d9d7a64660d1210fe2730 100644 (file)
@@ -194,6 +194,8 @@ i915CreateContext(int api,
    ctx->Const.FragmentProgram.MaxTextureImageUnits = I915_TEX_UNITS;
    ctx->Const.MaxTextureCoordUnits = I915_TEX_UNITS;
    ctx->Const.MaxVarying = I915_TEX_UNITS;
+   ctx->Const.VertexProgram.MaxOutputComponents =
+      ctx->Const.FragmentProgram.MaxInputComponents = ctx->Const.MaxVarying * 4;
    ctx->Const.MaxCombinedTextureImageUnits =
       ctx->Const.VertexProgram.MaxTextureImageUnits +
       ctx->Const.FragmentProgram.MaxTextureImageUnits;