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

Antia Puentes apuentes at igalia.com
Mon Dec 4 20:12:50 UTC 2017


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:
     *
-- 
2.14.1



More information about the mesa-dev mailing list