turnip: never fail tu_cs_begin/tu_cs_end
authorChia-I Wu <olvaffe@gmail.com>
Mon, 28 Jan 2019 23:55:40 +0000 (15:55 -0800)
committerChia-I Wu <olvaffe@gmail.com>
Mon, 11 Mar 2019 17:02:13 +0000 (10:02 -0700)
commit29f111000399821452e8538ca74ce2de7210ee47
tree8a9ed9b5cbce3c3bf5adba64409c2f2bc2dca64d
parent0d81be3959234c3d877efd6ddee5280b01815433
turnip: never fail tu_cs_begin/tu_cs_end

Error checking tu_cs_begin/tu_cs_end is too tedious for the callers.
Move tu_cs_add_bo and tu_cs_reserve_entry to tu_cs_reserve_space
such that tu_cs_begin/tu_cs_end never fails.
src/freedreno/vulkan/tu_cmd_buffer.c
src/freedreno/vulkan/tu_cs.c
src/freedreno/vulkan/tu_cs.h