drm/vmwgfx: Add an interface to pin a resource v3
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 3 Mar 2015 07:26:06 +0000 (23:26 -0800)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 5 Aug 2015 12:01:05 +0000 (14:01 +0200)
For screen targets it appears we need to pin surfaces while they are bound
as screen targets, so add a small interface to do that.

v2: Always increase pin_count on pin.
v3: Add missing reservation sem.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c

Simple merge