etnaviv: drm: remove unused etna_cmd_stream_finish
authorLucas Stach <l.stach@pengutronix.de>
Fri, 9 Aug 2019 14:46:01 +0000 (16:46 +0200)
committerLucas Stach <dev@lynxeye.de>
Fri, 18 Oct 2019 17:03:25 +0000 (17:03 +0000)
It's not used by anything and gets in the way for the refactoring of
the flush handling.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Jonathan Marek <jonathan@marek.ca>
src/etnaviv/drm/etnaviv_cmd_stream.c
src/etnaviv/drm/etnaviv_drmif.h

index 894ad603c0808c09637e68def2cb8f4c8defd75c..a38aebf282cb32f96737b8ad9bfe650435881dc6 100644 (file)
@@ -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)
 {
index 6bdd3cb835a21c459499ec6477e27edeaf02b05a..150eaff1943ee928a84a7ce243e3b2c45ccbecc7 100644 (file)
@@ -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)
 {