From aeb53622814d340323c766dd33e1dd9a25f33e7a Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Mon, 17 Dec 2007 14:36:31 -0500 Subject: [PATCH] i965: index the destination offset with regards to the current index --- src/mesa/pipe/i965simple/brw_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/pipe/i965simple/brw_state.c b/src/mesa/pipe/i965simple/brw_state.c index e7f5a27a380..20088536549 100644 --- a/src/mesa/pipe/i965simple/brw_state.c +++ b/src/mesa/pipe/i965simple/brw_state.c @@ -289,7 +289,7 @@ static void brw_set_vertex_element(struct pipe_context *pipe, el.vep.ve0.valid = 1; el.vep.ve0.vertex_buffer_index = element->vertex_buffer_index; - el.vep.ve1.dst_offset = element->dst_offset; + el.vep.ve1.dst_offset = index * 4; el.vep.ve1.vfcomponent3 = BRW_VFCOMPONENT_STORE_SRC; el.vep.ve1.vfcomponent2 = BRW_VFCOMPONENT_STORE_SRC; el.vep.ve1.vfcomponent1 = BRW_VFCOMPONENT_STORE_SRC; -- 2.30.2