turnip: add tu_cs_mode
authorChia-I Wu <olvaffe@gmail.com>
Mon, 28 Jan 2019 22:33:20 +0000 (14:33 -0800)
committerChia-I Wu <olvaffe@gmail.com>
Mon, 11 Mar 2019 17:02:13 +0000 (10:02 -0700)
commitf59c3814232d5735aba6bed9de506e59321e4170
treeeff029331d6d393f1cfbf9eaaf378fa8c1ce8c0a
parent5c63fc626f98def10d20971161e672f9e7cd341c
turnip: add tu_cs_mode

Add tu_cs_mode and TU_CS_MODE_EXTERNAL.  When in
TU_CS_MODE_EXTERNAL, tu_cs wraps an external buffer and can not
grow.

This also moves tu_cs* up in tu_private.h, such that other structs
can embed tu_cs_entry.
src/freedreno/vulkan/tu_cs.c
src/freedreno/vulkan/tu_cs.h
src/freedreno/vulkan/tu_private.h