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)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Wed, 13 Feb 2013 17:38:42 +0000 (18:38 +0100)
commit4a0423e1bd2ba287f7c0599d1a9b80d9206f14cb
treefc853a0d21f673a006e302d2dcd7cad5a5f52b22
parente582e35227adefccdfa5954008ee8543d5d81fcf
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>
(cherry picked from commit 7da3a947c72111dfb605781be6c0d61423b56e76)
src/gallium/auxiliary/draw/draw_pt_fetch.c