drm: virtio: add virtio_gpu_translate_format
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 3 Apr 2017 07:08:44 +0000 (09:08 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 4 Apr 2017 08:10:19 +0000 (10:10 +0200)
commitd519cb76181efc78ba67e87b38286fa04d46dfa3
treeb5fcd90ae83a08587bcfd9a5604bf6121ecf1b5c
parent5d5f7c571549099dd03e56cdb46a551da088a106
drm: virtio: add virtio_gpu_translate_format

Factors out code, no functional change.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Tested-by: Laurent Vivier <lvivier@redhat.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170403070845.10793-2-kraxel@redhat.com
drivers/gpu/drm/virtio/virtgpu_drv.h
drivers/gpu/drm/virtio/virtgpu_fb.c
drivers/gpu/drm/virtio/virtgpu_plane.c