etnaviv: drm: Be able to mark end of context init
authorChristian Gmeiner <cgmeiner@igalia.com>
Mon, 23 Oct 2023 07:51:19 +0000 (09:51 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 23 Oct 2023 14:56:48 +0000 (14:56 +0000)
commit4c8fad4fd884c852de0d7e4b43f87fc350fa46a9
tree12abe1aa36032781569cac8839b3d7bdda1a9742
parent2c62fdc8a7de2f55f89d085589ac30dcd0f0165d
etnaviv: drm: Be able to mark end of context init

Add etna_cmd_stream_mark_end_of_context_init(..) which stores the current
offset of the cmd stream as offset_end_of_context_init. This information
will be used to downgrade a cmd stream flush to a noop.

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25849>
src/etnaviv/drm/etnaviv_cmd_stream.c
src/etnaviv/drm/etnaviv_drmif.h
src/etnaviv/drm/etnaviv_priv.h