drm/vmwgfx: Refactor resource management
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 20 Nov 2012 12:19:35 +0000 (12:19 +0000)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Nov 2012 21:47:06 +0000 (07:47 +1000)
commitc0951b797e7d0f2c6b0df2c0e18185c72d0cf1a1
tree5f3bb6a46059469b663f4fedf4aa8a5b0a404819
parentbf6f036848ab2151c2498f11cb7d31a52a95dd5c
drm/vmwgfx: Refactor resource management

Refactor resource management to make it easy to hook up resources
that are backed up by buffers. In particular, resources and their
backing buffers can be evicted and rebound, if supported by the device.
To avoid query deadlocks, the query code is also modified somewhat.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Dmitry Torokhov <dtor@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c