drm/hisilicon/hibmc: Implement hibmc_dumb_create() with generic helpers
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 3 Dec 2019 08:38:18 +0000 (09:38 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 6 Jan 2020 12:46:03 +0000 (13:46 +0100)
commit9dddcd279ab4ebcf27b81f8f967a58bc3717d1e4
tree4cacc3355785cec4e9f573c1c06c2f36666f4a6d
parent987073278624738573a845c85c4b0db6faaf7be0
drm/hisilicon/hibmc: Implement hibmc_dumb_create() with generic helpers

The hibmc driver aligns scanlines to 16 bytes. By using the new pitch_align
argument of drm_gem_vram_fill_create_dumb(), convert hibmc over.

v2:
* move changes to VRAM helpers into separate patch

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20191203083819.6643-5-tzimmermann@suse.de
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h
drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c