etnaviv: drm: add softpin interface
authorLucas Stach <l.stach@pengutronix.de>
Fri, 2 Aug 2019 12:48:09 +0000 (14:48 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 18 Oct 2019 17:05:21 +0000 (19:05 +0200)
commit0bdf5420f1ef7174fc81f57c307cd446bb673fc8
treed85426fd3b1a7b6858851dc6f978ac0a1690ddb7
parente5cc66dfad0a811338ef088b9b4be17cadc01dea
etnaviv: drm: add softpin interface

If softpin is available on the kernel side, we transparently replace the
relocs with self-managed GPU virtual addresses. This allows to skip some
work at the kernel side, as it doesn't need to touch the command stream
anymore before submitting it to the hardware.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Jonathan Marek <jonathan@marek.ca>
src/etnaviv/drm/etnaviv_bo.c
src/etnaviv/drm/etnaviv_cmd_stream.c
src/etnaviv/drm/etnaviv_device.c
src/etnaviv/drm/etnaviv_drmif.h
src/etnaviv/drm/etnaviv_priv.h