turnip: add tu_cs_reserve_space(_assert)
authorChia-I Wu <olvaffe@gmail.com>
Fri, 18 Jan 2019 22:24:45 +0000 (14:24 -0800)
committerChia-I Wu <olvaffe@gmail.com>
Mon, 11 Mar 2019 17:01:41 +0000 (10:01 -0700)
commit3b3af6321b9231752014ed441ba9b056219e23aa
tree08bb7f240827ebbce409ba368a4585b03675d72e
parentaaa59ef70c100fe861c099197581a1131f2bc8a4
turnip: add tu_cs_reserve_space(_assert)

They are used like

 tu_cs_reserve_space(...);
 tu_cs_emit(...);
 ...;
 tu_cs_reserve_space_assert();

to make sure we reserved enough space at the beginning.
src/freedreno/vulkan/tu_cs.c
src/freedreno/vulkan/tu_cs.h
src/freedreno/vulkan/tu_private.h