drm/i915/gvt: Use common mapping routines for shadow_bb object
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 19 Oct 2016 10:11:46 +0000 (11:11 +0100)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 20 Oct 2016 09:31:34 +0000 (17:31 +0800)
commita28615041ea2d1645143b868cd5ea65e9cf28381
treef2e8ebf87ec903b7709a9578c7628b7fae8e3688
parentbcd0aeded478f1ed6dfbbeafc3e2581c4021a99c
drm/i915/gvt: Use common mapping routines for shadow_bb object

We have the ability to map an object, so use it rather than opencode it
badly. Note that the object remains permanently pinned, this is poor
practise.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/cmd_parser.c
drivers/gpu/drm/i915/gvt/execlist.c