[Mesa-dev,v3] i965: Enable vertex streams up to MAX_VERTEX_STREAMS.

Submitted by Iago Toral Quiroga on June 19, 2014, 12:32 p.m.

Details

Message ID 1403181141-15627-1-git-send-email-itoral@igalia.com
State Accepted
Commit 5b3492fa3ff1738fffbc8d05cf39b6e10da3dc39
Headers show

Not browsing as part of any series.

Commit Message

Iago Toral Quiroga June 19, 2014, 12:32 p.m.
---

I guess this was an implicit reviewed-by with this change, but anyway... :)

 src/mesa/drivers/dri/i965/brw_context.c | 4 ++++
 1 file changed, 4 insertions(+)

Patch hide | download patch | download mbox

diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index cfb0be0..e168b6d 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);
 }
 
 /**

Comments

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>

On 06/19/2014 05:32 AM, Iago Toral Quiroga wrote:
> ---
> 
> I guess this was an implicit reviewed-by with this change, but anyway... :)
> 
>  src/mesa/drivers/dri/i965/brw_context.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
> index cfb0be0..e168b6d 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);
>  }
>  
>  /**
>