[Mesa-stable] [PATCH 13/13] i965: Request lowering gl_VertexID
Ian Romanick
idr at freedesktop.org
Fri Jun 20 18:01:03 PDT 2014
From: Ian Romanick <ian.d.romanick at intel.com>
Fixes the (new) piglit tests gles-3.0-drawarrays-vertexid,
gl-3.0-multidrawarrays-vertexid, and gl-3.2-basevertex-vertexid.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80247
Cc: "10.2" <mesa-stable at lists.freedesktop.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 cfb0be0..498e164 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -458,6 +458,7 @@ brw_initialize_context_constants(struct brw_context *brw)
ctx->Const.NativeIntegers = true;
ctx->Const.UniformBooleanTrue = 1;
+ ctx->Const.VertexID = gl_VertexID_using_uniform_gl_BaseVertex;
/* From the gen4 PRM, volume 4 page 127:
*
--
1.8.1.4
More information about the mesa-stable
mailing list