diff options
author | Ilia Mirkin <[email protected]> | 2014-12-04 18:56:36 -0500 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2014-12-11 13:54:52 +0000 |
commit | ac8d596498edfcf3785c21b24abd49f71744c8a9 (patch) | |
tree | 7ac031741f1abe125c357200a49d98cf9ea8fd15 /src | |
parent | 112d2fdb179d04de8c3576e60f82cf072ef0fbaa (diff) |
util/primconvert: take ib offset into account
Signed-off-by: Ilia Mirkin <[email protected]>
Cc: "10.4 10.3" <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Rob Clark <[email protected]>
(cherry picked from commit c3bed13604fdcd50324f3535ef38d25f1e08245d)
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/auxiliary/indices/u_primconvert.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |