OSDN Git Service

i965/draw: Delay when we get the bo for vertex buffers
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 18 May 2016 04:42:49 +0000 (21:42 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 24 May 2016 02:12:34 +0000 (19:12 -0700)
commit8892519751f5a38e12dd64e3fef3976c53eb9e86
treed52d111b1e13186dfda177eea076a57b28b51997
parenta01a1eb9e48196a5dde37675c51d294b31c32728
i965/draw: Delay when we get the bo for vertex buffers

The previous code got the BO the first time we encountered it.  However,
this can potentially lead to problems if the BO is used for multiple arrays
with the same buffer object because the range we declare as busy may not be
quite right.  By delaying the call to intel_bufferobj_buffer, we can ensure
that we have the full range for the given buffer.

Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_draw_upload.c