etnaviv: Skip 'empty' cmd streams
authorChristian Gmeiner <cgmeiner@igalia.com>
Mon, 23 Oct 2023 07:53:39 +0000 (09:53 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 23 Oct 2023 14:56:48 +0000 (14:56 +0000)
commit90cd5f37991d3703cbf97322e9ec345bb4be1baf
tree3f0f433e8bd82d4e19731f042049f99a709477af
parent4c8fad4fd884c852de0d7e4b43f87fc350fa46a9
etnaviv: Skip 'empty' cmd streams

Make use of etna_cmd_stream_mark_end_of_context_init(..) to mark the
end of context init states. If the cmd stream is untouched until
etna_cmd_stream_flush(..) gets called the drm layer will downgrade this
specific cmd stream to a noop.

This safes us from calling into the kernel with an 'empty' cmd stream.

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/gallium/drivers/etnaviv/etnaviv_context.c