OSDN Git Service

intel: Do not access pbo's buffer directly when attaching.
authorChia-I Wu <olvaffe@gmail.com>
Thu, 18 Jun 2009 05:42:24 +0000 (13:42 +0800)
committerEric Anholt <eric@anholt.net>
Fri, 19 Jun 2009 23:43:45 +0000 (16:43 -0700)
commitcca30245bd6a5a713f0dc3278c37d9bd1f726e72
tree74d52d855e75c556a6d1a9a346f0c97d075b7f13
parented91389618d05a3f660b34e0bac4be08134af6b7
intel: Do not access pbo's buffer directly when attaching.

pbo might be system buffer based or attached to another region.  Call
intel_bufferobj_buffer to make sure pbo has a buffer of its own.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/intel/intel_regions.c