Move dummy_read_page from drm_ttm_set_user to drm_ttm_create.
authorKeith Packard <keithp@keithp.com>
Sun, 16 Dec 2007 09:12:07 +0000 (01:12 -0800)
committerKeith Packard <keithp@keithp.com>
Fri, 21 Dec 2007 20:16:29 +0000 (12:16 -0800)
commit881ee70ab7bab5d6f6140dc9bf1e19c7b5844084
tree9048804d2930a7ff8c3cf77dfd9488a81668a9ae
parent6d44f48002c19d67187adb660ef74dd1870d52c2
Move dummy_read_page from drm_ttm_set_user to drm_ttm_create.

I'm hoping to use the dummy_read_page for kernel allocated buffers to avoid
allocating extra pages for read-only buffers (like vertex and batch buffers).
This also eliminates the 'write' parameter to drm_ttm_set_user and just
has DRM_TTM_PAGE_WRITE passed into drm_ttm_create.
linux-core/drm_bo.c
linux-core/drm_objects.h
linux-core/drm_ttm.c