i965/draw: Use the real size for vertex buffers
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 17 May 2016 22:34:07 +0000 (15:34 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 24 May 2016 02:12:34 +0000 (19:12 -0700)
commit7c8dfa78b98a12c1c5f74d11433c8554d4c90657
tree3113cd32c9c7eb769e6ed1d06aad861bc010abb8
parenta643bc62463efbd88e34a85cda50a19d8ace6292
i965/draw: Use the real size for vertex buffers

Previously, we were using the size of the BO which may be substantially
larger than the actual vertex buffer size.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_draw_upload.c
src/mesa/drivers/dri/i965/gen8_draw_upload.c