From c3bed13604fdcd50324f3535ef38d25f1e08245d Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Thu, 4 Dec 2014 18:56:36 -0500 Subject: util/primconvert: take ib offset into account Signed-off-by: Ilia Mirkin Cc: "10.4 10.3" Reviewed-by: Brian Paul Reviewed-by: Rob Clark --- src/gallium/auxiliary/indices/u_primconvert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/auxiliary/indices') diff --git a/src/gallium/auxiliary/indices/u_primconvert.c b/src/gallium/auxiliary/indices/u_primconvert.c index 539ca538cc1..46327819006 100644 --- a/src/gallium/auxiliary/indices/u_primconvert.c +++ b/src/gallium/auxiliary/indices/u_primconvert.c @@ -137,7 +137,7 @@ util_primconvert_draw_vbo(struct primconvert_context *pc, src = ib->user_buffer; if (!src) { src = pipe_buffer_map(pc->pipe, ib->buffer, - PIPE_TRANSFER_READ, &src_transfer); + PIPE_TRANSFER_READ, &src_transfer) + ib->offset; } } else { -- cgit v1.2.3