etnaviv: rework the stream flush to always go through the context flush
authorLucas Stach <l.stach@pengutronix.de>
Fri, 9 Aug 2019 15:11:23 +0000 (17:11 +0200)
committerLucas Stach <dev@lynxeye.de>
Fri, 18 Oct 2019 17:03:25 +0000 (17:03 +0000)
commit1194afdfe3524de686735de7ff25c77dc435fa54
treef3b5001239147f9039838c7a0a4e246ee268c2c6
parent1864fcd8c770e172fc6b4c5b4e79d9323e901f32
etnaviv: rework the stream flush to always go through the context flush

This way we can ensure that the pipe driver tracking of pending resources
stays in sync with the actual command buffer state, even if a space
reservation triggers a forced flush.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Jonathan Marek <jonathan@marek.ca>
src/etnaviv/drm/etnaviv_cmd_stream.c
src/etnaviv/drm/etnaviv_drmif.h
src/etnaviv/drm/etnaviv_priv.h
src/gallium/drivers/etnaviv/etnaviv_context.c