[Mesa-dev] [PATCH 8/9] i965: Let nir lower gl_VertexID instead of the linker

Antia Puentes apuentes at igalia.com
Fri Nov 10 17:53:36 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 19d5a2e3503..01c8e8cb3cf 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -586,7 +586,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