]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdc4150cc23056d5ed2e99513e9182991f0ca8e08
tree5f3bb6a46059469b663f4fedf4aa8a5b0a404819
parent33ccb1f75c11f7d35f64f71c40c9afb6ba57b537
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