vbo: fix offset in minmax cache key
authorCharmaine Lee <charmainel@vmware.com>
Wed, 30 Aug 2017 21:26:41 +0000 (14:26 -0700)
committerCharmaine Lee <charmainel@vmware.com>
Thu, 31 Aug 2017 06:12:21 +0000 (23:12 -0700)
commit2d93b462b4d978b0da417b35a7470e336bc4e783
tree63f87a06c3f3b788068cac6a29b3404e6d0f71dc
parent15b61dec94ceccd66bcbeb8c22c7f2019de7f173
vbo: fix offset in minmax cache key

Instead of saving primitive offset in the minmax cache key,
save the actual buffer offset which is used in the cache lookup.

Fixes rendering artifact seen with GoogleEarth when run with
VMware driver.

v2: Per Brian's comment, initialize offset to avoid compiler warning.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/vbo/vbo_minmax_index.c