turnip: add TU_CS_MODE_SUB_STREAM
authorChia-I Wu <olvaffe@gmail.com>
Tue, 29 Jan 2019 23:00:34 +0000 (15:00 -0800)
committerChia-I Wu <olvaffe@gmail.com>
Mon, 11 Mar 2019 17:02:13 +0000 (10:02 -0700)
commit0aeef7c8bd5917633392decce1c07ff36c652cc1
treee825d7da860176a3d52fb560b9f192a1e8cb657a
parentf59c3814232d5735aba6bed9de506e59321e4170
turnip: add TU_CS_MODE_SUB_STREAM

When in TU_CS_MODE_SUB_STREAM, tu_cs_begin_sub_stream (or
tu_cs_end_sub_stream) should be called instead of tu_cs_begin (or
tu_cs_end).  It gives the caller a TU_CS_MODE_EXTERNAL cs to emit
commands to.
src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_cs.c
src/freedreno/vulkan/tu_cs.h
src/freedreno/vulkan/tu_private.h