etnaviv: drm: add softpin interface

Graphics / Mesa 3D Graphics Library / Mesa - Lucas Stach [pengutronix.de] - 18 October 2019 17:05 EDT

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.

0bdf5420f1e etnaviv: drm: add softpin interface
src/etnaviv/drm/etnaviv_bo.c | 11 +++++++++++
src/etnaviv/drm/etnaviv_cmd_stream.c | 28 +++++++++++++++++++++-------
src/etnaviv/drm/etnaviv_device.c | 21 +++++++++++++++++++++
src/etnaviv/drm/etnaviv_drmif.h | 5 +++++
src/etnaviv/drm/etnaviv_priv.h | 5 +++++
5 files changed, 63 insertions(+), 7 deletions(-)

Upstream: cgit.freedesktop.org


  • Share