drm/vmwgfx: consolidate ttm object creation and populate
authorDave Airlie <airlied@redhat.com>
Tue, 4 Aug 2020 02:55:34 +0000 (12:55 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 6 Aug 2020 02:16:22 +0000 (12:16 +1000)
commit56dc01f18d3d002de34f642ce92f730e5d50efa5
tree842aca091554336bf6c73033c040e945a58b379e
parent8e1ba47c60bcd325fdd097cd76054639155e5d2e
drm/vmwgfx: consolidate ttm object creation and populate

These two functions has the same code in them, create a common
helper function instead.

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200804025632.3868079-2-airlied@gmail.com
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_mob.c
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c