drm/vc4: Add get/set tiling ioctls.
authorEric Anholt <eric@anholt.net>
Thu, 8 Jun 2017 00:13:36 +0000 (17:13 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 15 Jun 2017 23:02:45 +0000 (16:02 -0700)
commit83753117f1de4f6ef7588fac9545065eed1e85e2
tree1471f2539093b056b46311390fc8555869913352
parent98830d91da082b0285d35bdf5b5ae98decac7df6
drm/vc4: Add get/set tiling ioctls.

This allows mesa to set the tiling format for a BO and have that
tiling format be respected by mesa on the other side of an
import/export (and by vc4 scanout in the kernel), without defining a
protocol to pass the tiling through userspace.

Signed-off-by: Eric Anholt <eric@anholt.net>
Link: http://patchwork.freedesktop.org/patch/msgid/20170608001336.12842-2-eric@anholt.net
Acked-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vc4/vc4_bo.c
drivers/gpu/drm/vc4/vc4_drv.c
drivers/gpu/drm/vc4/vc4_drv.h
drivers/gpu/drm/vc4/vc4_kms.c
include/uapi/drm/vc4_drm.h