draw: Properly limit vertex buffer fetches on draw arrays.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 16 Nov 2012 17:09:05 +0000 (17:09 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 4 Dec 2012 19:35:19 +0000 (19:35 +0000)
commit7da3a947c72111dfb605781be6c0d61423b56e76
tree41cb57964dff121c508d9f24c95c0ad9d748cce2
parentd1864273f2fb83c4c2afeb8a3eb84f44ada00b47
draw: Properly limit vertex buffer fetches on draw arrays.

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