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)
commit09855acb1c2e3779f25317ec9a8ffe1b1784a4a8
tree4a96a67c6bc9694036a95aafd4004c9e9b89eadc
parent4361e52ad0372e6fd2240a2207b49a4de1f45ca9
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