From: Ian Romanick Date: Tue, 10 Sep 2013 15:07:10 +0000 (-0500) Subject: i915: Set VertexProgram.MaxOutputComponents and FragmentProgram.MaxInputComponents X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=67a2d317353f3917678a4e22228ea52b149a370f;p=mesa.git i915: Set VertexProgram.MaxOutputComponents and FragmentProgram.MaxInputComponents This was the only remaining place in Mesa that sets MaxVaryings without also setting these values. Signed-off-by: Ian Romanick Reviewed-by: Brian Paul Reviewed-by: Marek Olšák Reviewed-by: Paul Berry --- diff --git a/src/mesa/drivers/dri/i915/i915_context.c b/src/mesa/drivers/dri/i915/i915_context.c index b82fc9c25e0..5907e32b756 100644 --- a/src/mesa/drivers/dri/i915/i915_context.c +++ b/src/mesa/drivers/dri/i915/i915_context.c @@ -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;