[Mesa-dev] [PATCH v2 4/7] i965: Let nir lower gl_VertexID instead of the linker

Ian Romanick idr at freedesktop.org
Mon Dec 11 19:37:56 UTC 2017


I sent this patch a few weeks ago.  Since my commit message has
additional information, can we use mine instead?

https://patchwork.freedesktop.org/patch/189441/

On 12/04/2017 12:12 PM, Antia Puentes wrote:
> From: Neil Roberts <nroberts at igalia.com>
> 
> ---
>  src/mesa/drivers/dri/i965/brw_context.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
> index b62852d90c8..249f62847b9 100644
> --- a/src/mesa/drivers/dri/i965/brw_context.c
> +++ b/src/mesa/drivers/dri/i965/brw_context.c
> @@ -585,7 +585,8 @@ brw_initialize_context_constants(struct brw_context *brw)
>        ctx->Const.QuadsFollowProvokingVertexConvention = false;
>  
>     ctx->Const.NativeIntegers = true;
> -   ctx->Const.VertexID_is_zero_based = true;
> +   /* This is lowered by NIR instead */
> +   ctx->Const.VertexID_is_zero_based = false;
>  
>     /* Regarding the CMP instruction, the Ivybridge PRM says:
>      *
> 



More information about the mesa-dev mailing list