Mesa (master): i965: Request lowering gl_VertexID

Kenneth Graunke kwg at kemper.freedesktop.org
Wed Sep 10 18:32:27 UTC 2014


Module: Mesa
Branch: master
Commit: 927f5db46135b3eb63f401833b1e40a3be9ca4e0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=927f5db46135b3eb63f401833b1e40a3be9ca4e0

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Fri Jun 20 16:26:35 2014 -0700

i965: Request lowering gl_VertexID

Fixes the (new) piglit tests gles-3.0-drawarrays-vertexid,
gl-3.0-multidrawarrays-vertexid, and gl-3.2-basevertex-vertexid.

Fixes gles3conform failure in:

ES3-CTS.gtf.GL3Tests.transform_feedback.transform_feedback_vertex_id

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80247
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

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

diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 216b788..619f2d5 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -483,6 +483,7 @@ 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:
     *




More information about the mesa-commit mailing list