intel: Share the implementation of BO unmap between CPU and GTT mappings.
authorEric Anholt <eric@anholt.net>
Fri, 28 Oct 2011 20:13:08 +0000 (13:13 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 29 Oct 2011 19:04:09 +0000 (12:04 -0700)
commitd0ae6837d117881d9f1f9cc12d3f1012b6a46103
tree77c1dd3a829948c906bf807437fe30a1202b117e
parent4cb01eeccfa6a5169edea07c339117cac1f7b261
intel: Share the implementation of BO unmap between CPU and GTT mappings.

Before this, consumers of the libdrm API that might map a buffer
either way had to track which way was chosen at map time to call the
appropriate unmap.  This relaxes that requirement by making
drm_intel_bo_unmap() always appropriate.

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
intel/intel_bufmgr_gem.c