Module: Mesa Branch: master Commit: f7debd4a3e672e684fc40b3c440f0c4b6301f790 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f7debd4a3e672e684fc40b3c440f0c4b6301f790
Author: Rob Clark <[email protected]> Date: Sat May 17 13:50:10 2014 -0400 freedreno: fix index buffer offset Signed-off-by: Rob Clark <[email protected]> --- src/gallium/drivers/freedreno/freedreno_draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/freedreno/freedreno_draw.c b/src/gallium/drivers/freedreno/freedreno_draw.c index 1289bb4..e3c8cc8 100644 --- a/src/gallium/drivers/freedreno/freedreno_draw.c +++ b/src/gallium/drivers/freedreno/freedreno_draw.c @@ -71,7 +71,7 @@ fd_draw_emit(struct fd_context *ctx, struct fd_ringbuffer *ring, idx_bo = fd_resource(idx->buffer)->bo; idx_type = size2indextype(idx->index_size); idx_size = idx->index_size * info->count; - idx_offset = idx->offset; + idx_offset = idx->offset + (info->start * idx->index_size); src_sel = DI_SRC_SEL_DMA; } else { idx_bo = NULL; _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
