aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2014-06-13 11:13:24 +0200
committerIago Toral Quiroga <[email protected]>2014-06-30 08:08:50 +0200
commit5b3492fa3ff1738fffbc8d05cf39b6e10da3dc39 (patch)
treeb17d32b96b3b3c21db4df5e582e3d472fc7e129b /src/mesa/drivers
parent0b84fa2c52cbaff5963b7d7aa4f27c316fe0a89c (diff)
i965: Enable vertex streams up to MAX_VERTEX_STREAMS.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 4e97159a98a..eff2744a5d2 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -507,6 +507,10 @@ brw_initialize_context_constants(struct brw_context *brw)
ctx->Const.ViewportBounds.Min = -(float)ctx->Const.MaxViewportWidth;
ctx->Const.ViewportBounds.Max = ctx->Const.MaxViewportWidth;
}
+
+ /* ARB_gpu_shader5 */
+ if (brw->gen >= 7)
+ ctx->Const.MaxVertexStreams = MIN2(4, MAX_VERTEX_STREAMS);
}
/**