radv: Add wait-before-submit support for timelines.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 28 Oct 2019 01:44:54 +0000 (02:44 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 30 Oct 2019 10:57:07 +0000 (11:57 +0100)
commit4aa75bb3bdd195d4715ee8fae51bfb0c0fcd823b
treecbed54a2c1fc87251d2f448ed8df87270dcfc2bf
parent88d41367b8aee961e6c47173a1e8848009e2215a
radv: Add wait-before-submit support for timelines.

This is actually a non-threaded implementation. I'd summarize this
as event-based submission.

When submit happens we walk a tree of submissions that depend on
the syncobj signal operations to be submitted and if those submission
we no other dependencies we start to execute them immediately.

Or, well I still use a list to avoid issues with long chains and
the stacksize when using recursion.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_private.h