[Mesa-dev] [PATCH 06/17] i915: Set VertexProgram.MaxOutputComponents and FragmentProgram.MaxInputComponents
Ian Romanick
idr at freedesktop.org
Tue Sep 10 12:10:53 PDT 2013
From: Ian Romanick <ian.d.romanick at intel.com>
This was the only remaining place in Mesa that sets MaxVaryings withtout
also setting these values.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
src/mesa/drivers/dri/i915/i915_context.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mesa/drivers/dri/i915/i915_context.c b/src/mesa/drivers/dri/i915/i915_context.c
index b82fc9c..5907e32 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;
--
1.8.1.4
More information about the mesa-dev
mailing list