turnip: implement secondary command buffers
authorJonathan Marek <jonathan@marek.ca>
Thu, 12 Dec 2019 22:06:14 +0000 (17:06 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 19 Dec 2019 20:42:08 +0000 (20:42 +0000)
commite9a32af3bfb359d6ba484d01d6875ed4dfbc94ee
treeb38b3634d1fb3039f043dbe5c6d2e7c33c24584f
parent85fff42d085185db0ca05798f9c1056981dc528b
turnip: implement secondary command buffers

Uses a new "tu_cs_add_entries" function because tu_cs_emit_call doesn't
work inside draw_cs (which is already called by tu_cs_emit_call).

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Eric Anholt <eric@anholt.net>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3075>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3075>
src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_cs.c
src/freedreno/vulkan/tu_cs.h