vmwgfx: Implement a proper GMR eviction mechanism
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 26 Oct 2010 19:21:47 +0000 (21:21 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 27 Oct 2010 01:07:46 +0000 (11:07 +1000)
commit135cba0dc399fdd47bd3ae305c1db75fcd77243f
tree3eedcd7c5701dfe05246aca3479ab7396169f2e7
parent8f895da57da80b307efa2f94b5d4caf801e959a5
vmwgfx: Implement a proper GMR eviction mechanism

Use Ben's new range manager hooks to implement a manager for
GMRs that manages ids rather than ranges.
This means we can use the standard TTM code for binding, unbinding and
eviction.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/Makefile
drivers/gpu/drm/vmwgfx/vmwgfx_buffer.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_fb.c
drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c
drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c [new file with mode: 0644]
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c