From 1864fcd8c770e172fc6b4c5b4e79d9323e901f32 Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Fri, 9 Aug 2019 16:46:01 +0200 Subject: [PATCH] etnaviv: drm: remove unused etna_cmd_stream_finish It's not used by anything and gets in the way for the refactoring of the flush handling. Signed-off-by: Lucas Stach Reviewed-by: Christian Gmeiner Reviewed-by: Jonathan Marek --- src/etnaviv/drm/etnaviv_cmd_stream.c | 9 --------- src/etnaviv/drm/etnaviv_drmif.h | 1 - 2 files changed, 10 deletions(-) diff --git a/src/etnaviv/drm/etnaviv_cmd_stream.c b/src/etnaviv/drm/etnaviv_cmd_stream.c index 894ad603c08..a38aebf282c 100644 --- a/src/etnaviv/drm/etnaviv_cmd_stream.c +++ b/src/etnaviv/drm/etnaviv_cmd_stream.c @@ -246,15 +246,6 @@ void etna_cmd_stream_flush2(struct etna_cmd_stream *stream, reset_buffer(stream); } -void etna_cmd_stream_finish(struct etna_cmd_stream *stream) -{ - struct etna_cmd_stream_priv *priv = etna_cmd_stream_priv(stream); - - flush(stream, -1, NULL); - etna_pipe_wait(priv->pipe, priv->last_timestamp, 5000); - reset_buffer(stream); -} - void etna_cmd_stream_reloc(struct etna_cmd_stream *stream, const struct etna_reloc *r) { diff --git a/src/etnaviv/drm/etnaviv_drmif.h b/src/etnaviv/drm/etnaviv_drmif.h index 6bdd3cb835a..150eaff1943 100644 --- a/src/etnaviv/drm/etnaviv_drmif.h +++ b/src/etnaviv/drm/etnaviv_drmif.h @@ -146,7 +146,6 @@ uint32_t etna_cmd_stream_timestamp(struct etna_cmd_stream *stream); void etna_cmd_stream_flush(struct etna_cmd_stream *stream); void etna_cmd_stream_flush2(struct etna_cmd_stream *stream, int in_fence_fd, int *out_fence_fd); -void etna_cmd_stream_finish(struct etna_cmd_stream *stream); static inline uint32_t etna_cmd_stream_avail(struct etna_cmd_stream *stream) { -- 2.30.2