summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-08-27 14:59:19 -0700
committerEric Anholt <eric@anholt.net>2009-09-08 15:12:22 -0700
commitf959ccdfa6c8accd74b6e33040b716645f0a7057 (patch)
tree9be953822b726e1ed230104b6b1db024aea34be9 /src/mesa/drivers/dri/i965
parent92d7ed8a20d4a018ce5324e6537ae7b478b9e5bf (diff)
intel: Add support for ARB_draw_elements_base_vertex.
On the 965, we just drop the value into the primitive packet. On non-945, we rely on the sw tnl code handling it.
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r--src/mesa/drivers/dri/i965/brw_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c
index 4411b24540..42961dd4fe 100644
--- a/src/mesa/drivers/dri/i965/brw_draw.c
+++ b/src/mesa/drivers/dri/i965/brw_draw.c
@@ -142,7 +142,7 @@ static void brw_emit_prim(struct brw_context *brw,
prim_packet.start_vert_location += brw->ib.start_vertex_offset;
prim_packet.instance_count = 1;
prim_packet.start_instance_location = 0;
- prim_packet.base_vert_location = 0;
+ prim_packet.base_vert_location = prim->basevertex;
/* Can't wrap here, since we rely on the validated state. */
brw->no_batch_wrap = GL_TRUE;