i965: Don't request GLSL IR lowering of gl_VertexID
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 18 Oct 2017 15:59:47 +0000 (08:59 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 29 Mar 2018 21:16:07 +0000 (14:16 -0700)
Let the lowering in NIR handle it instead.

This hurts one shader that occurs twice in shader-db (SynMark GSCloth)
on IVB and HSW.  No other shaders or platforms were affected.

total cycles in shared programs: 253438422 -> 253438426 (0.00%)
cycles in affected programs: 412 -> 416 (0.97%)
helped: 0
HURT: 2

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Antia Puentes <apuentes@igalia.com>
src/mesa/drivers/dri/i965/brw_context.c

index fca5c8e307221405598164ccb72064286598135c..4e37425099df80cae3b96fce956851c7535c6f7c 100644 (file)
@@ -595,7 +595,6 @@ brw_initialize_context_constants(struct brw_context *brw)
       ctx->Const.QuadsFollowProvokingVertexConvention = false;
 
    ctx->Const.NativeIntegers = true;
-   ctx->Const.VertexID_is_zero_based = true;
 
    /* Regarding the CMP instruction, the Ivybridge PRM says:
     *