summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2013-09-18 15:29:00 -0500
committerIan Romanick <[email protected]>2013-09-19 16:29:44 -0500
commite1f8c585906c2a6ed463c13813e2a78357ebb341 (patch)
tree26b0cb21e93b698087c3f202872dfd5bf643078c /src/mesa/drivers
parentd358c6b7006839e66311debfe36509144b0a7f92 (diff)
i965: Set *Program.Max{Input,Output}Components
Now that MaxVaryings is > 16, VertexProgram.MaxOutputComponents, GeometryProgram.MaxInputComponents, GeometryProgram.MaxOutputComponents, and FragmentProgram.MaxInputComponents also need to be set. Signed-off-by: Ian Romanick <[email protected]> Cc: Paul Berry <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 7b38ea37747..f60d4df5d32 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -247,8 +247,13 @@ brw_initialize_context_constants(struct brw_context *brw)
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++) {