In get_vertex(), slot was computed using & 31. Replace with % VCACHE_SIZE.
authorBrian <brian.paul@tungstengraphics.com>
Tue, 23 Oct 2007 18:32:02 +0000 (12:32 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 23 Oct 2007 18:32:02 +0000 (12:32 -0600)
commit40e46d0727920dffdcc23aba150aa3c37c6ecf65
treec748ed3c49bf9c1bcbc367d1c33b4e53f9b86a99
parentbe049999829d21a1c9ec9a2c616e99186208266b
In get_vertex(), slot was computed using & 31.  Replace with % VCACHE_SIZE.

Also, assert that index is not too large before indexing array.
src/mesa/pipe/draw/draw_vertex_cache.c