]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1793937fdb3165dd0491a11367de14719cf0a00a
tree1471f2539093b056b46311390fc8555869913352
parent8653cf8cd8aba1a714b7277986982d51e86b8f17
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