From: Rob Clark Date: Tue, 24 Feb 2015 17:29:06 +0000 (-0500) Subject: freedreno/a4xx: handle index_bias (i.e. base_vertex) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e13398714c29903577601df7cfb4cacfc35e73eb;p=mesa.git freedreno/a4xx: handle index_bias (i.e. base_vertex) Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_draw.c b/src/gallium/drivers/freedreno/a4xx/fd4_draw.c index 29dc2ed002e..b6bf650cfe0 100644 --- a/src/gallium/drivers/freedreno/a4xx/fd4_draw.c +++ b/src/gallium/drivers/freedreno/a4xx/fd4_draw.c @@ -54,7 +54,7 @@ draw_impl(struct fd_context *ctx, struct fd_ringbuffer *ring, fd4_emit_vertex_bufs(ring, emit); OUT_PKT0(ring, REG_A4XX_VFD_INDEX_OFFSET, 2); - OUT_RING(ring, info->start); /* VFD_INDEX_OFFSET */ + OUT_RING(ring, info->indexed ? info->index_bias : info->start); /* VFD_INDEX_OFFSET */ OUT_RING(ring, info->start_instance); /* ??? UNKNOWN_2209 */ OUT_PKT0(ring, REG_A4XX_PC_RESTART_INDEX, 1);