]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: Convert ttm_buffer_object_init to use ttm_placement
authorJerome Glisse <jglisse@redhat.com>
Thu, 10 Dec 2009 16:16:27 +0000 (17:16 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 11 Dec 2009 04:09:05 +0000 (14:09 +1000)
commit4b3b1d095cd497d0449ce8e4f482efc0db267612
tree4a96a67c6bc9694036a95aafd4004c9e9b89eadc
parent7190e245946871187c9b28a9d46590f3a6eea691
drm/ttm: Convert ttm_buffer_object_init to use ttm_placement

Convert ttm_buffer_object_init to use struct ttm_placement and
rename to ttm_bo_init for consistency with function naming. This
allow to give more complex placement at buffer creation. For
instance you ask to allocate bo into vram first but if there is
not enough vram you can give system as a second possible
placement. It also allow to create buffer in a specific range.

Also rename ttm_buffer_object_validate to ttm_bo_validate.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_bo.c
include/drm/ttm/ttm_bo_api.h