projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
531efba
)
i965: index the destination offset with regards to the current index
author
Zack Rusin
<zack@tungstengraphics.com>
Mon, 17 Dec 2007 19:36:31 +0000
(14:36 -0500)
committer
Zack Rusin
<zack@tungstengraphics.com>
Mon, 17 Dec 2007 19:36:31 +0000
(14:36 -0500)
src/mesa/pipe/i965simple/brw_state.c
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/i965simple/brw_state.c
b/src/mesa/pipe/i965simple/brw_state.c
index e7f5a27a380d28f46e370346d603041a971d87b1..20088536549d4c014e440cf842cba3d61a47f5b7 100644
(file)
--- 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;