i965/draw: Use the real size for index buffers
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 17 May 2016 22:34:40 +0000 (15:34 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 24 May 2016 02:12:34 +0000 (19:12 -0700)
commitaec10a1d5b4a0802f6f09d1b83c79f53ecd3d29f
tree70d9f9fd944e5d33ab2ce396f22fbf279bce94f8
parent7c8dfa78b98a12c1c5f74d11433c8554d4c90657
i965/draw: Use the real size for index buffers

Previously, we were using the size of the whole BO which may be
substantially larger than the actual index 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