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)
commited93394c14ba50e3e53ef289116625f0f05f8616
tree9bb6a44980f312aa9cbfea2f7ba34b51a2b0e89e
parentee511a835a681ee147666a0c85b96f8a43aae2d5
drm/vmwgfx: Add an interface to pin a resource v3

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