aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Stach <[email protected]>2019-08-09 16:46:01 +0200
committerLucas Stach <[email protected]>2019-10-18 17:03:25 +0000
commit1864fcd8c770e172fc6b4c5b4e79d9323e901f32 (patch)
treefb64bcbc1b56dc447e47c205b67ce30608143a8c
parent9e672e4d20fb77e1b39aee29f9e8e76a5c2af68e (diff)
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 <[email protected]> Reviewed-by: Christian Gmeiner <[email protected]> Reviewed-by: Jonathan Marek <[email protected]>
-rw-r--r--src/etnaviv/drm/etnaviv_cmd_stream.c9
-rw-r--r--src/etnaviv/drm/etnaviv_drmif.h1
2 files changed, 0 insertions, 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)
{