i965: Enable vertex streams up to MAX_VERTEX_STREAMS.
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 13 Jun 2014 09:13:24 +0000 (11:13 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 30 Jun 2014 06:08:50 +0000 (08:08 +0200)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_context.c

index 4e97159a98ac7f8f05df4736265b358c6c962823..eff2744a5d24ce58816088de59184ebd24339e68 100644 (file)
@@ -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);
 }
 
 /**