diff options
author | Ian Romanick <[email protected]> | 2013-09-10 10:07:10 -0500 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2013-09-19 16:29:44 -0500 |
commit | 67a2d317353f3917678a4e22228ea52b149a370f (patch) | |
tree | 2c4afb37392ee91ba8bfc157a9632e2e53f5af44 /src/mesa/drivers/dri | |
parent | e1f8c585906c2a6ed463c13813e2a78357ebb341 (diff) |
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 <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i915/i915_context.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |