drm/etnaviv: submit support for in-fences
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 2 Mar 2017 15:05:45 +0000 (16:05 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Wed, 29 Mar 2017 14:17:46 +0000 (16:17 +0200)
commit9ad59fea162c139f62335f0ca0ce1fdf4f82bd91
tree9d8b53d40a58256c1b8eaed034b3a84cfbbeb376
parentbcdfb5e56dc539506f72e8087c993af1f7ff06eb
drm/etnaviv: submit support for in-fences

Loosely based on commit f0a42bb5423a ("drm/msm: submit support for
in-fences"). Unfortunately, struct drm_etnaviv_gem_submit doesn't have
a flags field yet, so we have to extend the structure and trust that
drm_ioctl will clear the flags for us if an older userspace only submits
part of the struct.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Reviewed-by: Sumit Semwal <sumit.semwal@linaro.org>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/Kconfig
drivers/gpu/drm/etnaviv/etnaviv_gem.h
drivers/gpu/drm/etnaviv/etnaviv_gem_submit.c
drivers/gpu/drm/etnaviv/etnaviv_gpu.c
drivers/gpu/drm/etnaviv/etnaviv_gpu.h
include/uapi/drm/etnaviv_drm.h