projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d186427
)
draw: Properly limit vertex buffer fetches on draw arrays.
author
José Fonseca
<jfonseca@vmware.com>
Fri, 16 Nov 2012 17:09:05 +0000
(17:09 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Tue, 4 Dec 2012 19:35:19 +0000
(19:35 +0000)
We need to clamp vertex buffer fetch based on its size, not based on the
user specified max index hint.
This matches draw_pt_fetch_run() above.
NOTE: This is a candidate for the stable branches.
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/draw/draw_pt_fetch.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/draw/draw_pt_fetch.c
b/src/gallium/auxiliary/draw/draw_pt_fetch.c
index a6cc1834e6c426bbf43e3bf91b691316f3a3aef7..9fab7b681fb7aaa396b832c862c5a8871a197073 100644
(file)
--- a/
src/gallium/auxiliary/draw/draw_pt_fetch.c
+++ b/
src/gallium/auxiliary/draw/draw_pt_fetch.c
@@
-189,7
+189,7
@@
draw_pt_fetch_run_linear(struct pt_fetch *fetch,
((char *)draw->pt.user.vbuffer[i] +
draw->pt.vertex_buffer[i].buffer_offset),
draw->pt.vertex_buffer[i].stride,
- draw->pt.
user.max_index + draw->pt.user.eltBias
);
+ draw->pt.
max_index
);
}
translate->run( translate,