summaryrefslogtreecommitdiffstats
path: root/src/etnaviv/drm/etnaviv_drmif.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/etnaviv/drm/etnaviv_drmif.h')
-rw-r--r--src/etnaviv/drm/etnaviv_drmif.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/etnaviv/drm/etnaviv_drmif.h b/src/etnaviv/drm/etnaviv_drmif.h
index 7fb01c8a654..ff08ab50dbc 100644
--- a/src/etnaviv/drm/etnaviv_drmif.h
+++ b/src/etnaviv/drm/etnaviv_drmif.h
@@ -154,10 +154,12 @@ static inline uint32_t etna_cmd_stream_avail(struct etna_cmd_stream *stream)
return stream->size - stream->offset - END_CLEARANCE;
}
+void etna_cmd_stream_realloc(struct etna_cmd_stream *stream, size_t n);
+
static inline void etna_cmd_stream_reserve(struct etna_cmd_stream *stream, size_t n)
{
if (etna_cmd_stream_avail(stream) < n)
- etna_cmd_stream_force_flush(stream);
+ etna_cmd_stream_realloc(stream, n);
}
static inline void etna_cmd_stream_emit(struct etna_cmd_stream *stream, uint32_t data)