summaryrefslogtreecommitdiffstats
path: root/include/drm/via_drm.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2011-02-18 17:59:14 +0100
committerDave Airlie <airlied@redhat.com>2011-02-23 01:32:51 +0100
commitb0b7af1884b7d807a3504804f9825d472de78708 (patch)
treeba9e2dde9575caab3ae6f4b0a1d1ef15c09caf67 /include/drm/via_drm.h
parentdrm: mm: extract node insert helper functions (diff)
downloadlinux-b0b7af1884b7d807a3504804f9825d472de78708.tar.xz
linux-b0b7af1884b7d807a3504804f9825d472de78708.zip
drm: mm: add api for embedding struct drm_mm_node
The old api has a two-step process: First search for a suitable free hole, then allocate from that specific hole. No user used this to do anything clever. So drop it for the embeddable variant of the drm_mm api (the old one retains this ability, for the time being). With struct drm_mm_node embedded, we cannot track allocations anymore by checking for a NULL pointer. So keep track of this and add a small helper drm_mm_node_allocated. Also add a function to move allocations between different struct drm_mm_node. v2: Implement suggestions by Chris Wilson. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/drm/via_drm.h')
0 files changed, 0 insertions, 0 deletions